STM32CubeIDE Problems after update
- May 15, 2024
- 3 replies
- 3238 views
I am having 2 major issues after upgrading STM32CubeIDE.
1) I get 2 error messages about segments having RWX permissions.
ld.exe: warning: QCMA00-1_0_0.elf has a LOAD segment with RWX permissions
I saw the release notes about changing the
.preinit_array :
to
.preinit_array (READONLY) :
and did that. Still get the error messages. Do I need to change multiple segments to READONLY? If so, which ones?
Second, I now cannot debug. I get an error message that MI command failed to execute. I enabled the log file and looked through it and what bothered me is the following lines:
[4.375] spawnCubeProgrammer(): ------ Switching to STM32CubeProgrammer -----
[4.375] file_utils_spawn(): Spawning "D:\STMicro\STM32Cube\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.201.202404072231\tools\bin\STM32_Programmer_CLI.exe --connect port=SWD speed=fast mode=UR reset=hwRst --download C:\Users\ROBERT~1\AppData\Local\Temp\ST-LINK_GDB_server_a10576.srec --verify --log C:\Users\ROBERT~1\AppData\Local\Temp\STM32CubeProgrammer_a10576.log"
[4.494] file_utils_spawn(): Return code -1073741511
[4.494] spawnCubeProgrammer(): Encountered Error when opening D:\STMicro\STM32Cube\STM32CubeIDE\plugins\com.st.stm32cube.ide.mcu.externaltools.cubeprogrammer.win32_2.1.201.202404072231\tools\bin\STM32_Programmer_CLI.exe
[4.494] spawnCubeProgrammer(): ------ Switching context -----
[4.494] WriteFlashDone(): Error in STM32CubeProgrammer
This is multiple places in the log file. Now, I had this working a couple weeks ago with no issues. I had to spin the board and just got back to this. I have edited nothing, I just updated STM32CubeIDE and tried to run the same project that worked a couple weeks back. I even tried installing STM32CubeIDE on a virgin OS installation and got all the same errors. I have attached my debugger log file. I am at a loss righ now. Thanks
