-
Notifications
You must be signed in to change notification settings - Fork 67
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
Flash using avrdude / pio + "arduino as ISP" #84
Comments
Thank you |
I may have to try this, i have failed a few times trying with usbasp devices EDIT my new usbasp device arrived. same problem as before observed. tried -F upload flag, tried -B16 upload flag. all to no avail. Any advices here Stuart. Last thing to try might be the tinyisp like Adam Welch does but honestly think that the slaves may be broken too. I struggled last night to flash the 4.21 slaves avrdude: error: program enable: target doesn’t answer. 1 I have a usbasp device which is showing as good in device manager and is being recognised in platformio in vscode, I have triple checked the six wires that go from the icsp headers and when i attempt upload it give the message shown above. any advices would be appreciated. thanks. I get one green flash on the 4.21 slave board when the upload is attempted. I have now put an order on amazon for the usbasp linked in the description of this video. hopefully there is just some difference in my old usbasp device that i cant see, but i am doubtful. |
Are you using the older (small) controller PCB? The newer one includes a TINY841 programmer through the web interface. |
Yes its the older one about 2 years ago the v4.21 and usbasp programmer
through the 6 pins on the slave.
Havent tried a tinyisp flasher like adam welch yet but that my last
possible thought to get these working.
…On Tue, 7 Mar 2023, 12:25 Stuart Pittaway, ***@***.***> wrote:
Are you using the older (small) controller PCB? The newer one includes a
TINY841 programmer through the web interface.
—
Reply to this email directly, view it on GitHub
<#84 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AESC3HJPSRXJAEPISXTAXV3W24SMNANCNFSM4WKTVEXQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hi,
Just flashed the
ATTiny841
hex usingpio
and an "Arduino as ISP", here I used an UNO. For future reference in case anyone wants to quickly repeat this process I'm opening this issue. Maybe one could integrate it into the documentation?Firstly, flash the bootloader (prefererably the "new" variant) to your *duino to be able to use it as ISP programmer. This can be done using the Arduino IDE (didn't get to flash it using
pio run -t bootloader
):Secondly, connect the Arduino ISP to your ATTiny board like this:
This may be done using the Arduino ISCP header or directly using the pins as shown in parenthesis. Arduino ICSP pinout.
Usually, you also need a 10uF cap across D10 (Arduino RST) and GND.
(For programming, in this case, CS (pin 6:PA7 or pin 11:PA2) on the ATTiny is not required to be pulled down.)
Thirdly, flash the firmware either using
avrdude
directly:avrdude -C ~/./avrdude.conf -p attiny841 -P /dev/ttyUSB0 -b 19200 -c stk500v1 -U flash:w:.pio/build/attiny841_V400/module_firmware_attiny841_V400_400.hex:i
Just replace the hex filename with the one you need and the correct
ttyUSB?
device.To flash using
pio run -e attiny841_V400 -t upload --upload-port /dev/ttyUSB1 -vv
one would need to modifyplatformio.ini
:Then do:
pio run -e attiny841_V400 -t upload --upload-port /dev/ttyUSB0
HTH
The text was updated successfully, but these errors were encountered: