Hi, has anyone experienced this issue?
I'm using FC v6.1.2 with AVR & PIC chip packs and full version. I'm trying to compile a program to an Ethernet Arduino and am finding that the baudrate by default is 57600, when I upload the process fails. I've tried a few things but what appears to semi-fix the issue is to select a different chip that uses 115200 baud-rate. When I compile to chip using this selection it appears to compile to chip (tx/rx on board flash as expected), program does run properly but that isn't surprising.
I've attached a screen grab of my compiler options page, as you can see, the parameters are "greyed" out and I can't find a way to modify the baudrate. I've tried saving a copy as a different name, but the same result....I'm never able to modify the parameter.
Any ideas or suggestions of things to try would be most welcome.
Cheers, Steve
Unable to Change Compiler Parameters
Moderator: Benj
- Steve D
- Posts: 14
- Joined: Mon Nov 26, 2012 7:32 am
- Has thanked: 6 times
- Been thanked: 1 time
- Contact:
Unable to Change Compiler Parameters
- Attachments
-
- Programmer Parameter Options.JPG (55.04 KiB) Viewed 7168 times
-
- Posts: 116
- Joined: Tue Jul 17, 2012 9:34 am
- Been thanked: 18 times
- Contact:
Re: Unable to Change Compiler Parameters
I think that the parameters are now fixed and loaded from a file.
regards
Stewart
regards
Stewart
- 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: Unable to Change Compiler Parameters
Hello,
The compiler parameters are set at the top of the Flowcode definition file .fcdx
You should be able to copy the .fcdx file to your desktop, use a text editor to make changes to the compiler parameters and then save the file and copy back to the Flowcode directory.
Windows won't let you write to the file as is in the Program Files directory.
Next time you load your project the new settings should be used.
The compiler parameters are set at the top of the Flowcode definition file .fcdx
Code: Select all
<build>
<compiler exe="$(appdir)compilers\avr\batchfiles\avra.bat" params="$(chip:l) "$(outdir)$(target).elf" "$(outdir)$(target).c" "$(outdir)$(target).lst"" />
<linker exe="$(appdir)compilers\avr\batchfiles\avrb.bat" params=""$(outdir)$(target).elf" "$(outdir)$(target).hex" "$(outdir)$(target).cof"" />
<programmer exe="$(appdir)compilers\avr\batchfiles\avrc_arduinoA.bat" params="$(chipalt) arduino com7 57600 "$(target).hex"" UsesComm="1" />
</build>
Windows won't let you write to the file as is in the Program Files directory.
Next time you load your project the new settings should be used.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- Steve D
- Posts: 14
- Joined: Mon Nov 26, 2012 7:32 am
- Has thanked: 6 times
- Been thanked: 1 time
- Contact:
Re: Unable to Change Compiler Parameters
Thanks Benj, fantastic! I'm up and running now.
Cheers, Steve
Cheers, Steve
Re: Unable to Change Compiler Parameters
I'm having the same problem, trying to program an UNO R3 with FC6. Is this issue handled better with Version 8? Considering upgrading if it lets me program to chip without this problem. Thanks
Chet
Chet
- 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: Unable to Change Compiler Parameters
Hello Chet,
The Uno R3 should program fine in FC8. Maybe worth trying the free 30-day trial and see how you get on.
The Uno R3 should program fine in FC8. Maybe worth trying the free 30-day trial and see how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Unable to Change Compiler Parameters
Notepad++ comes in useful here.Benj wrote: Windows won't let you write to the file as is in the Program Files directory
If you edit with notepad++ then when you click save you will automatically get a user account prompt.
Once you clicked yes, the file will be saved within Flowcode 7 directory
Martin