Page 1 of 1

Unable to Change Compiler Parameters

Posted: Tue Sep 01, 2015 11:40 am
by Steve D
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

Re: Unable to Change Compiler Parameters

Posted: Tue Sep 01, 2015 11:56 am
by stewartbaker
I think that the parameters are now fixed and loaded from a file.

regards

Stewart

Re: Unable to Change Compiler Parameters

Posted: Tue Sep 01, 2015 12:40 pm
by Benj
Hello,

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>
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.

Re: Unable to Change Compiler Parameters

Posted: Mon Sep 07, 2015 10:50 am
by Steve D
Thanks Benj, fantastic! I'm up and running now.


Cheers, Steve

Re: Unable to Change Compiler Parameters

Posted: Thu Oct 11, 2018 5:59 am
by Chet
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

Re: Unable to Change Compiler Parameters

Posted: Fri Oct 12, 2018 11:51 am
by Benj
Hello Chet,

The Uno R3 should program fine in FC8. Maybe worth trying the free 30-day trial and see how you get on.

Re: Unable to Change Compiler Parameters

Posted: Fri Oct 12, 2018 12:05 pm
by medelec35
Benj wrote: Windows won't let you write to the file as is in the Program Files directory
Notepad++ comes in useful here.
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