K65 fails erase and program at 0x14000 in RUN mode (running with ULINK ICE)

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

K65 fails erase and program at 0x14000 in RUN mode (running with ULINK ICE)

469 Views
steverobalino
Contributor I

Im debugging a bootloader on the K65 tower

I try to erase the application space starting at 0x14000 (16K bytes total)

the erase never completes , it resets the MPU?

same thing when I try to program a flash sector

Im executing: BOARD_BootClockRUN(); ....so the board is running at 120Mhz

I know at 180Mhz it wont work, but 120Mhz is OK.?

why would erase and program crash?

when I erase the top of flash...0x1FE000U ...it works fine

any ideas

Labels (1)
0 Kudos
2 Replies

373 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Steven,

After had a brief look through the statement above, I'm still not clear with your issue, so I'd like to get to understand your issue by through these questions below.

1. Did you use the KBOOT bootloader solution?

2. Did the flash clock beyond the 28 Mhz when the MCU works at the 180 MHz?

I'm looking forward to your reply.
Have a great day,
Ping

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

0 Kudos

373 Views
steverobalino
Contributor I

Im not using KBOOT

How do I check that the flash is not over 28Mhz?

The chip is running at 120Mhz (RUN mode) not HSRUN mode

0 Kudos