USB bootloader with program using usb?
Posted: Wed Jul 22, 2015 10:27 am
I wondered if one could use a vusb-based bootloader and still use the USB connection in ones' main firmware.
Say I have device that uses the USB conncetion e.g. to switch a few relays controlled by the connected PC. I then press a button to put the device in bootloader mode. I then update the firmware over the same USB connection, the device resets and I can switch the relays again over USB. Would that at all be possible?
I guess one would have to change a few compile time options to runtime stuff in v-usb but maybe a ready-made bootloader exists? Does someone know of one?
Say I have device that uses the USB conncetion e.g. to switch a few relays controlled by the connected PC. I then press a button to put the device in bootloader mode. I then update the firmware over the same USB connection, the device resets and I can switch the relays again over USB. Would that at all be possible?
I guess one would have to change a few compile time options to runtime stuff in v-usb but maybe a ready-made bootloader exists? Does someone know of one?