Page 2 of 5

Re: Arduino Programming In Flowcode v6

Posted: Fri Jul 11, 2014 12:56 pm
by john_m0ers
Hi,
Some time ago I bought a few arduino unos rev3. I should have looked at the arduino language first!
Having followed this link with interest, am I correct in assuming that the only way you can program the uno is via an external
programmer such as the stk500?
Is there no way to program the uno through the usb port using flowcode 6?
thanks john

Re: Arduino Programming In Flowcode v6

Posted: Fri Jul 11, 2014 1:40 pm
by RobH
I'm not much help here... I did want you to know that I never got my Pro Micro to program via USB in FC6, but programming via USB works perfectly using the Arduino software.

Re: Arduino Programming In Flowcode v6

Posted: Fri Jul 11, 2014 2:02 pm
by Benj
Hello,

The current status is devices with the USB to UART like the Uno are working fine via Flowcode. Devices with an internal bootloader are missing the functionality to reset the board into bootloader mode so this is very hit and miss based on when you push the reset button.

Using 6.0.9 you do this to get the Uno to work.

Build -> Compiler Options -> Programmer Tab

Location: $(appdir)compilers\avr\batchfiles\avrc_arduinoA.bat

Params: $(chipalt) stk500 com7 115200 "$(target).hex"

Where Com7 is the port for the Uno.

Re: Arduino Programming In Flowcode v6

Posted: Sat Jul 12, 2014 11:07 am
by john_m0ers
Hi, thanks to RobH and Benj,
So although it mentions stk500, you actually program it through the usb port?.
Apologies for this, but I tried what was suggested in one of the earlier posts. I had
to alter its com port to 09 (it came up originally on com17).
I clicked build to chip, and it said it was finished, but my uno was still running the
previous program.
thanks john

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 07, 2014 9:24 pm
by dazz
Hi john
can you please post a pic of your build compiler options programmer tab for the uno, can you also please post the generated msg.txt file
regards
Dazz

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 07, 2014 9:42 pm
by dazz
Hi john
can you please post a pic of your build compiler options programmer tab for the uno, can you also please post the generated msg.txt file
regards
Dazz

Re: Arduino Programming In Flowcode v6

Posted: Wed Aug 20, 2014 1:30 pm
by Monie Jacobsen
Hi!

I have also problem´s to get arduino running.

I use Win7 64bit

After I have install the driver the USB for AVRISP and follow the tread here and change portect.I still get this message:
Title:
Description:
Device: AVR.ATMEGA.ATMEGA328P
Generated by: Flowcode v6.0.10.0
Date: Wednesday, August 20, 2014 14:24:32
Users: 1
Registered to: Monie Jacobsen
XXXXX
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\Monie\Documents\ArduinoUnoFC\TestFlash.elf" "C:\Users\Monie\Documents\ArduinoUnoFC\TestFlash.c" "C:\Users\Monie\Documents\ArduinoUnoFC\TestFlash.lst"
Launching compiler...
'C:\Program' blev ikke genkendt som en intern eller ekstern kommando,
et program eller en batchfil.
Completed compilation, return = 1

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

If I use Aduino 1.0.5 No problem????

Do I missing something

Re: Arduino Programming In Flowcode v6

Posted: Wed Aug 20, 2014 2:02 pm
by dazz
HI monie
WHat does your arduino show up as in the device manager , are you also using win 8.1 etc
Can you also select the arduino programmer in the compiler options and click export give it a name(i recommend using your username with a 1 added) . then post it here so i can have a look at the setup
Regards
DAzz

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 21, 2014 10:18 am
by Monie Jacobsen
Hi Dazz:
I use Win 7 64 bit.
In devicemanager I can see the Arduino USB. Sometime it connected to port 3 and sometime port 4. But I also change it in FC config (Build/compileroption/ parameters to the same port.

I follow Bens instruction.
I have install the originally Arduino software including the USB driver + Usb driver (MM) AVRISP.

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 21, 2014 10:55 am
by Benj
Hello,

We are currently in the final stages of a new release which has far superior Arduino support built in and should allow these devices to be programmed much easier.

Your program is currently not even compiling.
'C:\Program' blev ikke genkendt som en intern eller ekstern kommando,
et program eller en batchfil.
Completed compilation, return = 1
Maybe try adding speech marks around the compiler location in the compiler options?

"$(appdir)compilers\avr\batchfiles\avra.bat"

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 21, 2014 11:40 am
by Monie Jacobsen
Hello Benj

I try run your setup.
But no luck.
Will wait till comes with an update of Flowcode 6 with a new update of Arduino

$(appdir)compilers\avr\batchfiles\avra.bat

Title:
Description:
Device: AVR.ATMEGA.ATMEGA328P
Generated by: Flowcode v6.0.10.0
Date: Thursday, August 21, 2014 12:29:55
Users: 1
Registered to: Monie Jacobsen
Licence key: XXXXXXXX
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\TestFlash.elf" "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\TestFlash.c" "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\TestFlash.lst"
Launching compiler...
'C:\Program' blev ikke genkendt som en intern eller ekstern kommando,
et program eller en batchfil.
Completed compilation, return = 1

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

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 21, 2014 1:52 pm
by jgu1
Hi Ben!

Do you have any idea how long time before the new release. Really look forward to test it, and if it would be easyer to setup the different Chip an Arduinoer. :D

Best regard

Jorgen

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 21, 2014 4:02 pm
by Benj
Hello Monie,

It looks lik eyou did not include the " speech marks around the setting as the compiler output is still giving an error about C:\Program
Launching compiler...
'C:\Program'
What happens if you include the speech marks?

"$(appdir)compilers\avr\batchfiles\avra.bat"

We are doing a deal with Elektor mid September so the release should be available around that time if not before.

Re: Arduino Programming In Flowcode v6

Posted: Thu Aug 21, 2014 4:27 pm
by Monie Jacobsen
Hi Ben

I am not expert, where do I have to ADD your Path?

Re: Arduino Programming In Flowcode v6

Posted: Mon Sep 15, 2014 8:05 pm
by RobH
I'm watching this thread for details of the release date of the upgrade...

Re: Arduino Programming In Flowcode v6

Posted: Tue Sep 16, 2014 2:53 pm
by Benj
Hi Rob,

The upcoming upgrade is due around the end of sept / start of oct. Hopefully not long to wait now...

Re: Arduino Programming In Flowcode v6

Posted: Tue Oct 07, 2014 1:53 pm
by Monie Jacobsen
Hi Ben!
Something new regarding update???
Best Regard

Re: Arduino Programming In Flowcode v6

Posted: Tue Oct 07, 2014 1:54 pm
by dazz
Hi monie

The upgrade wont be too long now :)

Regards
DAzz

Re: Arduino Programming In Flowcode v6

Posted: Thu Oct 09, 2014 10:15 am
by Monie Jacobsen
Hello Dazz

But how long time is this, because my FC6 I have bougth (expencive) is still not working with Arduino and is very unstable with my EB006 ver.9

Re: Arduino Programming In Flowcode v6

Posted: Thu Oct 09, 2014 12:09 pm
by dazz
Hi Monie
V6.1 is now available(couldnt say too much the other day as it was going through final testing), and you dont need to adjust any settings for arduino, simply add the arduino to your project, when you click on compile to chip, a pop up appears do what it asks and bingo ,works a treat

Regards

Re: Arduino Programming In Flowcode v6

Posted: Sun Oct 12, 2014 1:32 pm
by Monie Jacobsen
Hi there!

Now I have install the ver.6.1.0 Sorry but I am still not able to program an Arduino uno. Can anybody tell me what I am doing wrong???

I att. The program and the compilermessage.

Re: Arduino Programming In Flowcode v6

Posted: Sun Oct 12, 2014 5:46 pm
by dazz
Hi Monie
works here, try this click on build and there should be a drop down box called programmer port select your port then compile to chip,

Regards
Dazz

Flowcode1.msg.txt
(3.34 KiB) Downloaded 568 times

Re: Arduino Programming In Flowcode v6

Posted: Mon Oct 13, 2014 9:21 am
by Monie Jacobsen
Hi Dazz!

I already have done this and i doesn´t work. For me it look like it not at all.. :(
For me it look like it not compile at all..

Re: Arduino Programming In Flowcode v6

Posted: Mon Oct 13, 2014 9:49 am
by Benj
Hi Monie,

This is the cause of the problem.
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\Flowcode1.elf" "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\Flowcode1.c" "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\Flowcode1.lst"

'C:\Program' blev ikke genkendt som en intern eller ekstern kommando.
Basically the command line command cannot find "C:\Program" which is strange as we should be passing this in quotes.

"$(appdir)compilers\avr\batchfiles\avra.bat"

I cannot see the quotes on your compiler output, I wonder if the registry has been corrupted at all. Can you do a full uninstall and reinstall to see if this solves the problem?

Also are you using any tools like System Mechanic as these can play havoc with your systems registry?

Re: Arduino Programming In Flowcode v6

Posted: Mon Oct 13, 2014 10:49 am
by Monie Jacobsen
Thank you for your answer Benj
But after the reinstall still available ERROR code 1
See below Compiler Messages!
-----------------------------------------------------
http://www.matrixtsl.com
Launching the compiler...
C:\Program Files (x86)\Flowcode 6\compilers\avr\batchfiles\avra.bat atmega328p "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\TestFlash.elf" "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\TestFlash.c" "C:\Users\Monie\Documents\FlowCode V6 Projekter\Arduino\TestFlash.lst"
Launching compiler...
'C:\Program' blev ikke genkendt som en intern eller ekstern kommando,
et program eller en batchfil.
Completed compilation, return = 1

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

FINISHED




----------------------------------------------------------------------