Unable to Change Compiler Parameters

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

Moderator: Benj

User avatar
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

Postby Steve D » Tue Sep 01, 2015 11:40 am

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 3119 times

stewartbaker
Posts: 116
Joined: Tue Jul 17, 2012 9:34 am
Been thanked: 18 times
Contact:

Re: Unable to Change Compiler Parameters

Postby stewartbaker » Tue Sep 01, 2015 11:56 am

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

regards

Stewart
These users thanked the author stewartbaker for the post:
Steve D (Mon Sep 07, 2015 10:47 am)
Rating: 5.26%
 

User avatar
Benj
Matrix Staff
Posts: 14468
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4536 times
Been thanked: 4204 times
Contact:

Re: Unable to Change Compiler Parameters

Postby Benj » Tue Sep 01, 2015 12:40 pm

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) &quot;$(outdir)$(target).elf&quot; &quot;$(outdir)$(target).c&quot; &quot;$(outdir)$(target).lst&quot;" />      
    <linker exe="$(appdir)compilers\avr\batchfiles\avrb.bat" params="&quot;$(outdir)$(target).elf&quot; &quot;$(outdir)$(target).hex&quot; &quot;$(outdir)$(target).cof&quot;" />
    <programmer exe="$(appdir)compilers\avr\batchfiles\avrc_arduinoA.bat" params="$(chipalt) arduino com7 57600 &quot;$(target).hex&quot;" 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.
These users thanked the author Benj for the post:
Steve D (Mon Sep 07, 2015 10:48 am)
Rating: 5.26%
 

User avatar
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

Postby Steve D » Mon Sep 07, 2015 10:50 am

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


Cheers, Steve
These users thanked the author Steve D for the post:
Benj (Mon Sep 07, 2015 10:52 am)
Rating: 5.26%
 

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

Re: Unable to Change Compiler Parameters

Postby Chet » Thu Oct 11, 2018 5:59 am

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: 14468
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4536 times
Been thanked: 4204 times
Contact:

Re: Unable to Change Compiler Parameters

Postby Benj » Fri Oct 12, 2018 11:51 am

Hello Chet,

The Uno R3 should program fine in FC8. Maybe worth trying the free 30-day trial and see how you get on.
These users thanked the author Benj for the post:
Chet (Tue Oct 30, 2018 2:11 am)
Rating: 5.26%
 

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8485
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2441 times
Been thanked: 3500 times
Contact:

Re: Unable to Change Compiler Parameters

Postby medelec35 » Fri Oct 12, 2018 12:05 pm

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
These users thanked the author medelec35 for the post:
Benj (Fri Oct 12, 2018 12:06 pm)
Rating: 5.26%
 
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.