ChibiOS Suspend and Resume thread
Posted: Sat Dec 01, 2012 4:51 pm
Hi everyone,
I'm new user of Chibi, and yet I'm working on my SCARA Robot project. My SCARA has two arms, and a servo motor to control each arm. I also use serial monitor two send command and receive a feedback. I use ATMega328 as the microcontroller and I'm trying to use ChibiOS in it. Without ChibiOS, my SCARA works well. But I face few problems while using Chibi to control the motor movement. I have several questions:
1. Is ATMega328's memory is too small to use ChibiOS?
2. I create 2 threads: one thread for each motor. But, I can suspend the thread and as a result, I can't control it anymore by using serial monitor. So, I'm trying to suspend both threads while they're not moving and resume it when I tell them to move. Would you please tell me how to make a suspend and resume command in Chibi?
Thank you so much for your help.
I'm new user of Chibi, and yet I'm working on my SCARA Robot project. My SCARA has two arms, and a servo motor to control each arm. I also use serial monitor two send command and receive a feedback. I use ATMega328 as the microcontroller and I'm trying to use ChibiOS in it. Without ChibiOS, my SCARA works well. But I face few problems while using Chibi to control the motor movement. I have several questions:
1. Is ATMega328's memory is too small to use ChibiOS?
2. I create 2 threads: one thread for each motor. But, I can suspend the thread and as a result, I can't control it anymore by using serial monitor. So, I'm trying to suspend both threads while they're not moving and resume it when I tell them to move. Would you please tell me how to make a suspend and resume command in Chibi?
Thank you so much for your help.