AnsweredAssumed Answered

freeRTOS_10_1_1 stack overflow

Question asked by 燕琳 赵 on Jul 4, 2019
Latest reply on Aug 8, 2019 by 燕琳 赵

Hallo expert,

I use freeRTOS_10_1_1, and I creat only one task. I get ADC value from ADC12, but when I change the sample into voltage, there is something wrong.

After the following floating-point is comouted,:

 /* Process the result to get the value in volts */
 adcValue = ((float) adcRawValue / adcMax) ;//* (ADC_VREFH - ADC_VREFL);

then the task sleep controlled by follwing command:

 vTaskDelay(pdMS_TO_TICKS(10));

but the task  FreeRTOS_vApplicationStackOverflowHook() will run. why ?

I changed the heap size and stack size, but it can not be solved.

I show my project as an attachment.

Could you give me some suggestion?

Attachments

Outcomes