Hope you can help me in bringing my Arduino setup into little "production".
I am using these small Beetle boards that are Arduino Leonardo based (ATmega32U4) and currently I have developed just a Arduino sketch that I upload directly over the board USB interface.
So I currently have not burned any fuses, any bootloader or any full bare metal software and I want evaluate my possibilitys for producing multiple write protected devices.
As far as I see the "normal" way would be to go bare metal and using an additional programming adapter. This device has to be connected with multiple pins on the current production board. Then I could burn a new bootloader or manipulate fuses (, I guess).
However for me the big disadvantage is that I have to connect (maybe solder) the device with the foreseen pins for every board. It would be much more comfortable if I could use the already established USB connection of the board itself.
So the question is:
- Can I burn fuse bits from my Arduino embedded software itself? Let's say by building a serial command that enables or disables programming? I read from third party boodloaders that are made for OTA updates but maybe it is much simpler and I can somehow manipulate fuses from the application code.
- Is it possible to burn fuses from the normal Arduino tooling and over the build in USB interface, without using an additional bare metal programming adapter?
- If not, I guess I can programm one of my Leonardos to act as a programmer and then directly connect it with the production boards?
What I have is:
Good video of burining a custom bootloader from IDE
I also have a USB to Serial adapter that I use for flashing Sonoff Wifi Power Plugs. It has connectors like GND, VCC (5V or 3.3V), RX, TX,DTR, CTS. Maybe I can use this device but I am not sure how to connect it to my production board? Maybe just connect 3.3V, GND and cross TX and RX? do I need to connect DTR and CTS?
Currently I have nothing Leonardo specific or my board specific.
Any help or ressources are appreciated.
Thank you very much.