Posted on May 17, 2011 at 13:31Brilliant! Thanks for your help, st7, STOne-32, and stephen3. It turned out to be a stack overflow problem, as suggested. Changing the stack size to 0x400 (from the default value of 0x200) solved the problem. The progr...
Posted on May 17, 2011 at 13:31STOne-32, I'm using Keil Realview and have tried using two different optimization settings (-O0 and -O3). The code size is smaller using the -O3, but the problem unfortunately persists. Should I use the optimize for ti...
Posted on May 17, 2011 at 13:31Thanks for your reply. I do not have any printf statements in ISRs, but I did put a few USART1 character transmits in the hard fault ISR and found that the STM32 is definitely entering a hard fault. Unsure about the st...
Posted on May 17, 2011 at 13:31I am trying to debug an intermittent program crash in my STM32f103RE board which occurs intermittently during combined use of printf() and USART receive. The application is general robotics, where the STM32 reads ADC c...
Posted on May 17, 2011 at 12:29Paul, I am having a similar problem with my code, which incurs a HardFault during a printf to USART1. Did you ever find the source of the hardfault or were you able to mitigate it somehow? Apologies for reviving this y...