ThreadX executing in MoteinoM0

Started by ianraustralia, December 27, 2021, 06:01:43 PM

ianraustralia

I am about to commence a project REQUIRING that I use ThreadX RTOS as the device operating system.

Felix's MoteinoM0 has been a wonderful module in testing and developing for a previous project.
Thank you yet again Felix.

I decided my RTOS "learning curve" adventure would be to use ThreadX in the Arduino IDE, having discovered there is an Arduino port for ThreadX which has compiled OK for me here: https://www.arduino.cc/reference/en/libraries/azure-rtos-threadx/

ThreadX RTOS was started in 1996 by Express Logic (William Lamie) and was sold to Microsoft in 2019.
I recommend watching this inverview with Bill.
https://www.youtube.com/watch?v=TGWg7yQATqQ&t=597s


I also recommend watching this initial training video.
https://www.youtube.com/watch?v=LCPi3yjS_1M

Microsoft now call it "Azure RTOS" in a similar way Amazon AWS now owns FreeRTOS.
Microsoft ThreadX documentation is here: https://docs.microsoft.com/en-us/azure/rtos/threadx/

My code has 2 threads   ... speedy_thread and slow_thread, as described in Edward Lamie's ThreadX reference book "Real-Time Embedded Multithreading Using ThreadX: 2nd (second) Edition", commencing page 15 of 543 pages.

After several days fiddling I now can compile and execute a simple 2 thread process running under ThreadX RTOS on the MoteinoM0. I have attached my known working source code and a log of the ThreadX generated log as at 28-12-2021, running on a standard 2018 MoteinoM0 with nothing attached.

I intend to gradually increase the threads count and complexity, after successfully compiling and executing each growth stage - my normal design pattern.

The initial code uses just the 3 onboard LEDs as outputs and the USB port for human I/O.

I am hoping someone will join me on this adventure as RTOS is a whole new ball game of complexity for me.
Having successfully used many concurrent State Machines on the MoteinoM0 previously  I feel VERY NERVOUS about how far I will be able to go before being overtaken by "dependency anxiety".

RTOS is NOT FUNNY!