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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
945 次查看
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?

标签 (1)
标记 (1)
0 项奖励
1 解答
389 次查看
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 项奖励
1 回复
390 次查看
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 项奖励