cancel
Showing results for 
Search instead for 
Did you mean: 

UART4 and Ethernet Configuration Issue on STM32H7S7L8HXH_RAMxspi1_ROMxspi2.ld

Mehulrana511
Associate II

Hi,

I am using the STM32H7S78-DK board along with STM32CubeIDE for programming. My goal is to configure Ethernet and enable UART4 for debugging purposes. However, I am facing issues with the memory configuration file `STM32H7S7L8HXH_RAMxspi1_ROMxspi2.ld`.

Here is the scenario:

1. I have configured Ethernet GPIOs according to the datasheet and implemented the UDP server example from the reference link: STM32 ETHENRET UDP SERVER 
2. When I enable UART4 for debugging with `STM32H7S7L8HXH_RAMxspi1_ROMxspi2.ld`, UART4 does not work.
3. If I disable the Ethernet functionality and use the default linker script `STM32H7S7L8HXH_default.ld`, UART4 works as expected. However, the Ethernet configuration is crucial for my project.
4. When I use `STM32H7S7L8HXH_default.ld` with both Ethernet and UART4, the build fails with a "RAM Overflow" error:
- Error: "region RAM' overflowed by 17160 bytes"

Questions:

1. How can I configure UART4 to work with `STM32H7S7L8HXH_RAMxspi1_ROMxspi2.ld`?
2. Could you guide me on resolving the RAM overflow issue to make Ethernet work properly while retaining UART4 functionality for debugging?

Here I also attached my Project,

Thank you for your assistance.

/Mehul

1 REPLY 1
Pavel A.
Evangelist III

 > How can I configure UART4 to work with `STM32H7S7L8HXH_RAMxspi1_ROMxspi2.ld`?

Just configure the UART. This should not require any change in the .ld file.

Verify that there's no pin conflict between ETH and UART4.