Arduino Programming In Flowcode v6

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

Moderator: Benj

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Arduino Programming In Flowcode v6

Post by jgu1 »

Hi John!

Your Mega2560 is it an original or a copy maybe from Ebay.

Jorgen.

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times

Re: Arduino Programming In Flowcode v6

Post by Monie Jacobsen »

Hello Benj and JohnCrow

It has also managed to find a reason why I cannot compile to Arduino.

In my PC I have a SSD harddrive installed. It has not managed to get Arduino up and running with this. After a long time struggling with the problem, I tried to install FC6 on my laptop with a standard hard drive. Fine worked it all, could suddenly everything, program the Pic and arduino.

Then I tried to install a second hard drive (standard as second drive) in my tower PC and install FC6 on this drive. Now it works also with Pic and Arduino Uno and Mega.
Are there others who also use SSD, here in forum, and maybe not have any problems?

Is it something MM is aware of and can something be done about this, I do not want 2 HDD in my PC

Data for my tower PC:

User:
Windows 7 64 Bit Ultimate.
Computer Processor Intel(R) i7 CPU 3.20 GHz
Harddisk Samsung SSD 840 EVO 1TB
Se herunder!
http://www.proshop.dk/Harddisk/Samsung- ... 13902.html

Standard HDD:
http://commons.wikimedia.org/wiki/File:Harddisk_1.jpg
Best Regard
Monie

User avatar
DavidA
Matrix Staff
Posts: 1076
Joined: Fri Apr 23, 2010 2:18 pm
Location: Matrix Multimedia Ltd
Has thanked: 58 times
Been thanked: 258 times
Contact:

Re: Arduino Programming In Flowcode v6

Post by DavidA »

Hello Monie,

I run an SSD and a HDD in this PC in the office and have had no problems programming to Arduino devices (Mega / Uno).

Do you have any compiler output logs for the failed and successful attempts?

Are you changing the compiler settings to correspond with the correct drive letter?

Monie Jacobsen
Posts: 484
Joined: Mon Jul 30, 2012 3:39 pm
Has thanked: 17 times
Been thanked: 46 times

Re: Arduino Programming In Flowcode v6

Post by Monie Jacobsen »

Hello DavidA
Mit compiler output her!

Drive letter:
Compiler Messages.txt
(977 Bytes) Downloaded 773 times
Attachments
MitDrev.JPG
MitDrev.JPG (52.93 KiB) Viewed 53296 times
Best Regard
Monie

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Arduino Programming In Flowcode v6

Post by JohnCrow »

I have an SSD in the main system and normal hard drive in the laptop.
Dont think it can be related to that though.

My Arduinos work fine in their own IDE, and they did in the previous way of programming them in FC where I had to alter the compiler settings manually.
1 in 10 people understand binary, the other one doesn't !

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Arduino Programming In Flowcode v6

Post by JohnCrow »

Hi Jorgen
Hi John!

Your Mega2560 is it an original or a copy maybe from Ebay.

Jorgen.
Its a genuine one from Rapid Electronics (UK)
1 in 10 people understand binary, the other one doesn't !

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Arduino Programming In Flowcode v6

Post by jgu1 »

Hi John!

Ok. Because it was the problem by me. I bougth one from Ebay, and the seller promised it was a Mega2560 R3 it could not run on FC6 but no problem at Arduino´s IDE. Then I borrowed an genuine from a friend, then it Work.
I can easily see all the benefits that are in FC6, but sometimes it behaves strangely. Right now I've got arduino to run and I must say it looks very promising. But still, when I need to compile Pic I have to try several times, where there are error messages, but then suddenly program.

Sorry John, but I have no more suggestions you can try. I was also starting to think it might be similar Monie's problem. Sure that MM staff look here and will help.

I will follow here, and if there are something you want me to do, maybe look and compare in config or like that, then let me know.

Jorgen

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

No Hurry Arduino Programming In Flowcode v6

Post by Rudi »

no hurry
hi guys

arduino mikro 32u4

is there a way to change the defaults in arduino template ( all grey ) and save it as a user template?
for a test i will change the baudrate

second way i try change projekt to ATMEGA 32U4 but there is no usb default for programmer.
will try to add it next time

txs best wishes
rudi

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

no hurry Arduino Programming In Flowcode v6

Post by Rudi »

hi guys
arduino mikro 32u4
programmer
is there a way to keep the "connect your arduino window .. Please press the reset button .."
because after i jump with reset mode in bootloader mode - window not close after and upload not start - will wait timeout is off
but my bootloader jumps then automatic again back after a duration of 3 sec..
best wishes

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: Arduino Programming In Flowcode v6

Post by Rudi »

Hi guys
no hurry - ..
the arduino mikro
yes - there are two versions 5v and 3,3v ( 16, 8 ) i will take the 3,3v version so please can u add the template for the radino ( 3,3 ) with 8Mhz version well, too
need this for further way at electronica ;) next week too.
or is alternate with other template simple just for testing possible?
will be fine for own arduino template 3.3v 8Mhz so cleary template
best wishes
rudi ;-)
Last edited by Rudi on Fri Nov 07, 2014 9:52 am, edited 2 times in total.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: Arduino Programming In Flowcode v6

Post by Rudi »

hi guys
i try to make a fcdx change in duemilanove 328P with 16Mhz to change the fix to 8MHz because the Mini Pro 3.3 v from ED is 328P not 168 and 57600
So i try to make the change in the same file this way for testing - is ok.

Now i save the fcdx to a new name and is displayed me at the avr arduino selection well -
but if i select´in FC the 'template' will not load and say corrupted fcd
please what is need to change more ?
change xml too? must add a entry?
thank you
rudi

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: Arduino Programming In Flowcode v6

Post by Rudi »

it seams things replay ;-(

i add simple a rs232

Code: Select all


H:\_\FLOWCO~1.1\radino>"C:\PROGRA~1\FLOWCO~2\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega32u4 -Os -funsigned-char -o "H:\_\FLOWCO~1.1\radino\radiono_flashing1.elf" "H:\_\FLOWCO~1.1\radino\radiono_flashing1.c" -lm 
In file included from C:\Programme\Flowcode 6\CAL\includes.c:563,
                 from H:\_\FLOWCO~1.1\radino\radiono_flashing1.c:133:
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c: In function 'FC_CAL_UART_Init_1':
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:605: error: 'UCSR0A' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:605: error: (Each undeclared identifier is reported only once
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:605: error: for each function it appears in.)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:606: error: 'UCSR0B' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:623: error: 'UBRR0L' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:624: error: 'UBRR0H' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:626: error: 'RXEN0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:627: error: 'TXEN0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:652: error: 'RXCIE0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c: In function 'FC_CAL_UART_Uninit_1':
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:966: error: 'UCSR0A' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:967: error: 'UCSR0B' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c: In function 'FC_CAL_UART_Send_1':
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1072: error: 'UCSR0A' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1072: error: 'UDRE0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1079: error: 'UDR0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c: In function 'FC_CAL_UART_Receive_1':
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1274: error: 'UCSR0A' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1274: error: 'RXC0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1368: error: 'FE0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1371: error: 'UDR0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1378: error: 'DOR0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c: In function 'FC_CAL_UART_UpdateBaud_1':
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1869: error: 'UCSR0A' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1870: error: 'UCSR0B' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1887: error: 'UBRR0L' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1888: error: 'UBRR0H' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1890: error: 'RXEN0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1891: error: 'TXEN0' undeclared (first use in this function)
C:\Programme\Flowcode 6\CAL\/AVR\AVR_CAL_UART.c:1911: error: 'RXCIE0' undeclared (first use in this function)

Error returned from [avr-gcc.exe]
Completed compilation, return = 1

C:\Programme\Flowcode 6\compilers\avr\batchfiles\avra.bat reported error code 1


FINISHED


Last edited by Rudi on Thu Dec 04, 2014 3:52 pm, edited 1 time in total.

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: Arduino Programming In Flowcode v6

Post by Rudi »

arduino template : Solved by myself -> must close all fc sessions and reload FC then ok

compile errors: Solved by myself -> must close Projekt and start with new // many open fc session's ..
it seams that fc not clear all from code after delete or any thing else. after a new projekt it is ok -
will try to reproduced - but i think it is gone by ghoost ;-)


one thing only
@mm:
if use a Atmega 328P .. 32U4 ... with 3.3 v and 8MHZ the baudrate at pc 115200 is ok - but i must take 128000 in FC.
perhabs you can check this after electronica or if you can make..
.. i can work with 128000 / 115200 .. just in time...

ok thanks

best wishes rudi ;-)

will see you at electronica ;-)
have many meetings there..
Do not hide! Dogs that bark do not bite:-)
;-) ha ha ha .. ;-)

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

Re: Arduino Programming In Flowcode v6

Post by Rudi »

Theme:
MEGA 2560 R3 ATMEGA Board compatibel Arduino MEGA2560 R3
http://www.ebay.de/itm/171641663903

hi guys

many boards are at market, and not all have same usb serial for flash code with bootloader:

i get a Board over ebay and have Probem in First try,
this device did not work with the FTDI drivers, nor the PL2302 drivers
because USB Serial Chip not use usually the USB Serial 2.0 chip

in device manager shows :
Product ID: 0x7523
Vendor ID: 0x1a86

i search and have seen the chip at board too
it is a CH340G from WCH


■ Adapterdescription: HL-340
■ Chip: CH340 / CH341
■ Manufacturer: Winchiphead / Nanjing QinHeng Electronics Co., Ltd
■ Homepage : http://www.wch.cn/ (http://www NULL.wch NULL.cn/)
■ Driver: http://wch.cn/download/list.asp?id=5 (http://wch NULL.cn/downloads NULL.php?name=pro&proid=5)
■ supported (desc. from .INF-Datei Archiv):
■ Windows 98/Me
■ Windows 2000/XP/Server2003
■ Vista/64bit Vista/Server2008
■ Win7/64bit Win7


http://www.wch.cn/downloads.php?name=pro&proid=178

i added my driver that i installed for win xp
after install it - the MEGA 2560 R3 ATMEGA Board runs like a charme in FC6
i used "Arduino Mega 2560 R3" for test.


after this all ;-)
seller add the USB Driver now too.

http://ebay.roboter-bausatz.de/drivers/CH341SER.ZIP

so - if you want -
visit manufacturer and add newest driver ;-) in flowcode 6 arduino driver folder for this
have phun!


best wishes
rudi ;-)

please have a look to the manufacturer website -
there are many supported OS like linux, Mac ect too.
if you need for connect the board later to other os

peterhalloway
Posts: 30
Joined: Sat Dec 29, 2012 4:49 pm
Has thanked: 9 times
Been thanked: 5 times

Re: Arduino Programming In Flowcode v6

Post by peterhalloway »

I have just taken delivery of Arduino uno. I have set up as per the instructions here. When I try to compile to chip it is saying I do not have a valid licence I am using flowcode SE. I thought I could program arduino as well as PIC, is that not the case?

Pete

Rudi
Posts: 666
Joined: Mon Feb 10, 2014 4:59 am
Has thanked: 493 times
Been thanked: 187 times

No hurry RS232 115200 compatible Mega 2560 R3 char illegible

Post by Rudi »

MEGA 2560 R3 ATMEGA Board compatibel Arduino MEGA2560 R3
USB CI: CH340G from WCH
http://www.ebay.de/itm/171641663903

Hi guys
RS232 works well until 57600.
If set 115200 the character will be illegible.
best wishes
rudi ;-)

older infos:
https://forums.ni.com/t5/LabVIEW/Arduin ... -p/1963481

User avatar
stregato
Posts: 18
Joined: Tue Feb 25, 2014 12:28 am
Been thanked: 3 times

Re: Arduino Programming In Flowcode v6

Post by stregato »

still problems with the programming of Arduino Mega 2560
I state that it is a version of the original Arduino
I noticed that in recent versions you can not manipulate compiler options Programmer

this is what I get by programming

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avrb.bat "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.elf" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.hex" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.cof"

D:\Dropbox\ELETTR~1\PROVES~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.elf" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.hex"

HEX file creation successful!

D:\Dropbox\ELETTR~1\PROVES~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.elf" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.cof"

COFF file creation successful!

Launching the programmer...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avrc_arduinoB.bat m2560 stk500v2 com11 115200 "Arduino Mega 2560 flowcode.hex"

D:\Dropbox\ELETTR~1\PROVES~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\oldavrdude\avrdude.exe" -p m2560 -P com11 -b 115200 -c stk500v2 -U flash:w:"Arduino Mega 2560 flowcode.hex"

Error returned from [avrdude]

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


FINISHED

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: Arduino Programming In Flowcode v6

Post by Benj »

Hello,

We have found that you can use the xloader application to load Flowcode hex files onto a original Mega 2560.

If you want to try and play around with the avrdude programming settings then you need to edit the FCDX file in a text editor and the settings are near the top of the file. I have tried every option that should work but didn't and didn't have any luck but you may find or be aware of something I am not. It certainly used to work so really scratching my head as to what changed.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Arduino Programming In Flowcode v6

Post by JohnCrow »

Hi Ben
Just been doing a bit of head scratching with the Arduino's

I've just updated to the latest version of FC and I now find that my Arduino Uno PDIP R3 (Genuine) wont program.
But If I select Uno PDIP as the device it will program.
This is the error I get.
I have 2 boards both have the same problem, and both are genuine R3s. They did program ok in the previous version Of FC.
Target folder: H:\FLOWCO~1\PRAE10~1
Source name: H:\Flowcode 6 Projects\Projects FC6 Arduino\Flowcode1test.fcfx
Title:
Description:
Device: AVR.ATMEGA.ATMEGA328
Generated by: Flowcode v6.1.1.0
Date: Monday, February 16, 2015 19:20:42
Users: 1
Registered to: JohnCrow
Licence key: HRKH69
NOT FOR COMMERCIAL USE
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode 6\compilers\avr\batchfiles\avra.bat atmega328 "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.c" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.lst"
Launching compiler...

H:\FLOWCO~1\PRAE10~1>"C:\PROGRA~2\MATRIX~1\FL5209~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-gcc.exe" -mmcu=atmega328 -Os -funsigned-char -o "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.c" -lm

H:\FLOWCO~1\PRAE10~1>"C:\PROGRA~2\MATRIX~1\FL5209~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objdump.exe" -S "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf" 1>"H:\FLOWCO~1\PRAE10~1\Flowcode1test.lst"

H:\FLOWCO~1\PRAE10~1>"C:\PROGRA~2\MATRIX~1\FL5209~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-size.exe" -B -d "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf"
text data bss dec hex filename
2584 12 22 2618 a3a H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf

Compilation successful!
Completed compilation, return = 0

Launching the linker/assembler...
C:\Program Files (x86)\Matrix Multimedia\Flowcode 6\compilers\avr\batchfiles\avrb.bat "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.hex" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.cof"

H:\FLOWCO~1\PRAE10~1>"C:\PROGRA~2\MATRIX~1\FL5209~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.hex"

HEX file creation successful!

H:\FLOWCO~1\PRAE10~1>"C:\PROGRA~2\MATRIX~1\FL5209~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "H:\FLOWCO~1\PRAE10~1\Flowcode1test.elf" "H:\FLOWCO~1\PRAE10~1\Flowcode1test.cof"

COFF file creation successful!

Launching the programmer...
C:\Program Files (x86)\Matrix Multimedia\Flowcode 6\compilers\avr\batchfiles\avrc_arduinoA.bat m328 arduino com4 115200 "Flowcode1test.hex"

H:\FLOWCO~1\PRAE10~1>"C:\PROGRA~2\MATRIX~1\FL5209~1\COMPIL~1\avr\BATCHF~1\..\bin\avrdude.exe" -p m328 -P com4 -b 115200 -c arduino -U flash:w:"Flowcode1test.hex"

avrdude.exe: AVR device initialized and ready to accept instructions

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

avrdude.exe: Device signature = 0x1e950f
avrdude.exe: Expected signature for ATmega328 is 1E 95 14
Double check chip, or use -F to override this check.

avrdude.exe done. Thank you.


Error returned from [avrdude]

C:\Program Files (x86)\Matrix Multimedia\Flowcode 6\compilers\avr\batchfiles\avrc_arduinoA.bat reported error code 1


FINISHED
1 in 10 people understand binary, the other one doesn't !

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Arduino Programming In Flowcode v6

Post by JohnCrow »

Juts tried the same Idea with the Mega2560 R3 still gives the timeout error :(
1 in 10 people understand binary, the other one doesn't !

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times

Re: Arduino Programming In Flowcode v6

Post by acestu »

Hi John,

I have exactly same problem as above.

Thanks
Stuart
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

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: Arduino Programming In Flowcode v6

Post by Benj »

Hi Guys,

Think we have fixed the UNO R3 issues now.
Arduino Uno R3 PDIP.fcdx
(12.33 KiB) Downloaded 666 times
Arduino Uno R3 SMD.fcdx
(12.4 KiB) Downloaded 666 times
I will investigate the Mega R3 and see if I can get this to work too. Not sure why these have become broken.

Edit Mega 2560 is working well for me and the FCD is current and hasn't changed for 5 months. I wonder if it could be a difference in USB driver? Maybe try using the drivers in the following directory "C:\Program Files (x86)\Flowcode 6\Drivers"

Also have you updated the bootloader software at all? This might explain why my R3 and your R3 are behaving differently.

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: Arduino Programming In Flowcode v6

Post by JohnCrow »

Hi Ben
Thanks for the updated files

I have used my arduino's with both the bootloader and the AVRISP II
I then reload the bootloader using arduino IDE (1.0.5)
I have just downloaded the new V1.6 IDE but not used it yet. I'll try this when I get chance to reload the bootloader.

Other thought, what version of Arduino IDE are you using Ben.I could always download that from the archive and use it to reprogram my bootloader.
Will let you know what I find.
1 in 10 people understand binary, the other one doesn't !

User avatar
stregato
Posts: 18
Joined: Tue Feb 25, 2014 12:28 am
Been thanked: 3 times

Re: Arduino Programming In Flowcode v6

Post by stregato »

stregato wrote:still problems with the programming of Arduino Mega 2560
I state that it is a version of the original Arduino
I noticed that in recent versions you can not manipulate compiler options Programmer

this is what I get by programming

Launching the linker/assembler...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avrb.bat "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.elf" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.hex" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.cof"

D:\Dropbox\ELETTR~1\PROVES~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O ihex -R .eeprom "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.elf" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.hex"

HEX file creation successful!

D:\Dropbox\ELETTR~1\PROVES~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\avr-objcopy" -O coff-avr -R .eeprom "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.elf" "D:\Dropbox\ELETTR~1\PROVES~1\Arduino Mega 2560 flowcode.cof"

COFF file creation successful!

Launching the programmer...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avrc_arduinoB.bat m2560 stk500v2 com11 115200 "Arduino Mega 2560 flowcode.hex"

D:\Dropbox\ELETTR~1\PROVES~1>"C:\PROGRA~2\FLOWCO~1\COMPIL~1\avr\BATCHF~1\..\bin\oldavrdude\avrdude.exe" -p m2560 -P com11 -b 115200 -c stk500v2 -U flash:w:"Arduino Mega 2560 flowcode.hex"

Error returned from [avrdude]

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


FINISHED



I solved the problem of programming with modules ARDUINO :D
the tests are performed by me with Arduino Mega 2560 R3 and Arduino Nano 328P
you must replace the files in the folder avrc_arduinoA.bat Flowcode 6 \ Compilers \ avr \ batchfiles \
If other year so to experiment with other Arduino
Attachments
avrc_arduinoA.bat
(1.38 KiB) Downloaded 714 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: Arduino Programming In Flowcode v6

Post by Benj »

Hello Stregato,

I see that you have added the -D flag to the programming command.

Here is what the AVRdude help says on the -D parameter and it sounds to me like it is only needed for the XMEGA family. Hard to tell for sure though.


-D Disable auto erase for flash. When the -U option with flash memory is specified, avrdude will perform a chip erase before starting any of the programming operations, since it generally is a mistake to program the flash without performing an erase first. This option disables that. Auto erase is not used for ATxmega devices as these devices can use page erase before writing each page so no explicit chip erase is required. Note however that any page not affected by the current operation will retain its previous contents.

Post Reply