-
Notifications
You must be signed in to change notification settings - Fork 980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LOAD segment with RWX permissions during stm32f411ceu6 flashing on arduinoststm32 @ 4.20801.240802 (2.8.1) #2475
Comments
Update: Arduino_Core_STM32/platform.txt Line 82 in 5e4f220
The same linker has an error
|
Hi @brightproject |
Just generating some linker script with STM32CubeMX.
|
In any case, working code is better than compilation with warnings - you always have to find a balance. |
Prevent LOAD segment with RWX permissions warning. The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. Fixes stm32duino#2475. Signed-off-by: Frederic Pillon <[email protected]>
Prevent LOAD segment with RWX permissions warning. The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. Fixes stm32duino#2475. Signed-off-by: Frederic Pillon <[email protected]>
Prevent LOAD segment with RWX permissions warning. The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. Fixes stm32duino#2475. Signed-off-by: Frederic Pillon <[email protected]>
Hi @brightproject For ref: |
Thank you very much for the correction and clarification - this is a new topic for me, I read it with pleasure🙂 |
Prevent LOAD segment with RWX permissions warning. The "READONLY" keyword is only supported in GCC11 and later, remove it if using GCC10 or earlier. Fixes stm32duino#2475. Signed-off-by: Frederic Pillon <[email protected]>
The error is not critical, because the program code works without any comments, but I don't like the concept itself, when I see warnings during compilation:
To get rid of it, I had to use the search for a solution.
There were several mentions (here and here) of similar problems, but no clear solution was found.
Through some experiments, I managed to eliminate the warning during compilation, the solution is below:
stm32f411ceu6
the path is as followsAdd
(READONLY)
for two functions except .preinit_array, although the example above in the link said the opposite in theSTM32CubeIDE errata 1.15.x
document.After this, the firmware will be installed without warnings.
The text was updated successfully, but these errors were encountered: