Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 4DIAC - Framework for Distributed Industrial Automation and Control » Memory problem with freertos+lwip(The programs reached the breakpoint in function vApplicationMallocFailedHook())
Memory problem with freertos+lwip [message #1840085] Tue, 06 April 2021 13:50 Go to next message
Jizhi Lee is currently offline Jizhi LeeFriend
Messages: 4
Registered: March 2021
Junior Member
My entry function is followed
void forte_thread(void const * argument)
{
  /* USER CODE BEGIN forte_thread */
  forteGlobalInitialize();
  TForteInstance forteInstance = 0;
  int resultForte = forteStartInstanceGeneric(0, 0, &forteInstance);
  if(FORTE_OK == resultForte){
	  forteJoinInstance(forteInstance);
	  printf("Start forte\n");
  }else{
	  printf("Error %d: Couldn't start forte\n", resultForte);
  }
  forteGlobalDeinitialize();
  vTaskDelete(NULL);
  /* Infinite loop */

  /* USER CODE END forte_thread */
}

I ran the program on the stm32f429
and the stack I set to the forte_thread is 1024B.
It didn't work at first try, and when it got to function:
forteJoinInstance(forteInstance);

the program reached the breakpoint in funtion
void vApplicationMallocFailedHook(){
  for(;;){
    vTaskDelay(pdMS_TO_TICKS(1000));
  }
}

By the way, before I added the forte_thread to the program, the lwip was running correctly. My router could detcet the stm32 board and my PC could ping through.
I totally don't konw what to do next... orz

Thanks in advance!
Re: Memory problem with freertos+lwip [message #1840103 is a reply to message #1840085] Tue, 06 April 2021 20:43 Go to previous message
Alois Zoitl is currently offline Alois ZoitlFriend
Messages: 1214
Registered: January 2014
Senior Member
My first guess would be that you have not enough heap.
Previous Topic:force value for composite fb doesn't work
Next Topic:Reading a DHT22 Temperature Sensor with an SIFB
Goto Forum:
  


Current Time: Tue May 18 02:44:51 GMT 2021

Powered by FUDForum. Page generated in 0.02118 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top