使用官方oad off chip例程,在bim中读取img头的时,发现imgHdr.crcStat为0xff,即未做crc校验。程序计算crc后与imgHdr.crc32不符,因此读取固件失败。
app编译后结果如下:
OAD IMG HDR
Field | Value
imgID | Valid
CRC | 0xE96FE1D3
bimVer | 1
metaVer | 1
techType | 0xFE
imgCpStat | 0xFF
crcStat | 0xFF
imgType | 0x1
imgNo | 0x1
imgVld | 0xFFFFFFFF
len | 0xA125
prgEntry | 0x50
softVer | 0x31303030
imgEndAddr | 0xA124
hdrLen | 0x2C
Segment HDR
Field | Value
segType | Boundary Segment
Wireless Tech | [TIMAC Sub1G] [TIMAC 2.4G] [Zigbee] [RF4CE] [Thread] [EasyLink]
segLen | 0x18
STACK ENTRY ADDR | 0x14000
ICALL STACK ADDR | 0x1C1F9
RAM START ADDR | 0x20000520
RAM END ADDR | 0x20003C68
Segment HDR
Field | Value
segType | Contiguous Image Segment
Wireless Tech | [TIMAC Sub1G] [TIMAC 2.4G] [Zigbee] [RF4CE] [Thread] [EasyLink]
segLen | 0xA0E1
Start Address | 0x0
ERIC ZOU:
通过读取2640flash,发现烧录的固件crc为0xFFFFFFFF,为什么不是编译出来的0xE96FE1D3呢?是否要在工程中做什么设置?
Viki Shi:
回复 ERIC ZOU:
参考下这边的类似问题: e2e.ti.com/…/2484275