Kinetis K60 programming problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Kinetis K60 programming problem

2,400 次查看
mdUJ
Contributor I

Hello,

 

I´v got a tower module TWR-K60N512 a few days ago.

 

My first trials to get it running are almost successful. But there is one problem. I´m using IAR toolchain and SWD for programming and debug. Uploading applications to RAM works fine. Uploading to flash works fine as long as the debugger is present. I can single step and run the program. It starts at __iar_program_start as expected. But if I press Reset or do a POR, then nothing happens. It seems that the flash does not execute the program without the debugger. Once again - with debugger everything works fine.

 

Does anyone have a hint for me?

 

Greetings from Germany

 

mdUJ

 

0 项奖励
1 回复

1,049 次查看
anthony_huereca
NXP Employee
NXP Employee

Are you using the Flash taget? See Section A.6 Step 5 in the Kinetis Quick Reference Guide: http://cache.freescale.com/files/32bit/doc/quick_ref_guide/KQRUG.pdf

 

Also when stepping through, use the Disassembly window and register view window to ensure that the code you are executing is running from the Flash memory range (0x00000000 to 0x00080000). From the problem description it sounds like the code might be ran from RAM instead of Flash.

 

Hope that helps!