Page 1 of 1

Arduino Nano 328!

Posted: Wed Feb 06, 2019 7:56 pm
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

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 11:54 am
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?

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 1:49 pm
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

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 2:01 pm
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 322 times
Let me know how you get on and I'll push it to the update system if it works ok.

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 2:24 pm
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

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 2:47 pm
by Benj
Hi Jorgen,

The file is part of the update system now.

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

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 3:13 pm
by jgu1
Amazing Ben. Test it later this evening, and you hear. :D

Thank you very much. Have a nice weekend.

Br Jorgen....

Re: Arduino Nano 328!

Posted: Fri Feb 08, 2019 3:38 pm
by jgu1
Tested. Perfect, 100% ok. :D

Thank you.

BR Jorgen .