2024-11-05 05:01 AM
Hi,
I'm working on a project where I have added x-cube STL for self testing, I'm using IAR 9.30.1 and STM32H745ZIT3
Unable to debug or load the code into my target, why this post build command causing problem or CRC injecting in that particular area 0x080FF000
Suggest me any method or how to troubleshoot this error in setting or options of IAR tool
2024-11-05 06:07 AM
Well you can't plant CRC's mid-image, or in a manner that corrupts the object file.
Normally one would quantify the size of the sections, as built, and append checksums, CRC or signing. Some cases you'd need to expand sections to allow for this.
Perhaps inspect via objdump, objcopy, fromelf or similar inspection tools, and try to understand what you're breaking.
Perhaps write your own code to manage this? The ELF format is pretty well documented, and we're SW engineers, right?
2024-11-05 06:41 AM
But it's part of X-Cube STL package, Integrating static library STL_Lib_cm7.a and in post build must use this command
STM32_Programmer_CLI.exe -sl "$PROJ_DIR$/CM7/Exe/source_code.out" 0x08000000 0x08100000 0x400
So I'm saying the STM CUBE programmer to put CRC in particular that area, It automatically does....
So what changes I need to do in linker script or loader, adjust any addresses