Cannot mass erase K64 by Mcuxpresso and LPC-link2

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

Cannot mass erase K64 by Mcuxpresso and LPC-link2

Jump to solution
1,363 Views
haizhouli
Contributor III

I use the exact same PCB that can be mass erased when using KDS + P&Emicro.

Now I switched the debug setup to mcuxpresso + LPC-link2, while, I cannot mass erase the MCU.

Here is what I did.

1.  I went to startup_mk64f12.c and changed the flash_config 

From

Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE};

to

Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFB};

2.  Program the new compile axf into the MCU. 

3. I clicked the "Linkserver GUI flash programmer" icon on the menu bar and chose the LPC-LINK2

4. I chose the following setup

pastedImage_1.png

5, When I chose OK, it showed an error msg:

pastedImage_2.png

the next page after clicking the "OK" is

pastedImage_3.png

the full msg log is:

Ns: MCUXpresso RedlinkMulti Driver v10.0 (Jun 22 2017 23:34:07 - crt_emu_cm_redlink build 272)
Pc: ( 0) Reading remote configuration
Wc(03). No cache support.
Pc: ( 5) Remote configuration complete
Nc: Reconnected to existing redlink server (PID 4294967295)
Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(36). Could not connect to core.'
Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(36). Could not connect to core.'
Nc: Connecting to probe 1 core 0 (server PID unknown) gave 'Ee(36). Could not connect to core.'
Nc: Server OK but no connection to probe 1 core 0 (after 3 attempts) - Ee(36). Could not connect to core.
Ed:02: Failed on connect: Ee(36). Could not connect to core.
Et:31: No connection to chip's debug port
Pc: (100) Target Connection Failed
Nc: error closing down debug session - Em(02). MEM-AP is not selected

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

In the step 4, there is a warning msg:  image file '' not found 

I dont know what "the image file" here means. Then even I tried to load an axf file, it still shows such msg. 

Thanks in advance!

Labels (1)
0 Kudos
Reply
1 Solution
1,072 Views
lpcxpresso_supp
NXP Employee
NXP Employee

The MCUXpresso IDE GUI Flash programmer does provide a mechanism that should generally be able to unlock a secured part via LPC-Link2 (with the IDE's CMSIS-DAP firmware). Its on the "Resurrect..." tab in the screenshot in the original post. For more details see the section "Kinetis Flash Recovery" in section 12.5.1 of the supplied MCUXpresso IDE v10.1 User Guide. 

Also, you cannot use an LPC-Link2 programmed with SEGGER firmware to talk to Kinetis parts (the SEGGER firmware for LPC-Link2 only supports LPC devices).

Regards,

MCUXpresso IDE Support

View solution in original post

3 Replies
1,072 Views
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi

The [LinkServer GUI Flash programmer] tool doesn't support J-Link debugger so far.

And the LPC-LINK2 CIMSIS-DAP doesn't support mass erase the K64 when chip is secured.

Customer need to use [LPCScrypt] tool to change LPC-LINK2 firmware to J-Link.

Then customer can use Segger J-Link commander tool to unlock the K64 chip.

pastedImage_1.png

Wish it helps.


Have a great day,
Mike

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

0 Kudos
Reply
1,073 Views
lpcxpresso_supp
NXP Employee
NXP Employee

The MCUXpresso IDE GUI Flash programmer does provide a mechanism that should generally be able to unlock a secured part via LPC-Link2 (with the IDE's CMSIS-DAP firmware). Its on the "Resurrect..." tab in the screenshot in the original post. For more details see the section "Kinetis Flash Recovery" in section 12.5.1 of the supplied MCUXpresso IDE v10.1 User Guide. 

Also, you cannot use an LPC-Link2 programmed with SEGGER firmware to talk to Kinetis parts (the SEGGER firmware for LPC-Link2 only supports LPC devices).

Regards,

MCUXpresso IDE Support

1,072 Views
haizhouli
Contributor III

Thanks so much! Moved from KDS and still held the mindset to use the "mass erase".  The message in the "Resurrect..." tab is very clear.  It unlocked the MCU in the first try. 

0 Kudos
Reply