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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,404件の閲覧回数
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 解決策
848件の閲覧回数
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 返信
849件の閲覧回数
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 件の賞賛
返信