AnsweredAssumed Answered

STM32Cube V1.9.0 F429 Demo bug

Question asked by Hancockst.Neil_st on Nov 17, 2015
Latest reply on Nov 20, 2015 by Hancockst.Neil_st
Hi
In the  STM32F429I-Discovery Demo 
STM32Cube\Repository\STM32Cube_FW_F4_V1.9.0\Projects\STM32F429I-Discovery\Demonstrations
This demo worked the first couple of times, but then I've had this demo randomly fail when I started to work with it.
I tracked it to something happening when   main.c:k_LogInit();   was called.
After calling enough times, it randomly starts working
seems like EDIT in the example /EDIT 
 k_LogInit() is called before k_MemInit() - but it relies on the memory pool to be initialized to 0's which it maybe on powerup.
The correct sequence that is working for me is
  /* Initialize Joystick, Touch screen and LEDs */
  k_BspInit();
  /*Initialize memory pools */
  k_MemInit();
  k_LogInit();    
  /* Initialize RTC */
  k_CalendarBkupInit();  

Outcomes