From dfb8aa625753384e5bd4fe523faa648093345c61 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 1 May 2017 03:29:01 +0200 Subject: [PATCH] place initialization sequence into DRAM to be reachable by DMA Signed-off-by: Jeroen Domburg --- examples/peripherals/spi_master/main/spi_master_example_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 b9cdd2009..981a7317f 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},