2024-03-20 02:08 AM - edited 2024-03-20 02:21 AM
Hi @Imen.D , @Khouloud ZEMMELI ,
After updating the STM32CubeIDE to version 1.15.0 (today) I am observing below warning.
The LD file has not changed. It has RAM and MRAM RWX
C:/ST/STM32CubeIDE_1.15.0/STM32CubeIDE/plugins/com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.12.3.rel1.win32_1.0.100.202403111256/tools/bin/../lib/gcc/arm-none-eabi/12.3.1/../../../../arm-none-eabi/bin/ld.exe: warning: xxx.elf has a LOAD segment with RWX permissions
Memory sections in LD file:
MEMORY
{
ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
DTCMRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
RAM_D1 (xrw) : ORIGIN = 0x24000000, LENGTH = 512K
RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
RAM_D3 (xrw) : ORIGIN = 0x38000000, LENGTH = 64K
MRAM (xrw) : ORIGIN = 0x60000000, LENGTH = 1024K
}
Please help resolve the concern.
Regards,
Rajeev
Solved! Go to Solution.
2024-04-22 07:08 PM
Hi JensH,
Thank you for idea,
If those regins were (Readonly), is flash function going to work well ?
Best Regards,
BrianZ
2024-05-26 11:21 PM
it works, the warning has disappeared, thanks buddy!:smiling_face_with_smiling_eyes:
2024-05-26 11:46 PM
i am sorry,where can i find the "Miscellaneous" in the cubeIDE?, i copy this word to the search bar under the Window/Preference, but still cannot find it
2024-07-17 06:30 AM
2024-07-26 02:00 AM - edited 2024-07-26 02:00 AM
The linker options supplied further back in this thread are invalid for GCC.
I have Cube IDE v 1.16.0.
2024-07-26 04:41 AM
Hi,
make sure to use -Wl,--no-warn-rwx-segment in order to pass the --no-warn-rwx-segment option to the linker. See option for linking in the GCC documentation.
Rgds
BT
2024-07-26 07:21 AM
Thank you, but I went back to 1.14.1 because I could not get 1.16.0 to work with any debugger I have. I might revisit this with 1.16.1 :grinning_face: