Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
I am trying to get uCos to work, I have a small keypad program as a set-up to build from. I have no errors that I can see yet uCos never leaves my lowest priotiy task.
I have three tasks Start Task (priority 2) which initializes several things including timers and starts Keypad Task and Display Task.
Keypad Task (priority 5) scans the keypad and includes calls to OSTimeDly and OSSemPost, both functions run without errors, however the task never returns once it is started.
This pervents my main Display Task (priority 4) from running. The Display Task which makes a call to OSSemPend on the flag from Keypad Task never gets reached because Keypad_Init never returns, instead Keypad Task constantly scans the keypad and posting semphore which go unchecked by Display Task. All three tasks have OSTimeDly's.
I will include the code for Keypad_Init, hopefully someone who is familiar with uCos can help me.
Sorry to bring up an old thread but I felt obliged to at least give some form of follup.
It turned out that using an unregistered version of keil was my main problem (I think), somehow files stopped linking correctly after reimplementing things from my home computer everything finally started moving along.
I was able to implement a keypad, clock, and a basic texter program (for a class), and now that spring break has arrived I look forward to digging in my heels and getting communication going between the VS1053 mp3 decoder and the Wifly GSX using queues. Hopefully I'll have something to show before the deadline.