2024-04-01 04:45 AM
Hi all,
Installed the latest CubeIDE and re-built an existing project. Got several warnings. One of them was
RWX. This could be solved by making changes to the ,ld file. Example - .ARM (READONLY)
The next issues was -- > "_close is not implemented and will always fail". Don't know how to solve this warning.
I believe these problems are due to latest version GCC.
Another issue I noticed is - memory regions have disappeared. I have a correctly name list file but to no avail.
Can someone please help me solve these issues. Please help. Thanks.
NPS
Solved! Go to Solution.
2024-04-01 06:37 AM
2024-04-01 07:25 AM
Hello @Parmin Nayani
This is a known issue that will be fixed on the next releases. As a temporary workaround, in main.c file, add these instructions:
__attribute__((weak)) void _close(void){}
__attribute__((weak)) void _lseek(void){}
__attribute__((weak)) void _read(void){}
__attribute__((weak)) void _write(void){}
Between "/* USER CODE BEGIN Includes */" and "/* USER CODE END Includes */".
Best Regards.
STTwo-32
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2024-04-01 07:34 AM
Hi STTwo-32,
Thank you for the update. Now I am not getting the warning. Hopefully nothing else is getting disturbed. Thank you.