Some guidelines on what's appropriate to put in CCMRAM on STM32F4 for optimal performance?
I'm working with the STM32F405 microcontroller and I recently ran out of RAM, but then I discovered that the 64 kB CCMRAM was completely unused. Given that the CCMRAM was supposed to be fast, I moved the stack and state variables of low-level drivers into CCMRAM, but I found that some code actually executed slower after these changes. Most notably a software UART (that simply writes to GPIOx->BSRR 10 times uninterruptedly) had it's Baud rate changed from 3 MBaud to 2.4 MBaud after the stack was moved. Can someone please give some guidelines on what's appropriate to place in the CCMRAM if I want the fastest performance of my code?
