Hi, all!
How can I burn program on K40X256 MCU?
I download and run my program via IAR (Download and Debug button), but after restart the default demo program running :-(
How can I burn my program forever?
Solved! Go to Solution.
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
Hello,
I'm using CW 10.2 and work with microcontrollers at the first time. My program work correctly (tested in debug), but how burn progrgam to MC, so i can disconnect it from CW, and program works after reset? I'm programing in flash/
Thx for answering and sorry for my english)
Hey,
I use the CW 10...
My program runs perfectly in RAM-MODE, but if compile the program for the FLASH and download it, it doesn't work?!
If i try to debug it, it is unable to start properly. During the startup, especially while setting the MCG-register the program try to jump at some suspicious addresses like 0x00203128.
Despaired, i generate a project with the processor expert... and download it to the flash ... and it works!
But if i select the internal core clock with 96 Mhz, the program generated with PE, is unable to run in FLASH-MODE...
Could anybody please help me out?
Best regards
Hello,
could you please post here the PE project that leads you to getting the problem? Please provide also chip mask.
best regards
Vojtech Filip
Processor Expert Support Team
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
Thx!!!
This is one of the most common "gotchas" when one moves over from 8/16 bit machines to 32 bit machines where programs are run from RAM, rather than the FLASH, during debugging.
The reasons for this are quite good though, I guess it makes setting breakpoints easier for a start, and speeds up the whole execution of a debugging session. I also must mention that bootloaders are standard in this environment.
Hi,
If you have good, fast JTAG emulator you do not see a difference when your code is being programmed into the flash or loaded into RAM. Certainly program needs to be linked differently and has propert vectors, but it is different story.
Cortex-M4 has several HW breakpoints (and our debugger utilize them all), so this is not big issue either.
See here for supported Freescale CPUs:
http://www.signum.com/freescale.htm
Regards,
Robert