Hello
Are you looking for a way to generate a map file in CodeWarrior for DSP568xx?
If you are building from the IDE:
- Start IDE
- Open the project
- Open the Target Setting dialog (pressing ALT+F7)
- Switch to "M56800E Linker" or "M56800 Linker" depending on the CPU you are targeting
- Make sure "Generate Link Map File " is checked.
If you are building from command line make sure to link with option -Map.
I hope this helps.
CrasyCat
Hello
The .xMAP file is the file you have to look into.
At the end of the file you have a section Memory Map looking as follows:
# Memory map:
v_addr p_addr size name
00000000 00000000 000000A4 .p_interrupts_flash_ROM
000000A4 000000A4 000004FE .p_flash_ROM
000005A2 00000001 0000008D .p_flash_ROM_data
00020000 00020000 0000008B .p_boot_flash_ROM
0002F800 0002F800 00000800 .p_internal_RAM
00000001 00000001 000006B5 .x_internal_RAM
00001000 00001000 00000000 .x_flash_ROM
0000F000 0000F000 00001000 .x_onchip_peripherals
00FFFF00 00FFFF00 00000000 .x_EOnCE
This is where you find information around size of the application.
The MAP file is just a text file providing information on what happens during the link session. Format of this file is not standard and may vary from one CPU to the other.
I hope this helps.
CrasyCat
Hi,
Its the same in 3.1 and 5.
I haven't done anything special to get it like this. Here is the last few lines from two different projects' map files.
Code:
CW3.1:*********************************************************************************************STATISTIC SECTION---------------------------------------------------------------------------------------------ExeFile:--------Number of blocks to be downloaded: 6Total size of all blocks to be downloaded: 2749CW5:*********************************************************************************************STATISTIC SECTION---------------------------------------------------------------------------------------------ExeFile:--------Number of blocks to be downloaded: 3Total size of all blocks to be downloaded: 226
Regards David
peg wrote:Code:
CW3.1: ********************************************************************************************* STATISTIC SECTION --------------------------------------------------------------------------------------------- ExeFile: -------- Number of blocks to be downloaded: 6 Total size of all blocks to be downloaded: 2749 <hr/>
Perhaps these lines from the end of the SECTION-ALLOCATION SECTION of the MAP-file are even more useful:
Code:
Summary of section sizes per section type:READ_ONLY (R): FCA1 (dec: 64673)READ_WRITE (R/W): 1006 (dec: 4102)NO_INIT (N/I): 830 (dec: 2096)