2025-06-24 3:04 AM
Hello,
I’m working with the STM32F767ZI board and have configured Ethernet (ETH) peripheral with LwIP middleware using STM32CubeIDE. After generating the code and trying to compile the project, I encounter the following error:
This issue started occurring only after enabling the Ethernet peripheral and LwIP middleware. Prior to this configuration, the project was compiling successfully.
Steps Taken:
Enabled ETH in RMII mode
Enabled LwIP with default settings (static IP)
Generated code using STM32CubeMX
Tried cleaning and rebuilding the project
Additional Info:
STM32CubeIDE version: [your version, e.g. 1.13.0]
Toolchain: ARM-GCC (default from CubeIDE)
Request:
Could someone please help me identify why this "Permission denied" error is happening and how to resolve it? Also if the configuration has some other possible issue for ethernet not to work. I am attaching some conf images from cubeMX below
Thanks in advance!
2025-06-25 7:11 AM
Hello @Nitin,
ld.exe: cannot find .: Permission denied
This error can be caused by file access permissions, which occur when STM32CubeMX generates a project in a folder without sufficient permissions. Make sure the project folder has proper read and write permissions. The error could also result from an incorrect linker script definition, such as a syntax error or incorrect memory region definitions.
Regarding your request, I suggest you take a look at this repository, where you will find the necessary steps to implement an LwIP application on the STM32F767ZI.
Best regards,