USBaspLoader suggestion
Posted: Sun Mar 10, 2013 11:15 pm
Hello.
I have been using USBaspLoader for a couple of my projects over time, and have been quite happy with it. I do have a feature suggestion, though:
I usually do not have a jumper to trigger the boot loader. Instead I use some combination of buttons (usually already on the device), that must be held down while plugging in the device, in order to enter the boot loader.
For instance I have recently been playing with my C64key project, and built a USBaspLoader that is triggered by holding RUN/STOP and RESTORE (this combination seemed appropriate ) while plugging in the keyboard. I struggled a while getting the BootLoaderCondition right, but even when that worked, and the boot loader was detected by my PC, I could not make it work. Then I found a document I had written about the changes I made to USBaspLoader, to make it work with my SpiffChorder. I had to make a change in main.c, so that the main while loop would not look at BootLoaderCondition().
The reason is obviously that I use one or more buttons, but the BootLoaderCondition is only true during startup (i.e. when plugging in the device).
So my feature request is: Add a compile-time option (in bootloaderconfig.h) that can change the main while loop to while(1) instead of while(BootLoaderCondition()). This would be nice for everyone who uses a button instead of a jumper to trigger the bootloader, since all changes can then be done in bootloaderconfig.h.
/Spiff
I have been using USBaspLoader for a couple of my projects over time, and have been quite happy with it. I do have a feature suggestion, though:
I usually do not have a jumper to trigger the boot loader. Instead I use some combination of buttons (usually already on the device), that must be held down while plugging in the device, in order to enter the boot loader.
For instance I have recently been playing with my C64key project, and built a USBaspLoader that is triggered by holding RUN/STOP and RESTORE (this combination seemed appropriate ) while plugging in the keyboard. I struggled a while getting the BootLoaderCondition right, but even when that worked, and the boot loader was detected by my PC, I could not make it work. Then I found a document I had written about the changes I made to USBaspLoader, to make it work with my SpiffChorder. I had to make a change in main.c, so that the main while loop would not look at BootLoaderCondition().
The reason is obviously that I use one or more buttons, but the BootLoaderCondition is only true during startup (i.e. when plugging in the device).
So my feature request is: Add a compile-time option (in bootloaderconfig.h) that can change the main while loop to while(1) instead of while(BootLoaderCondition()). This would be nice for everyone who uses a button instead of a jumper to trigger the bootloader, since all changes can then be done in bootloaderconfig.h.
/Spiff