floating-point operation FreeRTOS_10_1_1

cancel
Showing results for 
Search instead for 
Did you mean: 

floating-point operation FreeRTOS_10_1_1

340 Views
zhaoyanling
Contributor III

Hello 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 will be never entered. why ?

I don't understand the floating-point operation has relationship with running task.

Could you give me some suggestion?

Labels (1)
0 Kudos
3 Replies

173 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

can you please share your project? Thanks. 

Jiri 

0 Kudos

173 Views
zhaoyanling
Contributor III

Hallo Jiri Kral,

Could you check my project? Could you give me some suggestions?

I am eager for your help!

Thank you very much!

0 Kudos

173 Views
zhaoyanling
Contributor III

Dear Jiri Kral,

My project is shown as attachment. and I check the heap size and stack size, shown as the bmp in detail, but it still doesn't work. Could you give me some suggestion?

Thank you very much!

0 Kudos