Kinetis K60 programming problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Kinetis K60 programming problem

2,394件の閲覧回数
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,043件の閲覧回数
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!