6/11/2023 0 Comments Atmega128 software uartOptiBoot seems to be the most robust opensource bootloader, but I don’t like that it is made for Arduino. Possible bootloaders: So I’ve done some searching on the internet for possible bootloaders to use but haven’t found a bootloader that would work right out of the box. The processor does not have a hardware configurable flow control pin like most modern processor, so the communication direction must be controlled through software. ![]() The second problem is that the processor (ATMega328P) communicates over RS485 with a RS232 to RS485 transceiver and an extra pin is used for flow control. ![]() The thing is that I would prefer a tested bootloader that is known to work well instead of creating one from scratch and possibly introducing bugs that would require a reflash to fix. Problems: One of the problems is that I’ve never written a bootloader, it does seem quite straight forward and looking at existing ones on GitHub makes it seem rather unremarkable. Just send the bytes from the PC, the bootloader responds with "ACK/NACK" if the checksum adds up and then it continues. The update should be able to be performed by a PC or by a PLC and should be as easy as to use as possible. ![]() ![]() Goal: The goal of the bootloader is to safely update the main program code over the UART. Hello everyone! Like the title says, I’m looking to add a bootloader to my project but would like some input since I’ve never done such a thing.
0 Comments
Leave a Reply. |