cancel
Showing results for 
Search instead for 
Did you mean: 

Why does my memset-call in an interrupt routine appears to occasionally write to the wrong address in TCMRAM?

arnold_w
Senior

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?

0 REPLIES 0