SAME54_LwIP_RTOS

1 post / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the source code example that you can downlode from here there's a severe error that prevents the code to work.

 

Path: E54_LwIP_RTOS/Source_files/Webserver/Webserver_tasks.c

row 366:

if (xTaskCreate(task_ethernet, "Ethernet", TASK_ETHERNET_STACK_SIZE, NULL, configMAX_PRIORITIES, &xCreatedEthernetTask) != pdPASS) {

should be

if (xTaskCreate(task_ethernet, "Ethernet", TASK_ETHERNET_STACK_SIZE, NULL, configMAX_PRIORITIES - 1, &xCreatedEthernetTask) != pdPASS) {

because  priorities go from 0 to configMAX_PRIORITIES - 1.