Skip to content

Commit 11d2403

Browse files
decsnycfriedt
authored andcommitted
boards: rt1180: fix lpspi with dma
Since this board is by default having hyperram as SRAM, need to set NOCACHE_MEMORY when using dma to make sure the memory for the tcd pools is not cached. The previous approach to set zephyr,sram to dtcm just caused an error because zephyr,dtcm was also set to dtcm, and the default logic of the driver is put the tcdpools in dtcm, so what happened was these buffer got linked over the rest of the app causing massive failing of the image to work at all. So instead of doing that we need to just keep running from hyperram but set CONFIG_NOCACHE_MEMORY to have a place to put the tcd pools that wont be cached. Signed-off-by: Declan Snyder <[email protected]>
1 parent c85922f commit 11d2403

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

boards/nxp/mimxrt1180_evk/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,12 @@ if !CM7_BOOT_FROM_FLASH
3939
$(dt_node_reg_addr_hex,/soc/itcm@0)"
4040
endif # !CM7_BOOT_FROM_FLASH
4141
endif # SECOND_CORE_MCUX && BOARD_MIMXRT1180_EVK_MIMXRT1189_CM7
42+
43+
if DMA
44+
45+
config NOCACHE_MEMORY
46+
default y
47+
48+
endif # DMA
49+
4250
endif # BOARD_MIMXRT1180_EVK

tests/drivers/spi/spi_loopback/boards/mimxrt1180_evk_mimxrt1189_cm33.overlay

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@
66

77
/* To test this sample, connect J44.8 <-> J44.10 */
88

9-
/ {
10-
chosen {
11-
zephyr,sram = &dtcm;
12-
};
13-
};
14-
159
&lpspi3 {
1610
slow@0 {
1711
compatible = "test-spi-loopback-slow";

0 commit comments

Comments
 (0)