2018-08-27 02:36 AM
I am working with the STM32F760I-EVAL board and caching (SCB_EnableICache() and SCB_EnableDCache() are called) and MPU (MPU_Config() is called) are enabled. There are 2 things that use DMA, an SPI-bus and a UART debug logging TRACE. A portion of the RAM is configured as TCMRAM and the SPI buffers and the UART TRACE buffers are located there next to each other. Inside an interrupt the SPI-buffer are initialised using memset and sometime this initialisation data appears in the UART TRACE buffer which somehow has been corrupted. Could someone please come with suggestions on what I should focus my debug efforts on?