cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 tip: reset the cache

hfs99
Associate II
Posted on December 09, 2012 at 03:10

I had a head-slap moment a few days ago. I eliminated much of the ''quirky behavior'' of my STM32F4Discovery board by having SystemInit() disable and reset the cache.

The STM32F4Discovery was my first ST-Link product as well as my first STM32F4 development board. I had somehow concluded that the ST-Link interface was a little flaky, and had more or less resigned myself to killing the power after every flash to get the new code to run properly.

This seems obvious in retrospect; I may be the only one who frequents the board that was not aware of it. But since the results of my search for ''cache'' were sparse (and strange) I'll post the tip.

#stm32f4-cache
1 REPLY 1
vibrolax
Associate
Posted on December 21, 2012 at 17:14

Very interesting.  I have long been mystified by the erratic behavior of the board after flashing and debugging using gdb via the atollic stlinkv2 gdbserver.  I will give your tip a try.