Hi everybody !
I've been developping an application on MCF5282 lite evaluation board, using codewarrior 5.9.
I'm connected to the BDM port using a P&E USB Coldfire Multilink.
Untill now, I've been doing a lot of debug, and my program has always been executed in the External RAM. I now need the microcontroller to run by its own, and I'm looking for a way to store my program in the internal Flash.
I've been able to flash the microcontroller, and according to codewarrior flash programmer, my program is stored where it should be (internal flash 0xF0000000).
However, when performing a reset, the debug program native to the is launched. Do you know how to get my program launched at reset ?
I'm sure I am missing something trivial, could anyone give me a hint ?
Thks in advance,
Laurent
The CPU comes out of reset by fetching the reset vector from address 0x00000000.
> my program is stored where it should be (internal flash 0xF0000000).
The MCF5282 lite evaluation board has 16M of RAM and 2M of FLASH. Those chips only have 512k of internal FLASH so it must be set up in "Master Mode" to use the external.
Read:
6.3.2 Flash Base Address Register (FLASHBAR
Chapter 27 Chip Configuration Module (CCM)
> However, when performing a reset, the debug program native to the is launched.
That development board is doing something interesting and tricky. The chip can be either in Single Chip mode (internal RAM and FLASH only) or Mater Mode (with external FLASH). That board is obviously running in Master Mode.
The EVB Manual doesn't mention running the board in Single Chip Mode. It does list in a table how to make it do this, in "Table 1-7. SW1-[7:5] Chip Configuration Mode".
It also mentions "1.3.6 User’s Program" which documents how to run the user program in the upper half of the external FLASH from reset.
Is your final product to be a Master Mode or Single Chip Mode setup?
Tom