您好,
我使用你们发给我的,hex2bin工具,无论是windows7 平台 还是 ubuntu平台的 hex2bin 都无法生成正确的 bin文件。
sam@sam:/tmp/up$ ls
amome_1_583.hex amome_2_583.hex
sam@sam:/tmp/up$ ls -l
总用量 180
-rw-rw-r-- 1 sam sam 90228 7月 21 14:14 amome_1_583.hex
-rw-rw-r-- 1 sam sam 87167 7月 21 14:13 amome_2_583.hex
sam@sam: / tmp /美元hex2bin amome_1_583.hex
hex2bin v2.3, Copyright (C) 2016 Jacques Pelletier & contributors
Allocate_Memory_and_Rewind:
Lowest address: 00080768
最高address: 20007D03
Starting address: 00080768
Max Length: 536376732
Binary file start = 00080768
Records start = 00080768
最高address = 20007D03
Pad Byte = FF
sam@sam:/tmp/up$ hex2bin amome_2_583.hex
hex2bin v2.3, Copyright (C) 2016 Jacques Pelletier & contributors
Allocate_Memory_and_Rewind:
Lowest address: 20000000
最高address: 20007A13
Starting address: 20000000
Max Length: 31252
Binary file start = 20000000
Records start = 20000000
最高address = 20007A13
Pad Byte = FF
sam@sam:/tmp/up$
sam@sam:/tmp/up$ ls -l
总用量 524024
-rw-rw-r-- 1 sam sam 536376732 7月 21 14:20 amome_1_583.bin
-rw-rw-r-- 1 sam sam 90228 7月 21 14:14 amome_1_583.hex
-rw-rw-r-- 1 sam sam 31252 7月 21 14:20 amome_2_583.bin
-rw-rw-r-- 1 sam sam 87167 7月 21 14:13 amome_2_583.hex
根据上面的显示发现
amome_2_583.hex 87167字节 是可以的 生产正确的 bin 文件。
amome_1_583.hex 90228字节 生产了 512M 的文件。
请问贵公司这是什么情况,谢谢。
记录里可以看见啊,amome_1_583.hex的起始位置不在2000000,生成文件的长度是按起始地址到结束地址算的。amome_1_583.hex编译是时候是不是修改了某些地址相关的定义或者更改了scatter file?
Hi,
没有修改 scatter file 文件。我测试了,在使用大量内存的时候就会出现这种情况,链接器在链接时,就会把部分 数据段的内容安排到 00080xxx 地址段内,就会出现。