avrdude.exe has stopped working in FlowCode V7

An area to discuss AVR and Arduino specific problems and examples

Moderator: Benj

Post Reply
silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

I have a question. I want to transfer my flowchart code for my Arduino Mega 2560, but appear a following message: "avrdude.exe has stopped working"

How to solute this problem ?
Thanks!

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by medelec35 »

As this is not a Feature request, I have moved topic to a more suitable section.

Martin
Martin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by LeighM »

avrdude.exe has stopped working
Has it worked in the past, since installation?
If you run cmd.exe to get a command line box (dosbox), cd to your Flowcode7 \compilers\avr\bin directory, then run avrdude.exe
Does that run and respond with usage and version information?

silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

Hi, LeighM! This is the first time I execute the FlowCode 7 to transfer my code for my Arduino Mega 2560. I was in the cited directory and I've execute the avrdude.exe, but when execute it show a dos box very fast and close instantly.

silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

For more information, my Windows version is 8.1, processor is Intel Core i3, and 4GB of RAM Memory.

kersing
Valued Contributor
Valued Contributor
Posts: 2045
Joined: Wed Aug 27, 2008 10:31 pm
Location: Netherlands
Has thanked: 553 times
Been thanked: 1081 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by kersing »

(For all instructions below, skip the ' characters when typing the commands)

Press Windows-Key+R to open the 'Run' box, now type 'cmd.exe' and press enter.

Next type 'cd \Program Files (x86)\Flowcode 7\compilers\avr\bin' and press enter.

Now type 'avrdude.exe', press enter and cut-and-paste the output in a reply. (Right click on the title bar of the window for the context menu and choose 'Mark' from the 'Edit' category to select the text, then paste it in your message)
“Integrity is doing the right thing, even when no one is watching.”

― C.S. Lewis

silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

Hi kersing, this is the result.

C:\Users\Francisco>cd\Program Files (86)\Flowcode 7\compilers\avr\bin
O sistema não pode encontrar o caminho especificado.

C:\Users\Francisco>cd \Program Files (x86)\Flowcode 7\compilers\avr\bin

C:\Program Files (x86)\Flowcode 7\compilers\avr\bin>avrdude.exe
Usage: avrdude.exe [options]
Options:
-p <partno> Required. Specify AVR device.
-b <baudrate> Override RS-232 baud rate.
-B <bitclock> Specify JTAG/STK500v2 bit clock period (us).
-C <config-file> Specify location of configuration file.
-c <programmer> Specify programmer type.
-D Disable auto erase for flash memory
-i <delay> ISP Clock Delay [in microseconds]
-P <port> Specify connection port.
-F Override invalid signature check.
-e Perform a chip erase.
-O Perform RC oscillator calibration (see AVR05
-U <memtype>:r|w|v:<filename>[:format]
Memory operation specification.
Multiple -U options are allowed, each reques
is performed in the order specified.
-n Do not write anything to the device.
-V Do not verify.
-u Disable safemode, default when running from
t.
-s Silent safemode operation, will not ask you
fuses should be changed back.
-t Enter terminal mode.
-E <exitspec>[,<exitspec>] List programmer exit specifications.
-x <extended_param> Pass <extended_param> to programmer.
-y Count # erase cycles in EEPROM.
-Y <number> Initialize erase cycle # in EEPROM.
-v Verbose output. -v -v for more.
-q Quell progress output. -q -q for less.
-l logfile Use logfile rather than stderr for diagnosti
-? Display this usage.

avrdude version 6.1, URL: <http://savannah.nongnu.org/projects/avrdude/>

silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

Anyone solution for this question ? I can't to transfer my code.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by medelec35 »

I don't know much about avrdude.exe so I could be way off.
Could it be a firewall, antivirus or windows defender stopping the program from working when being accessed via a host program?
you could try disabling all of them to check.
Or could it be the folder were flowchart is saved has not got full permission?
Save flowchart in the downloads or documents section.

Martin
Martin

User avatar
LeighM
Matrix Staff
Posts: 2178
Joined: Tue Jan 17, 2012 10:07 am
Has thanked: 481 times
Been thanked: 699 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by LeighM »

Have you set the COM port in project settings?

silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

Martin, I did stop my firewall, windows defender and antivirus and problem continue.

LeighM, Yes. I configure the COM port in stage of project configuration.

But the problem continue.

mnf
Valued Contributor
Valued Contributor
Posts: 1188
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 439 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by mnf »

Can you transfer a program from the Arduino IDE?

EtsDriver
Posts: 444
Joined: Tue Apr 15, 2014 4:19 pm
Location: Kajaani, Finland
Has thanked: 345 times
Been thanked: 227 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by EtsDriver »

Could you attach the .msg and the .fcfx file for us to take look?
Ill just keep the good work up!

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: avrdude.exe has stopped working in FlowCode V7

Post by Benj »

Can you attach your Flowcode project file? The name of the file could potentially be the cause of the problem if you've used any special characters?

silicioslab
Posts: 8
Joined: Fri Sep 22, 2017 5:25 am
Has thanked: 2 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by silicioslab »

This is my files project.
Attachments
blink.rar
(12.33 KiB) Downloaded 211 times

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: avrdude.exe has stopped working in FlowCode V7

Post by Benj »

Hello,

The Non R3 version of the Arduino Mega has known programming issues. Use the compile to hex feature in Flowcode and then use the Xloader software to transfer the Flowcode hex file to the device.

Xloader can be downloaded from here.
http://russemotto.com/xloader/

If you are using the R3 version of the Mega (R3 will be printed on the board) then switch the target in the Flowcode project options and then the compile to chip feature should work as expected.

Let us know how you get on.

User avatar
Alan_37
Posts: 179
Joined: Sun May 01, 2016 8:36 pm
Has thanked: 51 times
Been thanked: 54 times
Contact:

Re: avrdude.exe has stopped working in FlowCode V7

Post by Alan_37 »

Hello,

For all those that want to use the $5 AVRDUDE or ( USBASP ) here is what i have done some time ago to get it work
with Flowcode 7 .

There are 3 files and some configuration involved in this which are avra.bat , avrc_asp.bat and the .fcdx file of the chip you need to flash with AVRDUDE , the modified files are Attached below , Driver for windows can be downloaded from Here

Just replace these files ( keep a backup of the original once just in case you want to go back ) .

I have modified the files so that it works with USBASP ( AVRDUDE ) at Max frequency and suppresses all compilation warnings
so that it will compile faster .

The firmware of your AVRDUDE must be the latest to work on Max Frequency see Here

Regarding the .fcdx file the <programmer exe=""> parameter line has to be deleted in order for this parameter to be accepted from flowcode compiler options .

After replacing the files and modifying .fcdx file open Flowcode go to build -> compiler Options -> AVR -> Default -> Programmer TAB and edit to match the following

Location:

$(appdir)compilers\avr\batchfiles\avrc_asp.bat

Parameters:

AVRDUDE $(chipalt) $(chip:l) "$(outdir)$(target).hex" "$(target).hex" 0 $(cfg0) $(cfg1) $(cfg2) $(cfg3)

Save it with a new name and use as default.

That is all you should now be able to use AVRDUDE by clicking on Compile to chip .
Attachments
USBASP.zip
(5.96 KiB) Downloaded 226 times

Post Reply