USBasp-Compiler Options not correct

Moderator: Benj

Post Reply
zwilling77
Posts: 4
Joined: Mon Mar 30, 2020 11:52 am
Been thanked: 2 times
Contact:

USBasp-Compiler Options not correct

Post by zwilling77 »

Hello,
I get the error message Error returned from [avrdude]...Think that here the paths in the compiler options from the programmer are not correct. Can someone tell me where the error is? I´m using USBasp for programming AVR ATXMega256A3Bu...Thanks

Compiler Options:
Location:
$(appdir)compilers\avr\batchfiles\avrc_asp.bat
Parameters:
%a usbasp usb "%f.hex" %cfg %c0 %c1 %c2 %c3

Compiler Message:
Launching the programmer...
C:\Program Files (x86)\Flowcode v8\compilers\avr\batchfiles\avrc_asp.bat %a usbasp usb "%f.hex" %cfg %c0 %c1 %c2 %c3
C:\Users\ogoetz\DOCUME~1\Flowcode>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\AVRDUDEusb\avrdude.exe" -p usbasp -P usb -c usbasp -U flash:w:%cfg
Das System kann den angegebenen Pfad nicht finden.
Error returned from [avrdude]
C:\Program Files (x86)\Flowcode v8\compilers\avr\batchfiles\avrc_asp.bat reported error code 1

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USBasp-Compiler Options not correct

Post by Benj »

Hello,

Does the AVRDUDEusb folder exist on your system?

Can you try avrc.bat instead of the avrc_asp.bat. Looks like the latter is no longer required.

zwilling77
Posts: 4
Joined: Mon Mar 30, 2020 11:52 am
Been thanked: 2 times
Contact:

Re: USBasp-Compiler Options not correct

Post by zwilling77 »

Hello Ben,
thankx for the fast answer! I have now made the change and now comes the following error messages...


Launching the programmer...
C:\Program Files (x86)\Flowcode v8\compilers\avr\batchfiles\avrc.bat %a usbasp usb "%f.hex" %cfg %c0 %c1 %c2 %c3

C:\Users\ogoetz\DOCUME~1\Flowcode>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p usbasp -P usb -c avrispmkii -U flash:w:%cfg
avrdude.exe: AVR Part "usbasp" not found.

Valid parts are:
uc3a0512 = AT32UC3A0512
c128 = AT90CAN128
c32 = AT90CAN32
c64 = AT90CAN64
pwm2 = AT90PWM2
pwm2b = AT90PWM2B
pwm3 = AT90PWM3

and so on


Error returned from [avrdude]

C:\Program Files (x86)\Flowcode v8\compilers\avr\batchfiles\avrc.bat reported error code 1

zwilling77
Posts: 4
Joined: Mon Mar 30, 2020 11:52 am
Been thanked: 2 times
Contact:

Re: USBasp-Compiler Options not correct

Post by zwilling77 »

Hello Benj,
can you help me to fix the configuration problems,please...

The avrdude runs with arduino,but I need the usbasp for programming.

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: USBasp-Compiler Options not correct

Post by Benj »

Hello,

Here's a new version of the avrc_asp.bat file, looks like there are some subtle differences in this compared to the standard avrc file.
avrc_asp.bat
(1.52 KiB) Downloaded 200 times
Copy this over the file here.
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles

In the compiler options the programmer should be set to
$(compileravr)batchfiles\avrc_asp.bat

And I beleive the parameters should be
AVRDUDE $(chipalt) $(chip:l) "$(outdir)$(target).hex" "$(target).hex" 0 $(cfgb) $(cfg0) $(cfg1) $(cfg2) $(cfg3)

Let us know how you get on.

zwilling77
Posts: 4
Joined: Mon Mar 30, 2020 11:52 am
Been thanked: 2 times
Contact:

Re: USBasp-Compiler Options not correct

Post by zwilling77 »

Hello Ben,
the next failure massege is...

avrdude.exe: error: programm enable: target doesn't answer. 1
avrdude.exe: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check.
avrdude.exe done. Thank you.
Error returned from [avrdude]
C:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avrc_asp.bat reported error code 1
FINISHED

User avatar
celebriums
Posts: 125
Joined: Sun Sep 25, 2016 3:50 pm
Has thanked: 71 times
Been thanked: 33 times
Contact:

Re: USBasp-Compiler Options not correct

Post by celebriums »

Dear Matrixmultimedia Family Warm greetings from Istanbul


Thanks Benj
avrc_asp.bat file very fine works. :D

-I have a question?
Can calibration values be added here?

https://www.avrfreaks.net/forum/atmega8 ... -byte-8mhz

Code: Select all

~$ avrdude -p atmega8 -t

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.07s

avrdude: Device signature = 0x1e9307
avrdude> dump calibration
>>> dump calibration 
0000  89 41 5a 3c                                       |.AZ<            |

avrdude> 
~$

Note:
Not LowFuse, HighFuse, or Extendet fuse. Because the calibration settings don't work on ExtremeBurner.
I've been doing research for five days.
I've read that only Atmel ICE, AVRISP MKII, or JTAG ICE programmers can do calibration values. Obviously, this is ridiculous, and I think the USBASP programmer can do it.

Code: Select all


.......

avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude.exe: Device signature = 0x1e9307
avrdude.exe: NOTE: "flash" memory has been specified, an erase cycle will be performed
             To disable this feature, specify the -D option.
avrdude.exe: erasing chip
avrdude.exe: warning: cannot set sck period. please check for usbasp firmware update.
avrdude.exe: reading input file "atmega8aforAtmelStudio.hex"
avrdude.exe: input file atmega8aforAtmelStudio.hex auto detected as Intel Hex
avrdude.exe: writing flash (176 bytes):

Writing | 
################
#################
################# | 100% 0.21s

avrdude.exe: 176 bytes of flash written
avrdude.exe: verifying flash memory against atmega8aforAtmelStudio.hex:
avrdude.exe: load data flash data from input file atmega8aforAtmelStudio.hex:
avrdude.exe: input file atmega8aforAtmelStudio.hex auto detected as Intel Hex
avrdude.exe: input file atmega8aforAtmelStudio.hex contains 176 bytes
avrdude.exe: reading on-chip flash data:

Reading | ################################################## | 100% 0.10s

avrdude.exe: verifying ...
avrdude.exe: 176 bytes of flash verified

avrdude.exe done.  Thank you.


Programming successful!


FINISHED
Sincerely Regards
Sadık SUME

www.kaandesign.com.tr

Post Reply