Re: DATA_DTCM and NETWORKING Hello World
Le mer. 2 oct. 2019 à 06:28, <alessandro.moroni@...> a écrit :
AFAIK, Problem is that you can not use highly coupled memory (DTCM) for DMA transfer, since NXP ethernet driver and probably hal driver use transfer buffer for DMA, this breaks. Ideally we should create a kind of __DMAABLE macro for such buffer. To fix that either relocate network data to OCRAM or external SDRAM. Or build with DATA_OCRAM and relocate the code you want in DTCM.
You'll have to define DTCM section in a custom.ld or in imx rt linker, something like:
+#if (DT_MCUX_DTCM_SIZE > 0) && !defined(CONFIG_DATA_DTCM)
+ DTCM (wx) : ORIGIN = DT_MCUX_DTCM_BASE_ADDRESS, LENGTH = DT_MCUX_DTCM_SIZE