-
Notifications
You must be signed in to change notification settings - Fork 18
Description
I'm working on trying CMRX for a simple blinky example for the MAX32690FTHR board. I am at the stage where the CMRX aware linker script has to be generated from the vendor supplied (CMSIS compatible?) linker script.
I have figured out the commands that the CMake system executes to create the modified linker script, and to add the correct libraries to the include files. For example, if I'm making an STM32H7 compatible project, the CMake system would do something like:
python src/third_party/cmrx/ld/genlink-cmsis.py --create STM32H7A3ZI/linker_script.ld STM32H7A3ZI/foo_linker_script.ld foo python src/third_party/cmrx/ld/genlink-cmsis.py --add-application bar foo STM32H7A3ZI
I can confirm that the foo_linker_script.ld is modified to include the generated instance and other memory section includes as a result of the --create option
However, for the vendor supplied linker script for the MAX32690, the genlink-cmsis.py does not generate the correct includes :-(
I have attached the vendor supplied linker script for review ... remove the .txt suffix :-)
It's actually not too hard to figure out what is supposed to be changed in the includes - it might be easier to document what the Pythin script should do - or it might be a relatively simple fix to handle the max32690 file. I suspect that handling the general case of arbitrary .ld files might be more difficult than doing it manually :-)