Coldfire: Application running from flash, doesn't run on power up but does on reset

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

Coldfire: Application running from flash, doesn't run on power up but does on reset

1,496 Views
DavidHearn
Contributor I
I've got an application running on a LogicPD M5475EVB built with CodeWarrior 6.3. I've selected the ROM target, and successfully flashed the built .ELF file to the boot flash of the board (at 0xFF800000, the start of boot flash).

When I press the master reset button next to the power input the board resets and my application starts.

However, when I remove power from the board and re-apply power, nothing happens (well, my application doesn't start). If I then press the master reset button again, it works.

I know that the dBug and LogicLoader apps work fine from a cold start, so it's not a hardware issue.

The application was generated by CodeWarrior using the stationary for the M5475EVB, with my application being called from main in main.c. I did need to modify the rom.lcf as it tried putting all .bss and .data etc sections into SRAM, whereas due to the amount of RAM I need to use (60MB), I needed it to be in SDRAM. I also found the MCF5475EVB_ROM.cfg file had the wrong memory address for the Bootflash - it had it at 0xFE000000 whereas it's actually at 0xFF800000 - hence I changed that.

Any suggestions as to why my app starts on warm reset (ie. via master reset button switch) but not on cold start (when power applied).

Thanks

David

Message Edited by CrasyCat on 2007-04-13 01:32 PM

Labels (1)
0 Kudos
Reply
1 Reply

469 Views
J2MEJediMaster
Specialist I
Look at your initialization code, especially for your peripherals. There are probably some bits that are accidentally set when the power comes up unevenly on a cold start that need to be cleared by the initialization code.

---Tom
0 Kudos
Reply