Closed achieve-dream1221 closed 9 months ago
Hi and thanks for your question. I am unable to assist with any suggestion around srec_cat
. Though, for XLINK
-based compilers, such as for 8051, I'd suggest you consider using, for example, the -Ointel-extended
option instead:
target_link_options(<exec-target> PRIVATE
# ...
$<$<CONFIG:Release>:-Ointel-extended>
$<$<CONFIG:Debug>:-option-that-only-makes-sense-for-debugging>
-etc
# ...
)
If you need technical support please reach out to support@iar.com.
I'm currently working on a project that involves the compilation of code for 8051 using IAR with CMake . The process successfully generates a .bin file, but my main challenge has shifted to figuring out how to properly flash this binary file onto a CC2530 chip, or how to convert it to a .hex file. Despite several attempts to handle this issue by using srec_cat to convert the binary file into a hex file for flashing, the device does not operate as expected once the flashing process is complete. Below is my CMake script that I've been using for the build process: