Replies: 8 comments
-
I think this should be a possible enhancement but somebody needs to contribute to write the codes. As for the mapping it is probably quite flexible as you are using GPIO and not SPI/UART/etc. In the mean time, you may want to use serialupdi or jtag2updi.
|
Beta Was this translation helpful? Give feedback.
-
You should be able to build your own SerialUPDI programmer using the RX and TX lines on your Raspberry Pi Header. |
Beta Was this translation helpful? Give feedback.
-
I can solve that one. https://github.com/gcormier/avr5hat This allows me to program 5 ISP targets at once. With the requested functionality, the same could be done for UPDI targets. |
Beta Was this translation helpful? Give feedback.
-
Just FYI, there are boards with 4 USB to TTL converters with 5V/3/3V/2.5V/1.8V selections (for Vcc, TX and RX pins). Example: about US$12 from AliExpress, using FT4232HL. I have another version based on the same FT4232HL with only 5V and 3.3V, but with all the pins available so that it can work with USB to two JTAG (I used it for testing of PR #1324), USB to 4 SPI as well as USB to 4 TTL. It is probably a bit more expensive than the above. There are also cheaper ones with a USB hub and 4 CH340 USB to TTL converters. |
Beta Was this translation helpful? Give feedback.
-
@dbuchwald was the one that wrote the SerialUPDI implementation, so maybe he can answer if this is a doable thing or not. |
Beta Was this translation helpful? Give feedback.
-
@MCUdude, this is generally doable, as everything else, but the effort in AVRDUDE is difficult to justify. What I would recommend to @gcormier is to look if there are any software based bit-bang UART devices available (see https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/software-uart-driver-4175524941/ for instance) and use something like that for the mapping of virtual UART devices to GPIO pins. Then he could have AVRDUDE operate as normal by using these UART devices. Does that make sense, @gcormier? |
Beta Was this translation helpful? Give feedback.
-
@dbuchwald Good call. There is indeed one, at https://github.com/adrianomarto/soft_uart That said, I'm realizing now it might not be as simple as that. As mentioned on serialupdi guide, hardware modifications are needed. Or, linuxgpio would need to switch between read/write at sufficient speed which I am rather skeptical of, and would agree that would not be fun to support with avrdude. That said, I suspect we can close this issue. It is a bit of an edge case, but someone was asking if this board could be used for both ISP and UPDI. I think we found the answer :) |
Beta Was this translation helpful? Give feedback.
-
Okay, I will close this as not planned. In case someone is interested enough and creates a PR, then we can reopen this issue. |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to use linuxgpio to bitbang the serial for
PM_UPDI
, as is the case withPM_ISP
? This might require additional code. Not sure which mapping would relate to the actual UPDI data pin.ISP Example
Beta Was this translation helpful? Give feedback.
All reactions