Global variables use 250 bytes (1%) of dynamic memory, leaving 16134 bytes for local variables. Maximum is 16384 bytes.
C:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/bin/avrdude -CC:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf -v -patmega1284p -carduino -PCOM6 -b57600 -D -Uflash:w:C:\Users\Me\AppData\Local\Temp\arduino_build_790028/ASCIITable.ino.hex:i
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf"
avrdude: error at C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf:402: syntax error
avrdude: error reading system wide configuration file "C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf"
avrdude: error reading system wide configuration file "C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf"
I'm not confident enough to know how this should be but everything before the problem lines which include 402 is #commented out. Do lines 400, 401 and 402 need to have some sort of title and then get closed out with a ; like the code that comes after?
programmer
id = "wiring";
desc = "Wiring for bootloader using STK500 v2 protocol";
type = "wiring";
prog_modes = PM_SPM;
connection_type = serial;
;
I'm using FTDI via an external serial board, I have this board working using the 1.0.6 IDE and the board files produced by Maniacbug many moons ago. If I upload the 'ASCII table' demo code in 1.0.6 using the Maniacbug board files it all works, then if I open the serial monitor in 1.8.19 I get the expected serial output. If I use 'Get Board Info' in 1.8.19 I get the output below. Any idea how else I test this trip wire
BN: Unknown board
VID: 0403
PID: 6001
SN: Upload any sketch to obtain it
Yes, with 1.0.6 I can see it is using avrdude version 5.11 which uploads successfully (see below) and with 1.8.19 it uses avrdude 6.3 which fails at upload with the syntax error at the bottom of this post? I'm properly stuck
IDE 1.0.6
avrdude: Version 5.11, compiled on Sep 2 2011 at 19:38:36
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2009 Joerg Wunsch
System wide configuration file is "D:\Arduino IDE\arduino-1.0.6\hardware/tools/avr/etc/avrdude.conf"
Using Port : \\.\COM6
Using Programmer : arduino
Overriding Baud Rate : 57600
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Send: 0 [30] [20]
avrdude: Recv: . [14]
avrdude: Recv: . [10]
AVR Part : ATMEGA1284P
Chip Erase delay : 9000 us
PAGEL : PD7
BS2 : PA0
RESET disposition : dedicated
RETRY pulse : SCK
serial program mode : yes
parallel program mode : yes
Timeout : 200
StabDelay : 100
CmdexeDelay : 25
SyncLoops : 32
ByteDelay : 0
PollIndex : 3
PollValue : 0x53
Memory Detail :
IDE 1.8.19
An error occurred while uploading the sketch
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf"
avrdude: error at C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf:402: syntax error
avrdude: error reading system wide configuration file "C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr/avrdude.conf"
Rats. Time to bring out the ESD mat and format c:\ I guess...
Nah, but the last thing I can think of is of course to reinstall the IDE.
Another possibility is that you got a super old IDE, and the latest, from the 1.x family. Perhaps something is shared between them, that the latest version chokes on. Something you could just try out for fun is to create a new user and see if same thing shows up when you run 1.8.19.
Well..... some positive news: If I copy the avrdude.conf file from the location C:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17\etc to the MightyCore location C:\Users\Me\Documents\Arduino\hardware\MightyCore\avr (overwriting the MightyCore avrdude.cong file after making a backup) everything compiles and uploads as expected Some initial tests suggests this works but the issue I have now is that I have no idea if this is a sensible solution of if I have made a heap of problems which I'm yet to discover?.......
The latest version of MighyCore requires Avrdude 7.1 to work.
The easy solution is to install the latest version using the boards manager.
The other solution is to either update the toolchain Arduino IDE uses (not all that easy), or copy the Avrdude.conf file found in the MightyCore v2.1.3 release, which was the last version before I ditched Avrdude 6.3 in favor of 7.1
Thanks both, much appreciated. @hansibull I have used 'boards manager' to update 'Arduino AVR Boards' to the latest verion 1.8.6 and then uploaded some code to the 1284p - the verbose output shows that the AVRdude version besing used is 6.3-20190619 . Where would I find version 7.1 and what is the easiest way to install this? Hopefully I've done something simple wrong and its an easy fix
@hansibull Wow, thanks - that was easy and worked seamlessly without any hacks or tinkering! When I originally did the manual install of MightyCore I thought I was playing it safe - turns out to be the opposite! Thanks for your help getting me there, I can now begin using the board which is great news Have a good weekend.
The problem is that a "Manual" install of MightyCore doesn't include any toochain or tool information in general. In other words, the manually installed core will use the most recent version of avr-gcc and avrdude that the IDE has available. So if you happen to have MiniCore installed through boards manager, the IDE will use the avr-gcc and avrdude version bundled with this core when compiling and uploading using MightyCore.
The next MightyCore release (v3.0.0) will completely replace the Optiboot bootloader with the way superior Urboot bootloader, but this requires Avrdude 7.1 in order to work. So while we're waiting for the "Official" Arduino AVR core to adopt the latest Avrdude version, I should try to figure out how Avrdude 7.1 can be installed "manually", so that Arduino IDE picks it up.
Thanks for taking the time to explain @hansibull, its great to have a solution and learn something new. Its also fantastic to hear that there is a future for MightyCore and I look forward to using it more - I've never heard of Urboot so I will head of and read up about it, thanks for the link