cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CUBE + FreeRTOS + RTC HardFault

gvigelette
Associate II
Posted on June 27, 2014 at 04:04

Hi Everyone,

I have the stm32f4dicscovery and built a simple project with STM32CubeMX 4.3.  I have attached the IOC file.  The code starts a task thread and blinks an LED.  The program hard faults when the RTC Init function is called.  Any help on resolving this would be greatly appreciated.

Call Stack:

HardFault_Handler

xTaskIncrementTick

xPortSysTickHandler

SysTick_Handler

RTC_EnterInitMode

HAL_RTC_Init

MX_RTC_Init

Main

Thanks,

George

2 REPLIES 2
jarno
Associate III
Posted on June 30, 2014 at 10:23

see my posts at thread [DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/STM32CubeMX%20clock%20config%20bugs&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21]STM32CubeMX clock config bugs

gvigelette
Associate II
Posted on June 30, 2014 at 15:26

Thank you very much the fix was adding this to the FreeRTOSConfig.h file to prevent the hardfault on RTC Init().

#define configUSE_TIME_SLICING 0

Thank You Again,

George