Unable to Compile to Freetronics (brand) Ethernet Arduino

Moderator: Benj

Post Reply
User avatar
Steve D
Posts: 14
Joined: Mon Nov 26, 2012 7:32 am
Has thanked: 6 times
Been thanked: 1 time
Contact:

Unable to Compile to Freetronics (brand) Ethernet Arduino

Post by Steve D »

Hi, can anyone please help with debugging what I'm doing incorrectly? I have purchased a Freetronics http://www.freetronics.com/collections/ ... LXZm-TqkZk Arduino.

The steps I have done so far;
1. Installed supplied Arduino software
2. Installed the supplied Freetronics driver
3. Select board type in Arduino software as "ethernet"
4. Select serial port COM 8, as assigned on my win7 notebook
5. Test compiler using "Blink", all OK
The above steps seem to confirm that the board and Arduino software are working correctly.

Flowcode Steps;
1. Purchased and installed Flowcode 5 AVR full version
2. Followed setup steps contained in forum post "GUIDE: Arduino programming via USB"
3. Copied files avrdude.exe & avrdude.conf to C:\Program Files\Flowcode(AVR)\v5\Tools\AVRDUDEusb
4. Copied file avrc_arduinoA.bat to C:\Program Files\Flowcode(AVR)\v5\Tools\MX_bats
5. As per additional post copied libusb0.dll to C:\Program Files\Flowcode(AVR)\v5\Tools\AVRDUDEusb
6. I couldn't identify my board in the list of Arduino boards, but seems likely that in uses stk500 and is on COM8 which appears OK.
7. Changed Programmer location to C:\Program Files\Flowcode(AVR)\v5\Tools\MX_bats\avrc_arduinoA.bat
8. Changed parameters to %a stk500 com8 115200 "%f.hex"
9. Left Compiler and Linker / Assembler set to the default settings
10. Tested compile to Arduino, which failed
11. Applied all serial speed options down to 9600
12. Retested each time and continued to fail
10. Complier returns the below error, any help to resolve this would be really appreciated.

File name: C:\Users\xxxxxx\Desktop\Flowcode1.c
Title:
Description:
Generated by: Flowcode v5.3.0.0
Date: Wednesday, November 28, 2012 19:55:19
Licence: Professional
Registered to: xxxxxxx
Licence key: xxxxx
http://www.matrixmultimedia.com
Compilation is up-to-date
Linking is up-to-date
Launching the programmer...
C:\Program Files\Flowcode(AVR)\v5\Tools\MX_bats\avrc_arduinoA.bat m328 stk500 com8 115200 "Flowcode1.hex"

C:\Users\xxxxxx\Desktop>"C:\PROGRA~1\FLOWCO~1\v5\Tools\MX_bats\..\AVRDUDEusb\avrdude.exe" -p m328 -P com8 -b 115200 -c stk500 -U flash:w:"Flowcode1.hex"
avrdude.exe: AVR Part "m328" not found.

Valid parts are:
m6450 = ATMEGA6450 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:11732]
m3250 = ATMEGA3250 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:11543]
m645 = ATMEGA645 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:11354]
m325 = ATMEGA325 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:11165]
usb1287 = AT90USB1287 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:10977]
usb1286 = AT90USB1286 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:10788]
usb647 = AT90USB647 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:10599]
usb646 = AT90USB646 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:10409]
t84 = ATtiny84 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:10226]
t44 = ATtiny44 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:10044]
t24 = ATtiny24 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:9862]
m2561 = ATMEGA2561 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:9669]
m2560 = ATMEGA2560 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:9476]
m1281 = ATMEGA1281 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:9288]
m1280 = ATMEGA1280 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:9099]
m640 = ATMEGA640 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:8911]
t85 = ATtiny85 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:8730]
t45 = ATtiny45 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:8551]
t25 = ATtiny25 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:8371]
pwm3b = AT90PWM3B [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:8190]
pwm2b = AT90PWM2B [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:8007]
pwm3 = AT90PWM3 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:7824]
pwm2 = AT90PWM2 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:7640]
t2313 = ATtiny2313 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:7453]
m328p = ATMEGA328P [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:7265]
m168 = ATMEGA168 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:7077]
m88 = ATMEGA88 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:6891]
m48 = ATMEGA48 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:6704]
t861 = ATTINY861 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:6516]
t461 = ATTINY461 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:6327]
t261 = ATTINY261 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:6138]
t26 = ATTINY26 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:5981]
m8535 = ATMEGA8535 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:5823]
m8515 = ATMEGA8515 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:5665]
m8 = ATMEGA8 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:5505]
m161 = ATMEGA161 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:5365]
m32 = ATMEGA32 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:5190]
m6490 = ATMEGA6490 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:4997]
m649 = ATMEGA649 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:4812]
m3290 = ATMEGA3290 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:4629]
m329 = ATMEGA329 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:4444]
m169 = ATMEGA169 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:4264]
m163 = ATMEGA163 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:4121]
m162 = ATMEGA162 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:3925]
m644p = ATMEGA644P [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:3734]
m644 = ATMEGA644 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:3543]
m324p = ATMEGA324P [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:3351]
m164p = ATMEGA164P [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:3159]
m16 = ATMEGA16 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2981]
c128 = AT90CAN128 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2790]
m128 = ATMEGA128 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2612]
m64 = ATMEGA64 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2431]
m103 = ATMEGA103 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2291]
8535 = AT90S8535 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2170]
8515 = AT90S8515 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:2056]
4434 = AT90S4434 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1973]
4433 = AT90S4433 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1849]
2343 = AT90S2343 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1725]
2333 = AT90S2333 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1640]
2313 = AT90S2313 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1527]
4414 = AT90S4414 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1414]
1200 = AT90S1200 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1299]
t15 = ATtiny15 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:1166]
t13 = ATtiny13 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:993]
t12 = ATtiny12 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:860]
t11 = ATtiny11 [C:\PROGRA~1\FLOWCO~1\v5\Tools\AVRDUDEusb\avrdude.conf:796]


Error returned from [avrdude]
Return code = 1
Flowcode was unable to transfer the flowchart to the microcontroller. Check the programmer options and physical connections.


FINISHED

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Unable to Compile to Freetronics (brand) Ethernet Arduin

Post by dazz »

Hi
Can you check in control panel /device manager and let us know what it shows for the board, try selecting arduino uno in flowcode, try to send a small blinky type code, and let us know what happens, and post up the generated *.msg.txt file thats generated


Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Unable to Compile to Freetronics (brand) Ethernet Arduin

Post by dazz »

HI
Heres an fcd for the etherten board, in your flowcode main folder theres a folder called FCD pop the attached file in there and you can then select it from build options, the numbers in brackets on the chip view are mapped to the pwm component in flowcode

Regards
Dazz
Arduino EtherTen.fcd
(10.11 KiB) Downloaded 319 times
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

User avatar
Steve D
Posts: 14
Joined: Mon Nov 26, 2012 7:32 am
Has thanked: 6 times
Been thanked: 1 time
Contact:

Re: Unable to Compile to Freetronics (brand) Ethernet Arduin

Post by Steve D »

Thanks Dazz, I downloaded the etherten fcd file you supplied, installed it and all good now (didn't make any other changes and speed was set to 115200)....... :D

Out of interest do you have any idea how the fcd file has fixed the problem?



Regards, Steve D

dazz
Posts: 1314
Joined: Sun Jan 15, 2012 3:15 pm
Has thanked: 474 times
Been thanked: 458 times
Contact:

Re: Unable to Compile to Freetronics (brand) Ethernet Arduin

Post by dazz »

HI
all i did was change the name of the uno smd fcd and added pwm numbers
glad your up and working, one thing to note is the pwm's follow the atmel scheme not the arduino's, nothing to worry about just they may be numbered slightly differently
Regards
Dazz
To sign up to the V5 forum follow this link http://www.matrixmultimedia.com/forum_upgrades.php

Post Reply