<div dir="ltr"><div>I solved it like you mentioned now by putting the descriptors in the .bsp_no_cache section and with the correct alignment.<br><br>/* Put into special RTEMS section and align correctly */<br>ETH_DMADescTypeDef DMARxDscrTab[ETH_RX_DESC_CNT] __attribute__((section(".bsp_nocache"), __aligned__(DMA_DESCRIPTOR_ALIGNMENT))); <br>/* Put into special RTEMS section and align correctly */<br>ETH_DMADescTypeDef DMATxDscrTab[ETH_TX_DESC_CNT] __attribute__((section(".bsp_nocache"), __aligned__(DMA_DESCRIPTOR_ALIGNMENT))); <br>uint8_t Rx_Buff[ETH_RX_DESC_CNT][ETH_RX_BUFFER_SIZE];<br><br></div><div>I will update the patch I sent with the sections removed from linccmd.base . Maybe it still would be a better idea to have a separate BSP for the STm32H743ZIT6-Nucleo but I would have to look into how to do this again.</div><div><br></div><div>Kind Regards</div><div>Robin<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 26 Mar 2021 at 15:24, 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"><br>
On 26/03/2021 11:34, Robin Müller wrote:<br>
> How would you define a generic linker section? I tried to put the <br>
> following section into the<br>
> linkcmdsmemory file like you suggested (at <br>
> spec/build/bsps/arm/stm32h7/linkcmdsmemory.yml):<br>
><br>
> SECTIONS {<br>
> .stm32h7_sram_3 (NOLOAD) : ALIGN_WITH_INPUT {<br>
> bsp_stm32h7_sram_3_start = stm32h7_memory_sram_3_begin;<br>
> bsp_stm32h7_sram_3_end = stm32h7_memory_sram_3_end;<br>
> } > SRAM_3 AT > FLASH<br>
> }<br>
<br>
This should work. You need also input sections for this output section. <br>
I still don't know why you can't use the already existing:<br>
<br>
.nocache : ALIGN_WITH_INPUT {<br>
bsp_section_nocache_begin = .;<br>
*(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_nocache*)))<br>
bsp_section_nocache_end = .;<br>
} > REGION_NOCACHE AT > REGION_NOCACHE_LOAD<br>
bsp_section_nocache_size = bsp_section_nocache_end - <br>
bsp_section_nocache_begin;<br>
bsp_section_nocache_load_begin = LOADADDR (.nocache);<br>
bsp_section_nocache_load_end = bsp_section_nocache_load_begin + <br>
bsp_section_nocache_size;<br>
<br>
.nocachenoload (NOLOAD) : ALIGN_WITH_INPUT {<br>
bsp_section_nocachenoload_begin = .;<br>
*(SORT_BY_ALIGNMENT (SORT_BY_NAME (.bsp_noload_nocache*)))<br>
bsp_section_nocacheheap_begin = .;<br>
. += ORIGIN (REGION_NOCACHE) + LENGTH (REGION_NOCACHE) - <br>
ABSOLUTE (.);<br>
bsp_section_nocacheheap_end = .;<br>
bsp_section_nocachenoload_end = .;<br>
} > REGION_NOCACHE AT > REGION_NOCACHE<br>
bsp_section_nocacheheap_size = bsp_section_nocacheheap_end - <br>
bsp_section_nocacheheap_begin;<br>
bsp_section_nocachenoload_size = bsp_section_nocachenoload_end - <br>
bsp_section_nocachenoload_begin;<br>
<br>
For the stm32h7 these regions are used:<br>
<br>
REGION_ALIAS ("REGION_NOCACHE", SRAM_1);<br>
REGION_ALIAS ("REGION_NOCACHE_LOAD", SDRAM_1);<br>
<br>
><br>
> But the waf build fails with a syntax error:<br>
><br>
> [1610/1611] Linking build/arm/stm32h7/testsuites/samples/ticker.exe<br>
> [1611/1611] Linking build/arm/stm32h7/testsuites/samples/unlimited.exe<br>
> c:/users/robin/rtems/rtems-tools/rtems/6/bin/../lib/gcc/arm-rtems6/10.2.1/../../../../arm-rtems6/bin/ld.exe:linkcmds.memory:84: <br>
> syntax error<br>
> collect2.exe: error: ld returned 1 exit status<br>
><br>
> c:/users/robin/rtems/rtems-tools/rtems/6/bin/../lib/gcc/arm-rtems6/10.2.1/../../../../arm-rtems6/bin/ld.exe:linkcmds.memory:84: <br>
> syntax error<br>
> collect2.exe: error: ld returned 1 exit status<br>
What is around line 84?<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>