cancel
Showing results for 
Search instead for 
Did you mean: 

Demonstrations project FreeRTOS and STeMwin

asafbit
Associate II
Posted on December 26, 2016 at 17:51

hi all.

running the demonstrations project on STM32F4X9-EVAL on the EVAL board works fine.

in my project i need to conserve power so i need to go into stop,ode while system is idle.

stop mode will require GUI_Exit() and GUI_Init() again and again. here is where i run into problem. first init sequnce goes OK, but after applying GUI_Exit() and then GUI_Init() - system runs into hard fault during init.

tried to run the subject project with minor change :

int main(void)
{ 
 /* STM32F4xx HAL library initialization:
 - Configure the Flash prefetch, instruction and Data caches
 - Configure the Systick to generate an interrupt each 1 msec
 - Set NVIC Group Priority to 4
 - Global MSP (MCU Support Package) initialization
 */
 HAL_Init(); 
 
 /* Configure the system clock to 180 MHz */
 SystemClock_Config();
 
 
 /* Enable CRC to Unlock GUI */
 __HAL_RCC_CRC_CLK_ENABLE();
 
 /* Initialize GUI */
 GUI_Init();
 HAL_Delay(10);
GUI_Exit();
 HAL_Delay(10);
/* Initialize GUI */
 GUI_Init(); - HARD FAULT HERE.
.
.
.
}�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?�?

tried the same on STeMwin 'Hello World' project - it runs fine.

trying to figure out what's the differences between those 2 projects and the cause for that problem

P.s : matched clock speed to 168 MHz, at both projects.

examples were taken from CUBE V1.13

Thank You.

#emwin #rtos #freertos #low-power
1 REPLY 1
asafbit
Associate II
Posted on December 29, 2016 at 14:41

HI again

just to clarify:

i'm running 2 projects which include STemWin. one include freeRTOS and named 'Demonstrations', the other is stand alone and named 'Hello World' at those two projects i run the above code. the one with freeRTOS fails.

there are different libraries for OS and none OS.

Thank you.