From: Daniel Date: Mon, 1 May 2017 01:29:01 +0000 (+0200) Subject: place initialization sequence into DRAM to be reachable by DMA X-Git-Tag: v2.1-rc1~127^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfb8aa625753384e5bd4fe523faa648093345c61;p=esp-idf place initialization sequence into DRAM to be reachable by DMA Signed-off-by: Jeroen Domburg --- diff --git a/examples/peripherals/spi_master/main/spi_master_example_main.c b/examples/peripherals/spi_master/main/spi_master_example_main.c index b9cdd20092..981a7317f4 100644 --- a/examples/peripherals/spi_master/main/spi_master_example_main.c +++ b/examples/peripherals/spi_master/main/spi_master_example_main.c @@ -50,7 +50,8 @@ typedef struct { uint8_t databytes; //No of data in data; bit 7 = delay after set; 0xFF = end of cmds. } ili_init_cmd_t; -static const ili_init_cmd_t ili_init_cmds[]={ +//Place data into DRAM. Constant data gets placed into DROM by default, which is not accessible by DMA. +DRAM_ATTR static const ili_init_cmd_t ili_init_cmds[]={ {0xCF, {0x00, 0x83, 0X30}, 3}, {0xED, {0x64, 0x03, 0X12, 0X81}, 4}, {0xE8, {0x85, 0x01, 0x79}, 3},