pymcuprog
pymcuprog copied to clipboard
No connection to ATmega4809
I try want to program an atmega4809 on a arduino nano every with an raspberry pi 4B with it's tx/rx pins.(The usb cable is no option)
I wave used the the following command to find the device but there is no response.
$ sudo pymcuprog ping -d atmega4809 -t uart -u /dev/serial1 Connecting to SerialUPDI
When i quit the command with ^C after a long time of waiting for response i get the following message:
`
^CTraceback (most recent call last):
File "/usr/local/bin/pymcuprog", line 8, in
When i use serial0 i get this massage:
pymcuprog.pymcuprog - ERROR - Operation failed with error: (22, 'Invalid argument')
`
I have connected it like the the following image.
With kind regards.
Stef
Its been a while since I used the native serial on rPi, but it has worked in past (admittedly its not under regression test). Have you followed the advice on the lower section ("Notes for Linux systems") on pyedbglib? (https://github.com/microchip-pic-avr-tools/pyedbglib)
Just an update, I have not found the solution yet, because the lag of time for this project at my job. I want to thank you for your response. If i find a solution i wil at it to the issue.
@StefMijs I had this same issue on a RPi3 but have things working now.
The issue was that I was using the mini UART instead of the PL011 UART (for why this is an issue look at "Notes for the Raspberry Pi 3.. " https://www.abelectronics.co.uk/kb/article/1035/serial-port-setup-in-raspberry-pi-os)
To fix this I just added dtoverlay=disable-bt in /boot/config.txt and rebooted.