Goodmorning,
I'm using the iMXRT1064evk board, MCUXpresso version 11.3.0 and SDK version 2.9.1.
In my project, the code is executed in XIP, but in order to control efficaciously 4 motors, I need to enable the Link Time Optimization. The problem happens when I try to include the SD card code. Trying to compile the code in Release mode, optimization -O3 with LTO, I get the error:
c:/nxp/mcuxpressoide_11.3.0_5222/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.3.0.202008311133/tools/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld.exe: error: lto-wrapper failed
I tested the SD card polling demo code, that you can find in attachment, and the problem happens similarly.
Can you give me some suggestions? Reading on internet they suggest to remove the LTO but I cannot give up the LTO optimization.
Thank you in advanced.