Arduino Nano 328!

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

Moderator: Benj

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

Arduino Nano 328!

Post by jgu1 »

Hi!

I have normally used the cheap Arduino Nano from china and programmed these via the ch340 USB driver. Work perfect with FC8 no problem with uploading.

Yesterday I got an Arduino Nano (original) bought from RS Component. It is not possible to upload to this board from FC8. I tested it on Arduino IDE no problem. I try to use Xloader, load the hex file from Fc8 change the baudrate to 115200 works, upload the program to the chip.

When I use FC8 (and also FC7) I get the compilermessage:

avrdude.exe: stk500_recv(): programmer is not responding
avrdude.exe: stk500_getsync() attempt 2 of 10: not in sync: resp=0x00
. . . . . .
C:\Program Files (x86)\Flowcode\Compilers\avr\batchfiles\avrc_arduinoA.bat reported error code 255

When I look in Build > Project option FC8 see and recognize the board and see the Serial port number.
Maybe the baudrate? If is it possible to change this? or else Please.

I test with an Arduino Uno r3 original no problem.


Br Jorgen

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 Nano 328!

Post by Benj »

Hi Jorgen,

It looks like we are defaulting to 57600 on the Nano.

You can change the baud rate by editing the definition file shown below using a text editor.

"C:\ProgramData\MatrixTSL\FlowcodeV8\FCD\ARD\Arduino Nano 328.fcdx"

Line 11 looks like this.

Code: Select all

    <programmer exe="$(compileravr)batchfiles\avrc_arduinoA.bat" params="$(chipalt) arduino com7 57600 "$(outdir)$(target).hex"" UsesComm="1" />
Just change the BAUD rate to suit.

Code: Select all

    <programmer exe="$(compileravr)batchfiles\avrc_arduinoA.bat" params="$(chipalt) arduino com7 115200 "$(outdir)$(target).hex"" UsesComm="1" />
The COM7 automatically gets overridden with the selected port from Flowcode. Maybe we could make the BAUD rate adjustable too?

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

Re: Arduino Nano 328!

Post by jgu1 »

Hi Ben!

Thank´s . Before I test it, will it influence on the ch340 Chine Nano also?

And:

"The COM7 automatically gets overridden with the selected port from Flowcode. Maybe we could make the BAUD rate adjustable too?"

Absolutely, good option....


BR Jorgen

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 Nano 328!

Post by Benj »

Hi Jorgen,

Aha yes probably best to make a new version. Here's one I've done for you so the Chinese boards will continue to work correctly.
Arduino Nano 328 115200.fcdx
(14.42 KiB) Downloaded 314 times
Let me know how you get on and I'll push it to the update system if it works ok.

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

Re: Arduino Nano 328!

Post by jgu1 »

Hi Again!

Thank you. Ben is it a big job for you to add it in update, Then I am sure I not do anything wrong, please.

Gratefull

Br Jorgen

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 Nano 328!

Post by Benj »

Hi Jorgen,

The file is part of the update system now.

Just do a full database update and you should get it.

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

Re: Arduino Nano 328!

Post by jgu1 »

Amazing Ben. Test it later this evening, and you hear. :D

Thank you very much. Have a nice weekend.

Br Jorgen....

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

Re: Arduino Nano 328!

Post by jgu1 »

Tested. Perfect, 100% ok. :D

Thank you.

BR Jorgen .

Post Reply