2024-05-14 11:41 AM
I'm a novice getting re-acquainted with embedded, and acquainted with STMicro products
I'd like to use the NUCLEO-H563ZI + GFX02Z1 with ThreadX instead of FreeRTOS. I perform these steps:
Is that all that's required? I ask because I'm experiencing some odd behavior that I don't see if leave the project as FreeRTOS based.
Specifically I've created a quick trial that increment/decrements a text area numerical display based on joystick interactions (Left == increment, Right == decrement). With FreeRTOS I get quick responses from repeated joystick presses in any combination. With ThreadX I have to wait for multiple seconds before consecutive pushes are recognized on the same switch of the joystick. For instance pressing RIGHT-RIGHT-RIGHT only recognized the first interaction. Interestingly if I do something LEFT-RIGHT-LEFT in rapid succession all the presses are recognized.
I've attached the ThreadX based project for reference
I'm looking for advice on how to correctly configure for threadX, and how to resolve my joystick problem.
Thanks for the help
2024-05-15 01:37 AM
Hello @DJ001 ,
I do not think you have done all the steps necessary to change RTOS.
Here is the on how to change RTOS and specifically how to change from FreeRTOS to ThreadX .
I hope this helps you.
If this solves your issue, I invite you to select this comment as "best answer".
Regards,
2024-05-15 05:19 AM
Thanks for the suggestion. I reviewed the identified document and the only deviation that I found was the default setting of 100 for timer_ticks_per_second. Updating and rebuilding with the suggested value of 1000 does not appear to have any impact on behavior.
The rest of the documentation deals with the various call and functions that are auto-generated by CubeMX. I've scanned the code all of these seem to be present.
I'm clearly out of my depth here, but I'll keep working and exploring.
Thanks again