We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, i've a problem using tasks. I'm programming an MCBSTM32 board and i want to manage data coming from an external ahrs connected with the serial port. I'm developing my program without it (for now). So i create a task that would send the same message as it would have been received from the AHRS using the function sendchar(). the problem is that the message is an array of 32 byte and i want to send one byte a time 'cause i've to manage it alone. Problem, i cannot do it using a while or a for, cause i can send only the first byte and not the others. Could anyone help me? I receive the byte using getkey() and i've connected the right pin of the DB9. Thanks
Why ever not?
"cause i can send only the first byte and not the others"
Then you are doing it wrong!
Look again at your code. Review it against your 'C' textbook, your processor datasheet, and the documentation for whatever other tools you're using.
Have you tried stepping it in the simulator or debugger to see where it's going wrong?
Nobody else can review or debug your code without seeing it!