Page 1 of 1

Loading programs

Posted: Fri Jan 25, 2019 1:55 pm
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

Re: Loading programs

Posted: Fri Jan 25, 2019 2:11 pm
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

Re: Loading programs

Posted: Mon Jan 28, 2019 8:52 am
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.

Re: Loading programs

Posted: Mon Jan 28, 2019 9:14 am
by LeighM
Is your Arduino board USB detected by your PC? ...
uno.jpg
uno.jpg (23.14 KiB) Viewed 9225 times
Select the correct programmer port in Flowcode menu "Build->Project Options" ...
programmer.jpg
programmer.jpg (28.39 KiB) Viewed 9225 times

Re: Loading programs

Posted: Mon Jan 28, 2019 9:18 am
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.

Re: Loading programs

Posted: Mon Jan 28, 2019 9:35 am
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

Re: Loading programs

Posted: Mon Jan 28, 2019 9:41 am
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.

Re: Loading programs

Posted: Mon Jan 28, 2019 9:57 am
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?

Re: Loading programs

Posted: Mon Jan 28, 2019 10:01 am
by ittsjamesss
the boards are genuine Arduino unos and what it is your wanting me to post?

Re: Loading programs

Posted: Mon Jan 28, 2019 10:02 am
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?

Re: Loading programs

Posted: Mon Jan 28, 2019 10:06 am
by LeighM
please post "wheelchair circuit.msg.txt"

Re: Loading programs

Posted: Mon Jan 28, 2019 10:07 am
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

Re: Loading programs

Posted: Mon Jan 28, 2019 10:09 am
by LeighM
You are still trying com6 ?

Re: Loading programs

Posted: Mon Jan 28, 2019 10:11 am
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

Re: Loading programs

Posted: Mon Jan 28, 2019 10:20 am
by LeighM
Hi,
Just to check, do you only plug one Uno in at a time?
That is, don't connect more than one

Re: Loading programs

Posted: Mon Jan 28, 2019 10:21 am
by ittsjamesss
yeah, only one uno is plugged in at a time.

Re: Loading programs

Posted: Mon Jan 28, 2019 10:32 am
by LeighM
Could you just check that you have default programmer settings ...
default.jpg
default.jpg (55.57 KiB) Viewed 9206 times

Re: Loading programs

Posted: Mon Jan 28, 2019 10:41 am
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.

Re: Loading programs

Posted: Mon Jan 28, 2019 11:15 am
by ittsjamesss
i think that has solved it Ben, thankyou/