-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Device not enumerating on 328p #2
Comments
Like many of life's problems, this one appears to have been fuse related after all. After checking the default fuse settings and comparing them to my setup I made adjustments to disable brownout detection and use the correct clock input/frequency for my setup.
Interestingly, the device will fail to enter the bootloader or enumerate when plugged in if I flash application code (such as a simple blink example) using my usbtiny programmer via ISP (the same way the bootloader was written).
I can, however, upload application code via USB using the uspasp protocol, though it often reports wrong count/responds size:
but seems to recover and verifies correctly:
Lowering the baud rate
|
the device will fail to enter the bootloader or enumerate when plugged in if I flash application code (such as a simple blink example) using my usbtiny programmer via ISP (the same way the bootloader was written).
Seems either usbtiny is changing the fuse settings (e.g. bootloader flag, or a clock rate flag), or erasing part of the bootloader area.
I can, however, upload application code via USB using the uspasp protocol, though it often reports wrong count/responds size:
Hmmm, I never saw that when I was using it. I'll have to pull a 328p board out when I have time and see whether I can get it to occur.
Lowering the baud rate -b from 115200 to 57600 seems to help a little but this seems like unusual behavior.
I didn't think that would have any effect on USB transfers. If it's intermittent then random things can seem to be influencing it, heh.
Thanks for contacting me.
|
Hi @gblargg Thank you by the way for the awesome USBaspLoader feature updates! I know this project is a little old but it's exactly what I was looking for. I was able to resolve not being able to upload application firmware with the programmer after writing the bootloader. avrdude was indeed erasing the flash, so simply passing The connection timeouts when uploading via USB seem to persist. With a 328p running at 12MHz, baud rate at 115200 and bitclock set to auto (assuming these matter) I'm able to flash via USB without issue for small images.
Larger images still exhibit the connection timeout issue however and will generally fail to verify.
I've tried various known good cables, as well as both USB 2.0 and 3.0 ports and hubs to no avail. |
I cannot seem to enter the bootloader on a 328p device.
I'd like to use this project to take advantage of the lovely bootloader entry/exit options as my project does not have a user accessible button which seems to be required by most other V-USB based projects.
I'm confident that my hardware implementation is sound as I can successfully enter the bootloader and upload application firmware using similar projects such as USnooBie's bootloader which is essentially the same hardware setup I'm using but with no jumpers or buttons.
bootloaderconfig.inc includes the following to match my setup:
The following directives are set in bootloaderconfig.h
I have tried defining each of these three options independently in bootloaderconfig.h but the result is the same inability to enter the bootloader upon USB connection, power, or reset:
The project builds fine except for the warning:
but this seems fairly common to USBasp projects.
make fuse
runs fine but seems to fail on the extended byte fuse for some reason:Regardless of the input here, flashing runs without issue but results in safemode setting the fuses to:
E:04, H:D0, L:D7
I can then flash my application code without issue but regardless of what I do, the device, when connected via USB, fails to enumerate.
The text was updated successfully, but these errors were encountered: