Skip to content
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

Syntax Error #292

Closed
mlksahib opened this issue Mar 21, 2024 · 11 comments
Closed

Syntax Error #292

mlksahib opened this issue Mar 21, 2024 · 11 comments

Comments

@mlksahib
Copy link

I am trying to upload bootloader to new atmega328p-smd version but ide shows (in verbose output) syntax error in avrdude.conf file at line 421.
Another error is that the said file (avrdude.conf) can't be opened
I am using IDE version 1.8.19, windows 10 pro OS

P.S: previous core with optiboot bootloader also can't upload any code to new microcontroller now although i am able to upload code to any previously programmed microcontroller. This has happened before but at that time i tried to upload from another computer (windows 7) and it worked on other computer fine. Now i can't upload from any computer

@MCUdude
Copy link
Owner

MCUdude commented Mar 21, 2024

It would help if you shared the actual Avrdude output.

Which version of MiniCore do you currently have installed?

@mlksahib
Copy link
Author

mlksahib commented Mar 21, 2024

Right now i don't have access to my work pc. I will share it tomorrow. (It's night time in my country)
Syntax error is related to miniCore 3 (with urboot version). I downloaded it today morning . Verbose output shows just 2 lines, 1st line is syntax error at line 421 of avrdude.conf
2nd line is avrdude.conf can't be opened

@mewec
Copy link

mewec commented Apr 17, 2024

I've just hit the same problem trying to upload code to pre bootflashed 328

Here's the verbose uploaded output

Arduino: 1.8.19 (Windows 10), Board: "ATmega328, Yes (UART0), EEPROM retained, Default, 328P / 328PA, BOD 2.7V, LTO disabled, Internal 8 MHz"

Sketch uses 15180 bytes (46%) of program storage space. Maximum is 32384 bytes.

Global variables use 65 bytes (3%) of dynamic memory, leaving 1983 bytes for local variables. Maximum is 2048 bytes.

C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avrdude -CC:\Users\Mike\Documents\Arduino\hardware\MiniCore\avr/avrdude.conf -v -patmega328p -curclock -PCOM1 -b38400 -D -xnometadata -Ueeprom:w:C:\Users\Mike\AppData\Local\Temp\arduino_build_208537/HC4x4x4_Animation.ino.eep:i -Uflash:w:C:\Users\Mike\AppData\Local\Temp\arduino_build_208537/HC4x4x4_Animation.ino.hex:i

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\Mike\Documents\Arduino\hardware\MiniCore\avr/avrdude.conf"

avrdude: error at C:\Users\Mike\Documents\Arduino\hardware\MiniCore\avr/avrdude.conf:421: syntax error

avrdude: error reading system wide configuration file "C:\Users\Mike\Documents\Arduino\hardware\MiniCore\avr/avrdude.conf"

@MCUdude
Copy link
Owner

MCUdude commented Apr 17, 2024

You need to install the lastest Minicore version from the boards manager. That will also install Avrdude 7.2, which is required.

@mewec
Copy link

mewec commented Apr 17, 2024 via email

@Amperogeddon
Copy link

Amperogeddon commented Apr 23, 2024

Hi guys!
I also encountered a similar problem. I tried reinstalling the IDE, changing the avrdude.conf file, installing different versions of the IDE and MiniCore - it didn't help.
Help me please!
All this happened when trying to install the bootloader for Atmega328PB, when trying to install other microcontrollers - the situation is the same...

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\parshikovsv\Documents\Arduino\hardware\MiniCore-3.0.1\avr/avrdude.conf"

avrdude: error at C:\Users\parshikovsv\Documents\Arduino\hardware\MiniCore-3.0.1\avr/avrdude.conf:421: syntax error
avrdude: error reading system wide configuration file "C:\Users\parshikovsv\Documents\Arduino\hardware\MiniCore-3.0.1\avr/avrdude.conf"
There was an error loading https://downloads.arduino.cc/packages/package_index.json

@MCUdude
Copy link
Owner

MCUdude commented Apr 23, 2024

avrdude: error at C:\Users\parshikovsv\Documents\Arduino\hardware\MiniCore-3.0.1\avr/avrdude.conf:421:

Remove the manually installed MiniCore version and install the whole thing though the boards manager instead. The problem is that the Avrdude version that's bundled with the IDE is too old to parse the Avrdude.conf file that MiniCore uses.

@Amperogeddon
Copy link

Thanks for the quick response!
The thing is that I can’t use the board manager because I don’t have access to the Internet. Internet access is only available from a remote desktop. Is there a way to fix this error without using a board manager?
Thank you very much in advance!

@MCUdude
Copy link
Owner

MCUdude commented Apr 23, 2024

You'll either have to manually replace the Avrdude executable with 7.2, or download MiniCore v2.x instead, which uses Avrdude 6.3

@Amperogeddon
Copy link

Thank you very much for your answer!
I apologize in advance for what is probably a stupid question. But how to do that?

@MCUdude
Copy link
Owner

MCUdude commented Apr 24, 2024

Download the latest v2.x version here (zip file), and install it manually, as described in the README. That should hopefully just work.

@MCUdude MCUdude closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants