Managing Compiler Options

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

Moderator: Benj

Post Reply
Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Managing Compiler Options

Post by Roy Johnston »

I am trying to set up my flowcode 7.2.1.4 , for the use of a pickit 3.
When i press the save button my flowcode hangs , I cannot even type in a new name.\
any help would be appreciated.

User avatar
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: Managing Compiler Options

Post by Benj »

Hi Roy,

Can you tell us about your computer. Operating system, RAM, Processor Speed etc.

I've just tried it here and it's working correctly for me.

Maybe the save window is popping up for you behind the main Flowcode window?

User avatar
SimonB
Posts: 49
Joined: Thu Oct 15, 2015 10:08 am
Has thanked: 15 times
Been thanked: 30 times
Contact:

Re: Managing Compiler Options

Post by SimonB »

Hi Roy,

Has this just started to happen recently after changing some settings? If you start Flowcode fresh with its default settings does it save a project without freezing? If so then what things are you doing that lead up to the point where it begins to freeze when you save?

Also in the File menu there is Save and there is Save As. Please can you try them both and see if its the same for both? When you click on Save As do you get a window that appears where you can browse to a folder to save to?

Simon

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Managing Compiler Options

Post by Roy Johnston »

I am attempting to change the programmer under the compiler options.
you cannot change default settings,so you need to press the small save button, whereupon a pop up box should appear.
on my PC it does not, instead flow-code is non responsive. every button i try now i just get a sound coming from my speakers.
i even minimized the software prior to clicking this button just to see if it is poping behind , it does not seem to be.
Its a new installation win 1703 ( the latest windows updates) on an existing Laptop that has worked until now.
everything else works with flow-code, i just cannot change my default programmer to pickit 3.

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Managing Compiler Options

Post by Roy Johnston »

I have tried compatibility mode and run as administrator. , did not help.
i suspect that it is windows not allowing changes to parts of the hard drive.
is there any other way of changing this.
i exported the setup from another pc, it wont import it as well.
Attachments
pic.FCS
(535 Bytes) Downloaded 194 times
computer.png
(174.15 KiB) Downloaded 4429 times

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times
Contact:

Re: Managing Compiler Options

Post by Roy Johnston »

ok i found a work around.

1) press on the save icon in compiler options, nothing seems to happen, cannot see popup.
2) type in a name eg Pickit 3 and press enter.
3) pickit 3 appears in the list.
4) now change all required parameters.
5) it works 100% flowcode checked and i am able to program directly to the chip.

what seems to happen is that i cannot see the popup menu , its there just invisible, it also accepts inputs .

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Managing Compiler Options

Post by Steve »

Hi Roy,

I'm glad you've found a work-around. It seems like the window is appearing off-screen for some reason.

There is a workaround - by adding a register entry in this location:

Code: Select all

\HKEY_CURRENT_USER\Software\MatrixTSL\FlowcodeV7\CompilerSettings
I have copied the default PIC8 compiler entry and slightly edited the <programmer exe> entry and this is what is saved into the registry under this key as a REG_SZ object called "store0":

Code: Select all

<root>
<setting title='new_setting2' platform='PIC.*' language='C' path='PIC' >
<compiler exe='$(appdir)compilers\pic\bin\xc8.exe' params='--chip=$(chip) "$(target).c" --MSGDISABLE=359,1273,1388' />
<linker exe='$(appdir)tools\DoNothing\DoNothing.exe' params='' />
<programmer exe='$(appdir)tools\mLoader\mLoaderxx.exe' params='-chip $(chip:u) "$(outdir)$(target).hex"' />
<configure enable='0' exe='' params='' />
<viewer >
<source enable='0' exe='C:\Windows\Notepad.exe' params='$(outdir)$(target).c' />
<asm exe='C:\Windows\Notepad.exe' params='$(outdir)$(target).asm' />
</viewer>
</setting>
</root>
We'll look into why the save window is not appearing but issues like this which seem specific to a particular PC are notoriously difficult to fix.

Regards,
Steve.

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Managing Compiler Options

Post by JFinlayson »

This is exactly the same as happening on my laptop and desktop PC, see elsewhere in this forum. still no answer on a fix. :(
The older the boy the bigger the toy

User avatar
Steve
Matrix Staff
Posts: 3422
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times
Contact:

Re: Managing Compiler Options

Post by Steve »

JFinlayson wrote:This is exactly the same as happening on my laptop and desktop PC, see elsewhere in this forum. still no answer on a fix. :(
Is this only when you want to edit the compiler options or are you seeing this problem with other windows?

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Managing Compiler Options

Post by JFinlayson »

Its only when I press the save Icon. system freezes. hitting return seems to work.
I have previously been updating the registry manually to change settings.
The older the boy the bigger the toy

User avatar
SimonB
Posts: 49
Joined: Thu Oct 15, 2015 10:08 am
Has thanked: 15 times
Been thanked: 30 times
Contact:

Re: Managing Compiler Options

Post by SimonB »

JFinlayson wrote:Its only when I press the save Icon. system freezes. hitting return seems to work.
I have previously been updating the registry manually to change settings.
JFinlayson, I am looking in to this problem at the moment but I'm struggling to find the problem because I haven't been able to replicate it unfortunately. Something you said has given me a clue though and I just need to check something.

Normally when you click on the save icon this dialog will appear and the OK button will be highlighted by default like it is here:
compsettings1.jpg
compsettings1.jpg (24.45 KiB) Viewed 8809 times
So, if I hit return at this point it will create some new settings but they wont have a name so it will just create an empty entry on the left side like this:
compsettings2.jpg
compsettings2.jpg (13.38 KiB) Viewed 8809 times
Is this what is happening with you? Do you get that empty entry created when you press enter?

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Managing Compiler Options

Post by JFinlayson »

Sorry for the delay.

No If I press the ICON the system hangs up and when I press enter key whatever is entered for a name is displayed. But I do not see the option save window.

It works by entering name and then pressing the save Icon, followed by the enter key.
The older the boy the bigger the toy

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Managing Compiler Options

Post by JFinlayson »

It would appear the dialog window is not appearing!
The older the boy the bigger the toy

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Managing Compiler Options

Post by JFinlayson »

My laptop screen resolution is 3200x1800 and my desktop resolution is higher. in case this is affecting where the window is appearing
The older the boy the bigger the toy

User avatar
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: Managing Compiler Options

Post by Benj »

Did you try Steve's suggestion above of looking / modifying the registry key controlling the window placement.

viewtopic.php?f=63&t=19304#p83725

JFinlayson
Posts: 93
Joined: Mon Sep 23, 2013 4:33 pm
Has thanked: 5 times
Been thanked: 6 times
Contact:

Re: Managing Compiler Options

Post by JFinlayson »

I have entered registry keys for my programmer manually before, for what I understand this does not control windows placement, but is programmer information. which would not work with my system. as I don't use mLoader.
The older the boy the bigger the toy

Post Reply