Meaning of the error message

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Meaning of the error message

2,531 Views
Y_Chika
Contributor I

Hello everyone,

I am using FRDM-K64F.

I try to run demo application in debug mode, but  it doesn't run and shows following message in console window:

  Open On-Chip Debugger 0.8.0-dev (2014-10-31-11:10)

  Licensed under GNU GPL v2

  For bug reports, read

  http://openocd.sourceforge.net/doc/doxygen/bugs.html

  Info : only one transport option; autoselect 'cmsis-dap'

  Info : CMSIS-DAP: SWD  Supported

  Info : CMSIS-DAP: Interface Initialised (SWD)

  Info : add flash_bank kinetis kinetis.flash

  cortex_m reset_config sysresetreq

  adapter speed: 1000 kHz

  Info : CMSIS-DAP: FW Version = 1.0

  Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1

  Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)

  Info : CMSIS-DAP: Interface ready

  Info : clock speed 1000 kHz

  Info : IDCODE 0x2ba01477

  Error: Cannot access device, device is secured

  Info : Mass erasing a device will unsecure it until the next reset. To permanently unsecure, mass erase then flash a program containing an appropriate flash configuration field.

I have seen quite a few articles in which it states.

I don't resolve this trouble.

How can I run my device?

I am using Kinetis Design Studio IDE v2.0 and GDB Open OCD Debugging.

Yuichi Chikahiro.

0 Kudos
Reply
14 Replies

1,686 Views
richardlegault
Contributor I

I have the same problem. The Bootloader is 226. Windows 10. openocd is 0.8.0-dev

K64F Freedom board

Are there openocd commands I can use to permanently unsecure the device.

C:\Freescale\KDS_v3\openocd\bin>openocd -f kinetis.cfg
Open On-Chip Debugger 0.8.0-dev (2015-01-09-16:22)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'cmsis-dap'
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : add flash_bank kinetis kinetis.flash
cortex_m reset_config sysresetreq
adapter speed: 1000 kHz
Info : CMSIS-DAP: FW Version = 1.0
Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1
Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)
Info : CMSIS-DAP: Interface ready
Info : clock speed 1000 kHz
Info : IDCODE 0x2ba01477
Error: Cannot access device, device is secured
Info : Mass erasing a device will unsecure it until the next reset. To permanently unsecure, mass erase then flash a program containing an appropriate flash configuration field.

Restarting the Kinetis IDE did not help. Rebooting did not help. Reconnecting did not help.

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Richard,

You can use the PE interface to flash ,  enable "Mass erase on connect", it can unsecured when connect:

pastedImage_1.png

First update the bootloader use the firmware "DEBUG-FRDM-K64F_Pemicro_v108a_for_OpenSDA_v2.0.bin",

I attached it .

BR

Alice

1,686 Views
richardlegault
Contributor I

Thank You Alice

This worked perfectly for me.

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

OK, Richard,  welcome !

BR

Alice

0 Kudos
Reply

1,686 Views
tiagofernandes
Contributor III

Hello,

For early examples (hello_world, adc..., etc.) I can already debugging. I don't know how I resolve the problem but now is working.

i don't know if this next question is in this topic, but I create a simple example of make a toggle to a led, when I'm going to debug give me the following error: 

Error in final launch sequence

Failed to execute MI command:

-exec-run

Error message from debugger back end:

Don't know how to run.  Try "help target".

Don't know how to run.  Try "help target".

I try to debug with the option "GDB OpenOCD debugging".

What I need to do to corrct this problem?

Best Regards,

Tiago

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Tiago,
Please close the KDS, restart the KDS and re-connect board , the try again.

Be careful ,no hurry .

If still have error , please take screenshot about the steps you have done , i will

check the problem , also send you simple project to me , i will check it on my side .

Hope it helps

Alice

0 Kudos
Reply

1,686 Views
tiagofernandes
Contributor III

Hello,

Like you said "close the KDS, restart the KDS and re-connect board", I do this step a few times and after a few attempts it works.

Thanks for the help.

Best Regards,

Tiago.

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hi Tiago,

Ok , welcome !


Have a great day,
Alice

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,686 Views
tiagofernandes
Contributor III

Hello,

Like  Y.Chika, I tried to debug the hello_world tutorial using the document  Freescale\KSDK_1.3.0\doc\Getting Started with Kinetis SDK (KSDK) v.1.3, chapter 5 and I have a similar error that I post follow

C:\Freescale\KDS_v3\openocd\bin>openocd.exe -f  kinetis.cfg

Open On-Chip Debugger 0.8.0-dev (2015-01-09-16:22)

Licensed under GNU GPL v2

For bug reports, read

        http://openocd.sourceforge.net/doc/doxygen/bugs.html

Info : only one transport option; autoselect 'cmsis-dap'

Info : CMSIS-DAP: SWD  Supported

Info : CMSIS-DAP: Interface Initialised (SWD)

Info : add flash_bank kinetis kinetis.flash

cortex_m reset_config sysresetreq

adapter speed: 1000 kHz

Info : CMSIS-DAP: FW Version = 1.0

Info : SWCLK/TCK = 0 SWDIO/TMS = 1 TDI = 0 TDO = 0 nTRST = 0 nRESET = 1

Info : DAP_SWJ Sequence (reset: 50+ '1' followed by 0)

Info : CMSIS-DAP: Interface ready

Info : clock speed 1000 kHz

Info : IDCODE 0x2ba01477

Error: Cannot access device, device is secured

Info : Mass erasing a device will unsecure it until the next reset. To permanently unsecure, mass erase then flash a program containing an appropriate flash configuration field.

How can I resolve this problem? I follow step by step demo instructions and give the error. I use the mbed.

Best Regards,

Tiago

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Tiago,

Which board?

And have you udpate the bootloader to MBED firmware ?

BR

Alice

0 Kudos
Reply

1,686 Views
tiagofernandes
Contributor III

Hello,

I'm using the FRDM-k64F board, and I insert in my board the last version of bootloader, version 226 if I'm not wrong.

Best Regards,

Tiago

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello yuichi,

Please tell us which demo ?

And please try create a simple project ,then try to debug , check whether it can work well .

BR

Alice

0 Kudos
Reply

1,686 Views
Y_Chika
Contributor I

Hello alice,

Thank you very much for your response.

I used hello_world demo.

I try to debug a simple project from now.

BR,

Yuichi

0 Kudos
Reply

1,686 Views
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello Yuichi,

Ok , waiting your result of debug a simple project.

And does your demo is the KSDK demo ? if yes , please refer to ...Freescale\KSDK_1.1.0\doc\Getting Started with Kinetis SDK (KSDK).pdf -> 5 Run a demo using Kinetis Design Studio IDE

Best Regards,

Alice

------------------------------------------------------------------------------------------

If this post answers your question, please click the Correct Answer button.

-----------------------------------------------------------------------------------

If this post help your question, please click the helpful Answer button.

0 Kudos
Reply