Quote:
Originally Posted by psy_wombats
The fast loop, I believe, can't support the printf function, simply because it is a very fast loop. The printf takes a lot of time (relaying info through your serial) so the print is being called way too fast for it to finish, and causes the program error.
|
I've done this successfully (when debugging shaft encoders), but wouldn't recommend it. It's very easy to crash things this way.
Quote:
|
Should be able to fix by calling only by a timer interrupt, or when a loop count is divisible by fifty, (to call every fiftieth loop or something), or maybe use the slow loop?
|
This is of course a much better solution.