Unable to Change Compiler Parameters

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

Moderator: Benj

Post Reply
User avatar
Steve D
Posts: 14
Joined: Mon Nov 26, 2012 7:32 am
Contact:

Unable to Change Compiler Parameters

Post 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
Attachments
Programmer Parameter Options.JPG
Programmer Parameter Options.JPG (55.04 KiB) Viewed 3801 times

stewartbaker
Posts: 116
Joined: Tue Jul 17, 2012 9:34 am
Contact:

Re: Unable to Change Compiler Parameters

Post by stewartbaker »

I think that the parameters are now fixed and loaded from a file.

regards

Stewart

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Unable to Change Compiler Parameters

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

User avatar
Steve D
Posts: 14
Joined: Mon Nov 26, 2012 7:32 am
Contact:

Re: Unable to Change Compiler Parameters

Post by Steve D »

Thanks Benj, fantastic! I'm up and running now.


Cheers, Steve

Chet
Posts: 61
Joined: Thu Oct 13, 2005 5:05 am
Location: USA
Contact:

Re: Unable to Change Compiler Parameters

Post 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

User avatar
Benj
Matrix Staff
Posts: 14929
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Contact:

Re: Unable to Change Compiler Parameters

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

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 9014
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Contact:

Re: Unable to Change Compiler Parameters

Post 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
Martin

Post Reply