libero ProASIC3 A3P250 JTAG-DirectC 烧录文件格式解析
文档参考: .dat 文件格式 DirectC P26 页面

实际查看 :

版本 24字节 → Designer 11.10.0.4
header 长度 0x45 = 69个字节
image size 0x0003A7AF = 239535 字节, 这里 我看了 一下 jtag_top.dat 整个文件大小 正好是 239535 个 字节 !
数据压缩标志 0x00
M1/P1/M7 标志 0x00
目标ID 0x03A141CF
整个文件 的 最后 两个 字节 是 CRC 校验值!
校验方法:
void dp_compute_crc(void) { for (global_uchar2 = 0u; global_uchar2 < 8u; global_uchar2++) { global_uint2 = (global_uchar1 ^ global_uint1) & 0x01u; global_uint1 >>= 1u; if (global_uint2) { global_uint1 ^= 0x8408u; } global_uchar1 >>= 1u; } return; }
浙公网安备 33010602011771号