usbasploader without prog button and timeout?

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
bt101
Posts: 7
Joined: Thu Aug 27, 2009 5:59 am

usbasploader without prog button and timeout?

Post by bt101 » Tue Jan 26, 2016 4:52 am

Hi

I'm using the original usbasploader.
I wanted two mods:
1. Not need to use a program button/jumper (always go into the loader when reset is hit, but not power up)
2. I timeout that would jump to the user code if no program was loaded

The first item was simple enough with one simple mod (I made BootLoaderCondition return 1).

Before working on #2, I noticed this fork project:
https://github.com/baerwolf/USBaspLoader

I see it has lots of options (which is great).
I've been playing with the following options to accomplish the above, but just can't get it to work.
BOOTLOADER_ALWAYSENTERPROGRAMMODE
BOOTLOADER_IGNOREPROGBUTTON
BOOTLOADER_LOOPCYCLES_TIMEOUT

To ignore the button, it requires I enable both BOOTLOADER_ALWAYSENTERPROGRAMMODE and BOOTLOADER_IGNOREPROGBUTTON.
However in that case there are two bad side effects:
1. It goes into the boot loader at power-up.
2. If it does into the boot loader (from either power up or reset) it never exits

If I don't enable the above options, then it just never enters the boot loader.

Does anyone know the right combination of settings to go into the loader on reset only AND ignore the prog button AND timeout?

Post Reply