AnsweredAssumed Answered

Demonstrations project FreeRTOS and STeMwin

Question asked by Assaf on Dec 26, 2016
Latest reply on Dec 29, 2016 by Assaf

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.

Outcomes