-
Notifications
You must be signed in to change notification settings - Fork 11
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
Custom UPDI programmer and ATmega4809 #14
Comments
Are you able to program your ATmega4809 board with a different UPDI programmer, for instance, a JTAG2UPDI? And which error are you getting from Avrdude? |
I just saw I didn't connect PF0 and PF1 to the UPDI connector as an RX and TX |
Did this solve your issue? |
This is what I get:
|
I cut the wrong RX/TX traces and rewire them. Error as above. I have no idea what this means, except I have to check my connections. |
I have sold many microUPDI boards, and as far as I know, none of the buyers has had any issues getting it to work. The problem with your setup is that you have two potential sources of error, the programmer and the board. Get yourself a programmer you know works, for instance, a DIY JTAG2UPDI programmer using an ATmega328 based board such as an Arduino UNO or Nano. |
OK. |
With my microUPDI I'm seeing the same problem with avrdude compiled from source, but not with the avrdude included with the Arduino IDE (1.8) on Fedora. Works really well with Atmel Studio 7 in windows too. I want to get avrdude from source as the Arduino IDE one is kinda weird in other ways, and also I want to compile for a raspberry pi. It's quite possibly my less-than-great soldering, but it's weird it always works for some ways, but not others. Possibly related is that I get gibberish serial comms as if the baud is wrong via the microUPDI, but the serial from 4809 works via another serial to USB I have (set at 115200).
|
I tried to build a stand-alone programmer and a simple board with 4809 but something I didn't do good enough.
UPDI programmer
This programmer I made according to the schematic of an add-on board and the schematic of the Sparkfun Pro Micro 5V.
This programmer is alive and while following the steps here, I flash it, and it goes fine. My PC recognizes it as mEDBG Virtual Port. This part should be ok.
As you can see, there is not much. Only what needs to be.
ATmega4809 board
I followed the barebone schematic here as well. Just solder all the necessary things, but when trying to upload a basic Blink sketch I get errors.
On this second board, I didn't solder the 3.3V regulator, LEDs, etc. Only the basic.
I choose MegaCoreX, Atmega4809
Internal clock 16MHz
BOD 2.6V
48 pin standard
Reset pin: Reset
No Bootloader
Programmer mEDBG/microUPDI
To upload I use Sketch->Upload using programmer
How to troubleshoot this? From where to start?
Are my wirings ok?
Did I choose the right options in Arduino IDE?
Do I need a step or two before uploading the sketch?
Thank you in advance.
The text was updated successfully, but these errors were encountered: