Closed frederikheld closed 5 years ago
Did I choose the right programmer? (I tried with AVRISK mkII and Parallel Programmer but no difference)
I think as long it works, it is ok.
Is my Arduino Micro defective? Is there a way to check that?
If it works, no. If you have a clone: sometimes are slightly different parts and wiring is used which may result in other behavior than the genuine.
Without MFRC522.h it's performing well...
The Micro has no dedicated flashing chip. So it means the chip is used as working and flashing device. This can cause problems. I own a other device where I have to press reset before it can be flashed if it runs longer. Some things may help you:
loop
is a busy one, may add a small delay.Closed because not a bug or directly related to library.
Thank you very much @Rotzbua! You set me on the right track by mentioning the specific problems that the flashing setup of the Micro can cause. I dug deeper and apparently the USB serial on my Micro is broken. I got it working by flashing it using an Arduino Uno as programmer :-) Sorry for bothering you, apparently it had nothing to do with this library.
Step 1: Describe your environment
Step 2: Describe the problem
As soon as I add the line
to my sketch, I get programmer errors.
Affected file(s) or example(s):
Full example:
Steps to reproduce:
Observed Results:
The errors happen during upload but there's different errors on each upload attempt. This is one example that comes very often:
Others usually revolve around the fact that the serial port is not available.
This one is very common:
Before the upload attempt, the port is available but it seems to be reset during upload as it is greyed out or unselected in Arduino IDE after the upload attempt. Sometimes it comes back after some time, usually with a different name (/dev/ttyACM0 --> /dev/ttyACM1). Sometimes it requires a reset to get it back.
Overall it's very erratic behaviour, but it all seems to revolve around the serial port.
Expected Results:
Upload is working
Relevant Code:
see above
Questions I ask myself: