KBOOT V2.0 with FRDM-K64F

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

KBOOT V2.0 with FRDM-K64F

1,223 Views
a8Chcx
Contributor V

Hi,

 

I am trying to use KBOOT V2.0 on my FRDM-K64F:

1) I can download KBOOT V2.0

2) I can download led-demo application on UART and works fine. LEDs start flashing every second.

 

Then, I tried the exact the same procedure on my own board(Using the same MCU). LEDs can't start flashing.

Then, I tried to change the stating address to 0x0000, and download the application by using the flashing and LEDs start flashing...

The difference between my board and FRDM-K64F is I am using external 50 MHz OSC on my board...

 

Could you tell me where the problem can be?

 

Thanks,

 

Christie

Labels (1)
4 Replies

746 Views
harshpatel
Contributor IV

Hello Christie Su

I have faced such a issue while porting bootloader for MK20. you can check what happening while jumping to application as follows:

1] Load bootloader in debug mode

2] set break point in jump_to_application function

3] Flash application over bootloader

4] check whats happen in jump to app function especially in  shutdown_cleanup(kShutdownType_Shutdown); 

Hope it may help...

Let me know if any...

Thanks & regards

Harsh

0 Kudos

746 Views
harshpatel
Contributor IV

Hello Christie

let me know What is offset of your LED flashing application ?

NOTE: application offset can be set in linker file.

Thanks & regards

Harsh

0 Kudos

746 Views
a8Chcx
Contributor V

Hi Harsh,

I am using 0xA000 offset in application...

Thanks,

Christie

0 Kudos

746 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Christie Su,

What is the status of your issue?

Harsh Patel has a good advice there. If you are able to load the whole application successfully using the Kinetis Flash tool, try to debug from the point of jumping to the application to see what is going wrong. I don't know what IDE you are using, but if it is KDS there is a method to debug the flash resident bootloader together with the application, see the next document about this topic:

https://community.nxp.com/docs/DOC-330296 

Then you can find where the application is getting stuck.

Let us know if any findings.

Regards!

Jorge Gonzalez