Loading programs
Moderator: Benj
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Loading programs
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
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
-
- Valued Contributor
- Posts: 1208
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 440 times
Re: Loading programs
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
Check that you have the correct port at in program options. No terminal access ( putty, teraterm etc)
Try restarting everything (pc and Arduino)
Martin
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Re: Loading programs
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.
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Re: Loading programs
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.
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.
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Re: Loading programs
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.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
Re: Loading programs
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?
Are they Arduino boards, or clones? (Just checking they have bootloader firmware)
Could you try pressing reset on the Uno boards when programming starts?
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Re: Loading programs
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?
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Re: Loading programs
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
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
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
Re: Loading programs
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
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times
- 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
Hello James,
This suggests you are still pointing to COM6.
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.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.
This suggests you are still pointing to COM6.
If in doubt you can use the free Xloader or AVRdudess software to load your .hex files onto your Arduino.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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Posts: 18
- Joined: Tue Jan 15, 2019 11:53 am
- Been thanked: 2 times