Hello
In order to store code in flash for Coldfire application just modify the MEMORY block in the .lcf file
to get code into flash.
If you have created a project from a stationery, every thing should be ready.
Just change following statements in the SECTIONS block
.vector_ram :
{
vectors.s(.text)
.= ALIGN(0x8);
} > vector_ram
.sdram :
{
*(.text)
*(.rodata)
. = ALIGN(0x10);
} > sdram
into
.boot_flash :
{
vectors.s (.text)
*(.text)
*(.rodata)
.= ALIGN(0x8);
} > boot_flash
Note that if you have created your project using a V6.3 Stationery, you just have to switch the build target from M5485 Console Debug to M5485 ROM.
This should build an image with code & constant allocated in flash.
Additional note:
After you build a ROM version of the application you need to use the Flash programmer (from the Tools menu) to program the application into Flash.
Debug will only load symbol information in the debugger. It will not program the flash.
CrasyCat