keflex87 wrote on Thursday, February 09, 2017:
Hallo i use the ATSAME70Q21 and want to use FREERTOS (8.2.3). In my example projekt i have 2 Tasks with a binary semaphore. The first task “task monitor” should notify the second task “task_led”. I have bebugged my code:
Program sequence while debugging:
- xSemaphoreGive() was called in task monitor() and went over.
- xSemaphoreTake() was called in task_led() and went over.
- xSemaphoreTake() was called in task_led() and stoped there.
- xSemaphoreGive() was called in task monitor() went over and called after that the HardFault_Handler().
Can you help me? Tank you for your support. Why was the HardFault_Handler() called? Where ist the problem?
Best regards
Andre
Code: