Replies: 4 comments
-
I don't have any Dallas One Wire devices to debug this for you, but there are several things to note. You don't need the You don't have an empty I suggest using the You are running the SendDataTask without any pauses or delays. Do you really want the temperatures updated so quickly? Usually a call to For debugging, always try to start with the Task with everything except a And a final point, the stack you've declared is only 128 bytes. Try increasing the stack size to something like 512 bytes. You can use the stack highwater |
Beta Was this translation helpful? Give feedback.
-
Hi, Finally, I have increased the stack size, and now its working perfectly. Also, Thanks for suggesting to use loop for putting Arduino into sleep. I will surely use this. I do not need temperature to be updated so fast, I will add delays.
Can you please put light on there differences in short. |
Beta Was this translation helpful? Give feedback.
-
Glad its working now. All delay options will work.
Enjoy. |
Beta Was this translation helpful? Give feedback.
-
Thanks, I got it now. Best Regards, |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Feilipu,
First, Thanks for your efforts for developing FreeRTOS.
I have been trying to read Temperature sensors DS18B20 via DS2482 IC which is TWI to One Wire Converter.
I can read the temperatures when the code is in loop, but when I insert the same code in task, the code freezes in that task.
Please suggest.
Please find the code below.
For Loop function:
For RTOS task
Beta Was this translation helpful? Give feedback.
All reactions