Page 1 of 1

Managing Compiler Options

Posted: Thu Aug 31, 2017 9:19 am
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.

Re: Managing Compiler Options

Posted: Thu Aug 31, 2017 10:58 am
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?

Re: Managing Compiler Options

Posted: Thu Aug 31, 2017 11:34 am
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

Re: Managing Compiler Options

Posted: Thu Aug 31, 2017 12:14 pm
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.

Re: Managing Compiler Options

Posted: Thu Aug 31, 2017 12:37 pm
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.

Re: Managing Compiler Options

Posted: Thu Aug 31, 2017 1:41 pm
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 .

Re: Managing Compiler Options

Posted: Fri Sep 01, 2017 8:47 am
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.

Re: Managing Compiler Options

Posted: Sat Sep 02, 2017 10:40 pm
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. :(

Re: Managing Compiler Options

Posted: Mon Sep 04, 2017 10:00 am
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?

Re: Managing Compiler Options

Posted: Mon Sep 04, 2017 7:56 pm
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.

Re: Managing Compiler Options

Posted: Fri Sep 08, 2017 3:35 pm
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 10015 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 10015 times
Is this what is happening with you? Do you get that empty entry created when you press enter?

Re: Managing Compiler Options

Posted: Mon Sep 11, 2017 1:24 am
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.

Re: Managing Compiler Options

Posted: Mon Sep 11, 2017 1:25 am
by JFinlayson
It would appear the dialog window is not appearing!

Re: Managing Compiler Options

Posted: Mon Sep 11, 2017 1:34 am
by JFinlayson
My laptop screen resolution is 3200x1800 and my desktop resolution is higher. in case this is affecting where the window is appearing

Re: Managing Compiler Options

Posted: Tue Sep 12, 2017 2:40 pm
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

Re: Managing Compiler Options

Posted: Wed Sep 13, 2017 8:43 pm
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.