Hello
I did create a project for MCF51JM128 and added definition of a constant as follows:
const unsigned char pp=2;
This constant is allocated in flash in my application.
extract from .map file
# .text
00000410 00000026 .text main (main.c)
00000436 00000002 .text __initialize_hardware (startcf.c)
00000438 00000002 .text __initialize_system (startcf.c)
0000043A 0000001C .text __copy_rom_section (startcf.c)
00000456 00000034 .text __copy_rom_sections_to_ram (startcf.c)
0000048A 00000004 .text _ExitProcess (startcf.c)
0000048E 0000006A .text clear_mem (startcf.c)
000004F8 0000009A .text _startup (startcf.c)
00000592 000001BC .text mcf_exception_handler (exceptions.c)
0000074E 00000020 .text asm_exception_handler (exceptions.c)
0000076E 0000000A .text foo (foo.c)
00000778 0000002C .text exit (C_4i_CF_RegABI_MSL.a abort_exit_cf.o)
000007A4 00000034 .text __exit (C_4i_CF_RegABI_MSL.a abort_exit_cf.o)
000007D8 0000001C .text __call_static_initializers (C_4i_CF_RegABI_Runtime.a cf_staticinitia)
000007F4 0000002C .text __destroy_global_chain (C_4i_CF_RegABI_Runtime.a cf_staticinitia)
00000820 00000001 .rodata pp (foo.c)
#>00000824 ___ROM_AT (linker command file)
#>00000824 ___DATA_ROM (linker command file)
I am using CodeWarrior MCU V6.2 and I created my project using the wizard.
Am I missing something?
CrasyCat