Closed pololevu closed 1 year ago
Hi @pololevu. I tried it with a similar configuration:
diy_attiny:avr@2022.3.10-gcc7.3
platformI was not able to reproduce the fault you reported.
Please try this:
avrdude
command line.
For example, in the output you shared above, the command line is:
"/home/simon/.arduino15/packages/arduino/tools/avrdude/6.3.0-arduino17/bin/avrdude" "-C/home/simon/.arduino15/packages/diy_attiny/hardware/avr/2022.3.10-gcc7.3/avrdude.conf" -v -pattiny13 -cusbtiny "-Uflash:w:/tmp/arduino/sketches/B1E4685C13C2DECE87BADD606D0239A0/relay-bypass.ino.hex:i"
avrdude
command line.avrdude
command line.munmap_chunk(): invalid pointer
" error still occurs when you run the avrdude
command directly from the terminal.Thanks for the rapid response and good call, I get the same error in a terminal so that implies an issue with the version of avrdude I have. Do you know what version i should have? Currently I have:
avrdude: Version 6.3-20190619 Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/ Copyright (c) 2007-2014 Joerg Wunsch
Trying the command using avrdude 7.1 (which I have installed globally on my computer for flashing other devices) I get many error messages related to the diy_attiny supplied avrdude.conf file so I wonder if the issue is related to the diy_attiny board config.
Ok, thanks for the response, I suspect the issues is actually not with the Arduino IDE after all, sorry for the bum steer. Since the flashing actually works and the error is harmless I don't really feel there is anything else to do here - I might reach out to the diy_attiny devs.
Thanks again!
Describe the problem
I am flashing a program to an ATtiny13 using a usbtinyisp programmer. I have done this many times, I am confident my config and code are good. I am using the 'Sketch -> Upload using programmer' menu item. This invokes avrdude as expected and appears to do the right thing but after avrdude completes a successful verification of the target flash, the arduino UI reports:
and the UI pops up a dialog claiming the programming failed (which it didn't).
Actual error message:
To reproduce
Code I'm using is at: https://github.com/mstratman/relay-bypass/tree/main/relay-bypass/relay-bypass.ino
Board is 'ATtiny13' from DIY ATtiny (https://raw.githubusercontent.com/sleemanj/optiboot/master/dists/package_gogo_diy_attiny_index.json) Programmer is usbtinyisp connected directly via USB. Choose 'Sketch -> Upload using programmer' menu item.
Expected behavior
UI should report success.
Arduino IDE version
Version: 2.0.4 Date: 2023-02-27T16:11:28.105Z CLI Version: 0.31.0 Copyright © 2023 Arduino SA
Operating system
Linux
Operating system version
bookworm (ie debian testing)
Issue checklist