What does the "blocks" signify in the map file? (HSC08)

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

What does the "blocks" signify in the map file? (HSC08)

Jump to solution
931 Views
crane
Contributor III

I get strange results in the map file when compiling slightly different code. The code runs properly, but I'm curious.

 

I have a string of more than 256 chars containing version info etc. When the code is linked I get:

 

Number of blocks to be downloaded: 17
Total size of all blocks to be downloaded: 12863

 

Then I  ADD one char in the string, make and get:

 

Number of blocks to be downloaded: 16
Total size of all blocks to be downloaded: 12864

THEN, elsewhere in the code, I add __RESET_WATCHDOG(), yielding:

 

Number of blocks to be downloaded: 15
Total size of all blocks to be downloaded: 12873

Does someone have a logic explanation?

Labels (1)
Tags (1)
0 Kudos
1 Solution
375 Views
CrasyCat
Specialist III

Hello

 

Do not care about that info.

Block just indicates how many blocks of data the debugger did download.

This is not really relevant as block size is not the same for all blocks.

 

If you want to know how much byte of data have been downloaded,

just look at "Total size of all blocks to be downloaded" at the end of the .map file

or better look at the "ROM size" at the end of the "SECTION-ALLOCATION SECTION".

 

CrasyCat

View solution in original post

0 Kudos
1 Reply
376 Views
CrasyCat
Specialist III

Hello

 

Do not care about that info.

Block just indicates how many blocks of data the debugger did download.

This is not really relevant as block size is not the same for all blocks.

 

If you want to know how much byte of data have been downloaded,

just look at "Total size of all blocks to be downloaded" at the end of the .map file

or better look at the "ROM size" at the end of the "SECTION-ALLOCATION SECTION".

 

CrasyCat

0 Kudos