2025-02-07 06:32 PM - edited 2025-02-07 08:44 PM
Hello,
I am creating a new project using STM32CubeIDE to use lwIP with internal MAC for a Nucleo F756 Board. When I enable the Eth peripheral, I can configure the Rx and Tx descriptors. They are placed at the start of SRAM2 (0x2004C000).
Since the CubeIDE uses the gcc compiler which cannot place objects at requested address using only C code. The generated code uses sections created using linker scripts to place objects at those locations.
But the problem here is that CubeIDE is not modifying the linker script file (STM32F756ZGTX_FLASH.ld) to create these sections! So these objects are NOT kept at SRAM2 as expected.
I have manually done the following in the file STM32F756ZGTX_FLASH.ld