You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there @MCUdude and thank you for the great cores that you develop!
I've been burning the bootloader to several raw ATmega328P chips on a board I have designed, and for whatever reason, the default Burn bootloader option is Arduino won't work on these chips. I have to change the bit clock period to something like -B 4 or -B 10 for the first time programming for this to work.
Once the bootloader is successfully programmed, then the subsequent programming using the programmer works just fine.
Nothing fancy, the same chip found on the Uno and Nano. The ISP wires are not connected to anything else, they go directly to the pin headers. The length of the jumper wires is between 20cm~30cm. I'm using the USBasp programmer.
I don't know if the issue is the chips or my board design. Once I change the bit clock period, it just works:
It would be nice if the -B 4 could only be applied while setting the fuse bits, since we are only transferring a single byte, rather than the firmware, which wouldn't really make a difference. I don't know if the Arduino platform would support something like this, but it would be awesome if it did!
Once again, thanks for this core, and sorry for bothering you for such a minor thing, but I'd appreciate hearing your thoughts on this issue.
The text was updated successfully, but these errors were encountered:
Applying -B4 only to the fuse command isn't all that trivial, and the problem is that in some cases -B4 will still be needed after the fuses have been set, because the new clock frequency is still too slow.
I'll recommend you to instead upgrade the firmware on your USBasp programmer. The latest enthusiast firmware has automatic clock speed adjustment, which means that the USBasp will clock as quick as the target can handle if no -B parameter have been specified.
Hi there @MCUdude and thank you for the great cores that you develop!
I've been burning the bootloader to several raw ATmega328P chips on a board I have designed, and for whatever reason, the default Burn bootloader option is Arduino won't work on these chips. I have to change the bit clock period to something like
-B 4
or-B 10
for the first time programming for this to work.Once the bootloader is successfully programmed, then the subsequent programming using the programmer works just fine.
Here's a picture of my boards:
Here's the schematics: Custom-ATmega328p.pdf
Nothing fancy, the same chip found on the Uno and Nano. The ISP wires are not connected to anything else, they go directly to the pin headers. The length of the jumper wires is between 20cm~30cm. I'm using the USBasp programmer.
I don't know if the issue is the chips or my board design. Once I change the bit clock period, it just works:
(Notice the parameter added to the end.)
What I am asking is that whether we can somehow add the
-B 4
or-B 10
to be the default when setting the fuse bits forprogrammers.txt
.I know there already exists a
USBasp slow
option as follows, but I'm not sure if the-B32
also applies here.It would be nice if the
-B 4
could only be applied while setting the fuse bits, since we are only transferring a single byte, rather than the firmware, which wouldn't really make a difference. I don't know if the Arduino platform would support something like this, but it would be awesome if it did!Once again, thanks for this core, and sorry for bothering you for such a minor thing, but I'd appreciate hearing your thoughts on this issue.
The text was updated successfully, but these errors were encountered: