Flash.elf.xMAP file description in code warrior 8.3

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

Flash.elf.xMAP file description in code warrior 8.3

721 Views
carlkaczor
Contributor I

I am using code warrior 8.3. My project compiles and builds, a .MAP file is generated. I am trying to figure out the program size and RAM usage but I can't seem to find these items. I am used to the CCS compiler where after every successful build it displays these stats.

Thank you in advance

0 Kudos
1 Reply

552 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Carl,

Regarding your question on how to figure out the program flash size and data RAM size, I think the *.elf.xmap file is the only way to get the program size and data ram size the application code utilizes.

You can read the end of the map file to understand the program flash and data RAM utilization.

The program flash size used is 0x0086+0x47B5=0x483B words, in other words, the program flash occupies from P:0x0000 to P:0x483B.

The data RAM used is from X:0x0000 to X:0xD71, the size is 0xD71-0x0000=0xD71.

The independent stack is from X:0xEA0 to X:0xFFF, the stack size is 0xFFF-0xEA0=0x160

Hope it can help you

BR

XiangJun Rong

# Memory map:
  v_addr   p_addr   size     name
  00000004 00000004 00000082 .ApplicationInterruptVector .pInterruptVector
  00000086 00000086 000047B5 .ApplicationCode .pFlash
  0000F000 0000F000 00000095 .DataForProgramRAM .pIntRAM
  0000483C 0000F000 00000040 .InitializedDataForProgramRAM .pIntRAM_Mirror
  0000F800 0000F800 00000004 .HardwareAndWatchdogResetVector .pBootFlash
  00000000 00000000 00000030            .xAvailable
  00000030 00000030 00000010            .xCWRegisters
  00000040 00000040 00000D31 .DataForDataRAM .xIntRAM
  0000487D 00000040 00000068 .ApplicationInitialzedData .xIntRAM_Mirror
  00000EA0 00000EA0 00000160            .xStack
  00001000 00001000 00000800            .xPeripherals
  00001800 00001800 00000800            .xReserved
  00002000 00002000 000002B1 .InitializedConstData .xFlash
  00004000 00004000 0000BF80            .xExtRAM
  0000FF80 0000FF80 00000080            .xCoreRegisters

0 Kudos