Skip to main content
heveskar
Senior
Jan 22, 2024 10:00 AM UTC
Solved

Wrong RAM_D2 memory in LwIP examples for NUCLEO-H723ZG

In LwIP examples for NUCLEO-H723ZG, in the linker, I think that there is an incorrect range of RAM_D2 memory.

For example here: 

MEMORY
{
 ITCMRAM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
 RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
 ROM (rx) : ORIGIN = 0x08000000, LENGTH = 1024K
 RAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K
 
}

SRAM available from 0x30000000 has 32 kB available

from  the reference manual:

heveskar_0-1705917381240.png

Or am I missing something? I am writing here before creating an issue on GitHub as I am not sure I am not misreading something. I think they took it from the STM32H74x/H75x devices as those have this amount of memory.

The example works correctly as the addresses used are hard-coded in the application, but the size should be correct either way.

 

This topic has been closed for replies.
KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
Jan 22, 2024 12:24 PM UTC

Hello @heveskar ,

Thank you for reporting this issue.

I confirm the typo , it is a known issue and it is already reported internally.

Internal ticket number: 152716 (This is an internal tracking number and is not accessible or usable by customers).

Thank you for your contribution in STCommunity :).

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.

4 replies

LCE
Principal III
Jan 22, 2024 11:04 AM UTC

You are correct, the RAM size of SRAM1 & SRAM2 in D2 is 16kB each.

There are many errors in many ST files, probably the typical copy & paste.

BTW, in the H723 - H735 series, ethernet DMA can access AXI RAM, although use of descriptors (and maybe some RX/TX buffers if space allows) in D2 = SRAM1 & SRAM2 is preferred, as the ethernet MAC also resides in D2. (See block diagram RM0468, page 107)

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
Jan 22, 2024 12:24 PM UTC

Hello @heveskar ,

Thank you for reporting this issue.

I confirm the typo , it is a known issue and it is already reported internally.

Internal ticket number: 152716 (This is an internal tracking number and is not accessible or usable by customers).

Thank you for your contribution in STCommunity :).

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
heveskar
heveskarAuthor
Senior
Jan 22, 2024 12:33 PM UTC

Thanks.

KDJEM.1
ST Technical Moderator
Mar 18, 2024 8:31 AM UTC

Hi @heveskar ,

RAM_D2 size issue is fixed in GitHub.

Thank you for your contribution in STCommunity.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.