PeakSat-AUTH / training-freeRTOS

0 stars 0 forks source link

[Training] FreeRTOS Task Management #1

Open Sourland opened 9 months ago

Sourland commented 9 months ago

Use the 2 tasks at main.cpp to print a unique message from each Task. Use LOG_DEBUG << "message"; to print. Play around with Task Priorities and stack depth. Try the following stack depths and see what happens: [50, 100, 200, 500, 1000]

Mess around with different priorities and periods

AndronikosKostas commented 9 months ago

I tried stack depth: 10 and the program was not working correctly ( the tasks ran only two times )

Screenshot (1648)

All the other depths were working fine. Also, I calculated the space in the stack with some code in the task function.

Screenshot (1649) As for the priorities : I observed that when the priorities are the same for each task, the timing is not exactly perfect . Also, the only combinations that worked are {1, 1} and {1, 2}.

AndronikosKostas commented 8 months ago

main_cpp() :

Screenshot (1657)