本帖最后由 wes58 于 2025-4-21 14:23 编辑
The problem I had was that the file tl_check_fw2.exe in tools directory was missing - it was deleted by antivirus. The CRC is added to the end of the firmware file. This files generates CRC after compilation.
At the end of compilation I had the following message:
"../../../tools/tl_check_fw.sh" ht7017 tc32
*****************************************************
this is post build!! current configure is :ht7017
copy from `ht7017.elf' [elf32-littletc32] to `ht7017.bin' [binary]
../../../tools/tl_check_fw.sh: line 6: ../../../tools/tl_check_fw2.exe: No such file or directory
**************** end of post build ******************
If you have the same message (after you clean the project and recompile it) check the tools directory if you have file tl_check_fw2.exe.
You can also open your firmware file with any hex editor and have a look at offset 6-7. You should have 5D 00 if there is CRC in the firmware file
That's what is checked in this function first - it is reading flash_read(baseAddr + 6, 2, (u8 *)&crcFirmware);
flash_read(baseAddr + 6, 2, (u8 *)&crcFirmware); if(((crcFirmware & 0xff) == 0x5D) && ((crcFirmware >> 8) & 0xff) == 0x02){
You may have a different reason. That was my problem. |