<div dir="ltr"><div>That is how it was done in the lwIP demo provided by STM, I simply adopted that. The SRAM3 is small, but big enough for lwIP, so all of it is used completely by lwIP.</div><div>How would you place the descriptors in code so that these linker script sections are not necessary? You mentioned RTEMS_SECTIONs. Are those used in the source code?</div><div><br></div><div>Kind Regards</div><div>Robin Müller<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 22 Mar 2021 at 11:43, Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 03/02/2021 14:50, Robin Müller wrote:<br>
<br>
> The following link contains more theoretical information about why <br>
> these sections were placed at these addresses: <br>
> <a href="https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices" rel="noreferrer" target="_blank">https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices</a> <br>
> <<a href="https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices" rel="noreferrer" target="_blank">https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices</a>><br>
><br>
> Kind Regards<br>
> Robin<br>
><br>
> On Wed, 3 Feb 2021 at 14:44, Robin Müller <<a href="mailto:robin.mueller.m@gmail.com" target="_blank">robin.mueller.m@gmail.com</a> <br>
> <mailto:<a href="mailto:robin.mueller.m@gmail.com" target="_blank">robin.mueller.m@gmail.com</a>>> wrote:<br>
><br>
> The DMA descriptors need to be placed at the start of the SRAM3<br>
> and need to be aligned in a certain way. The RX buffer will take<br>
> up the first (slightly less than) 16 kB of SRAM3 but needs to be<br>
> placed<br>
> behind the DMA descriptors. It also needs to be placed in a way<br>
> that the MPU configuration required for the DMA descriptors will<br>
> not do something with the RX buffers.<br>
> In the example provided by STM32, the first 256 bytes are<br>
> configured by MPU Config.<br>
><br>
I had a look at the FAQ and the manual. Currently, we use the SRAM1 for <br>
the .nocache area. This is in the D2 domain. The Ethernet module is in <br>
the D2 domain. I am not sure why you have to change this to the smaller <br>
SRAM3? The libbsd driver works well with the current setting.<br>
<br>
-- <br>
embedded brains GmbH<br>
Herr Sebastian HUBER<br>
Dornierstr. 4<br>
82178 Puchheim<br>
Germany<br>
email: <a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a><br>
phone: +49-89-18 94 741 - 16<br>
fax: +49-89-18 94 741 - 08<br>
<br>
Registergericht: Amtsgericht München<br>
Registernummer: HRB 157899<br>
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler<br>
Unsere Datenschutzerklärung finden Sie hier:<br>
<a href="https://embedded-brains.de/datenschutzerklaerung/" rel="noreferrer" target="_blank">https://embedded-brains.de/datenschutzerklaerung/</a><br>
<br>
</blockquote></div>