Loading programs

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 8.

Moderator: Benj

Post Reply
ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Loading programs

Post by ittsjamesss »

when trying to blow the program ive just wrote flowcode cant seem to find the file? This comes up at the end of trying to blow it in.

Launching the programmer...
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avrc_arduinoA.bat m328p arduino com6 115200 "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.hex"
C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m328p -P com6 -b 115200 -c arduino -D -U flash:w:"wheelchair circuit.hex"
avrdude.exe: ser_open(): can't open device "\\.\com6": The system cannot find the file specified.
avrdude.exe done. Thank you.
Error returned from [avrdude]
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avrc_arduinoA.bat reported error code 1
FINISHED

mnf
Valued Contributor
Valued Contributor
Posts: 1208
Joined: Wed May 31, 2017 11:57 am
Has thanked: 70 times
Been thanked: 440 times

Re: Loading programs

Post by mnf »

avrdude can't open the serial port ( com6) to write the program.
Check that you have the correct port at in program options. No terminal access ( putty, teraterm etc)
Try restarting everything (pc and Arduino)

Martin

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

i have tried resetting flowcode and the PC but still nothing is loading to the chip. Where is the program option in flowcode to check.

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

Re: Loading programs

Post by LeighM »

Is your Arduino board USB detected by your PC? ...
uno.jpg
uno.jpg (23.14 KiB) Viewed 9193 times
Select the correct programmer port in Flowcode menu "Build->Project Options" ...
programmer.jpg
programmer.jpg (28.39 KiB) Viewed 9193 times

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

The Board is being detected and the program is using com6.

i have been uploading the program to a different uno and was working completely fine then when i use a different uno it has this problem.

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

Re: Loading programs

Post by LeighM »

A different Uno will be given a different comm port number by Windows
Please check Windows USB devices when the new board is connected to the PC

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

i tried a different uno, checked the devices and its coming up with com3 and also coming up with com3 in the project options. all connected but still not working.

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

Re: Loading programs

Post by LeighM »

Could you post the output error report for this one? e.g. the project.txt file
Are they Arduino boards, or clones? (Just checking they have bootloader firmware)
Could you try pressing reset on the Uno boards when programming starts?

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

the boards are genuine Arduino unos and what it is your wanting me to post?

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

to go over the problem would it be easier if i came to matrix in halifax with the laptop and uno? im only 20 minutes away?

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

Re: Loading programs

Post by LeighM »

please post "wheelchair circuit.msg.txt"

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

Generated by: Flowcode v8.1.0.8
Date: Monday, January 28, 2019 08:46:35
Users: 1
Registered to: ittsjamesss
License key: X38E4Z
NOT FOR COMMERCIAL USE
https://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.c" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.lst"

C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328p -Os -ffunction-sections -fdata-sections -funsigned-char -o "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.c" -lm -Wl,-gc-sections

C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf" 1>"C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.lst"

C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf"
text data bss dec hex filename
3312 86 29 3427 d63 C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf

Compilation successful!

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avrb.bat "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.hex" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.cof"

C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.hex"

HEX file creation successful!

C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.elf" "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.cof"

COFF file creation successful!

Launching the programmer...
C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avrc_arduinoA.bat m328p arduino com6 115200 "C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1\wheelchair circuit.hex"

C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m328p -P com6 -b 115200 -c arduino -D -U flash:w:"wheelchair circuit.hex"
avrdude.exe: ser_open(): can't open device "\\.\com6": Access is denied.


avrdude.exe done. Thank you.


Error returned from [avrdude]

C:\Program Files (x86)\Flowcode\Common\Compilers\avr\batchfiles\avrc_arduinoA.bat reported error code 1



FINISHED

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

Re: Loading programs

Post by LeighM »

You are still trying com6 ?
Last edited by LeighM on Mon Jan 28, 2019 10:46 am, edited 1 time in total.

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

when i plug in a different uno when i open device manager it shows com3 being used and the same in project options but comes up with that

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

Re: Loading programs

Post by LeighM »

Hi,
Just to check, do you only plug one Uno in at a time?
That is, don't connect more than one

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

yeah, only one uno is plugged in at a time.

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

Re: Loading programs

Post by LeighM »

Could you just check that you have default programmer settings ...
default.jpg
default.jpg (55.57 KiB) Viewed 9174 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: Loading programs

Post by Benj »

Hello James,
i tried a different uno, checked the devices and its coming up with com3 and also coming up with com3 in the project options. all connected but still not working.
When you select COM3 in the "Build -> Project Options" are you then clicking OK to save the new COM port selection? You may also want to save your project after doing this. Hopefully this should help.

This suggests you are still pointing to COM6.
C:\Users\WORLDS~1\DOCUME~1\FLOWCO~1>"C:\PROGRA~2\Flowcode\Common\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m328p -P com6 -b 115200 -c arduino -D -U flash:w:"wheelchair circuit.hex"
avrdude.exe: ser_open(): can't open device "\\.\com6": Access is denied.
If in doubt you can use the free Xloader or AVRdudess software to load your .hex files onto your Arduino.

ittsjamesss
Posts: 18
Joined: Tue Jan 15, 2019 11:53 am
Been thanked: 2 times

Re: Loading programs

Post by ittsjamesss »

i think that has solved it Ben, thankyou/

Post Reply