I reserved a memory section for my application non-volatile data. For this matter, I changed the “STM32F411_EVA_FLASH.ld” located in …platformio\packages\framework-stm32cube\platformio\ldscripts\.
However, I understand that new platformIO update will overwrite my changes. So I am trying to include the linker file into my project repo, and overwriting environment variable so the framework will have the correct pointer.
I created a pre_extra_script.py in the platformio.init:
extra_scripts = pre_extra_script.py
Inside the script I do the following:
The first line works ok, but the second one gives me other problems. As if that environmetn variable is used for multiple things other thatn pointing to the linker file.