How can I flash my application

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

How can I flash my application

802 Views
UB39
Contributor I

Hello!

 

I write my application and tested it inside internal RAM. Now I wanna flash it to use it as a stand alone application.

 

Therefore I changed the debug configuration from MK60N512VMD100_INTERNAL_RAM to MK60N512VMD100_INTERNAL_FLASH, but it has no effect.

With the internal Flash configuration I can debug my program as before. But after a reset or after power up my application doesn t run.

 

Using the flash might be more complicated than I expect.

So what must I do to get my program into flash?

 

I also try to use the simple flash programmer that is part of Codewarrior, but I alway get error messages when I try to use it.

 

I use the TWR K60 Tower and CodeWarrior 10.1

 

May Thanks

 

Ulf

 

0 Kudos
2 Replies

477 Views
J2MEJediMaster
Specialist I

If the program runs in the debugger but not in stand-alone mode, the first thing to do is check that you have the interrupt vector table set up properly so that when a reset occurs, the reset vector table entry is pointing to the starup code. Another issue is that the debugger configures some perhpherals in order for things to work. You might be failing to initialze some peripherals, or failing to disable unused peripherals so that they do not generate spurious interrupts.

 

---Tom

0 Kudos

477 Views
UB39
Contributor I

Hi Tom!

 

That s a good hint, but no one of the 110 entries of the vector table is called reset.  So maybe I must try and error which one is the right one.

 

But that s not the main problem: There s a basic GPIO application flashed on my k60 Tower. After I try to flash my own application there s still the GPIO application active after power up or reset. So it hast no effect to change my configuration from internal RAM to internal Flash.

 

I try the same with the hello world basic project with the same non exisiting effect.

 

Ulf

 

0 Kudos