Hard crash when simulating on 18LF46K22

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Hard crash when simulating on 18LF46K22

Post by John_RSD »

Hi

In FC4.5 i made a simple chart, 2 mometery switches and 2 leds

Check switch status and output to LED

As soon as I hit simulate, FC crashes and locks up hard, i need to use windows task manager to kill it.

Retargeted for a 18F4550 it is fine.

Any known issues with the 18LF46K22 device ?

John
Many thanks

John

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: Hard crash when simulating on 18LF46K22

Post by Benj »

Hi John,

No problems that I know of. Just given it a test here and its working fine. Can you replicate the problem and can you send us a file that demonstrates the problem?

User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Hard crash when simulating on 18LF46K22

Post by John_RSD »

Just to ruel out the installation on my XP/SP3 machine I re-installed FC4 on my workstation (W7/64) and recreated the flowchart from scracth.

Locked up solid once again.

Seems to happen after adding in a couple of decision macros which i was simply going to use to read a switch and toggle a LED.

Without the decision objects, the sim runs, but of course is useless.

My target device is actually a LF46K22, but I have the 18F46K22 selected as it seems all that is available.

So two different OS and same issue.

I tried a few scenarios on the decision objects and at one time had them in and running, as soon as I add a variable to check or just swap yes/no, thats all she wrote, it locks up on SIM

chart attached, all i need to do really is open it, sim runs, swap yes/no on one decision macro and then try to run the sim, it locks up, a red highlight on BEGIN as if it was starting to step and thats it.

Thanks Benj

John
Attachments
TEST_LED_46K22.rar
(3.64 KiB) Downloaded 262 times
Many thanks

John

User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Hard crash when simulating on 18LF46K22

Post by John_RSD »

Hi Benj

Any luck in replicating ?

John
Many thanks

John

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: Hard crash when simulating on 18LF46K22

Post by Benj »

Hi John,

Yes I have been able to replicate this problem. Investigating it now.

User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Hard crash when simulating on 18LF46K22

Post by John_RSD »

Hi Benj

Cool (or not cool I guess).

John
Many thanks

John

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: Hard crash when simulating on 18LF46K22

Post by Benj »

Hi John,

Not cool i'm afraid :)

It seems that the simulation queue is being held up by the LED component trying to update too fast and this is then causing the simulation to hang. Certainly not something we have come across before.

We have come up with a workaround for the problem but at the moment we are unsure why it is happening at all.

If you add a delay anywhere in the loop eg 1ms then this allows enough time for the simulation queue to empty and the problem disappears.

The problem will not exist on the hardware.

User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Hard crash when simulating on 18LF46K22

Post by John_RSD »

Benj

Will there be some hotfix or patch for this ? or will it be a wait for V5 scenario?

We will be using this device (currently driving me up the wall as it seems to program fine with RealICE but is cheesing me off as PK3 does not work)

Usually I do some diagnostics using FC myself, and the SIM is a great help

BR, John
Many thanks

John

User avatar
John_RSD
Posts: 20
Joined: Sun May 15, 2011 9:23 pm
Location: UK
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: Hard crash when simulating on 18LF46K22

Post by John_RSD »

Benj

On thing i forgot to ask, will the 18LF46K22 be getting added to the supported devices list, the 18F46K22, but not the LF adn i think the devices have a different ID

John
Many thanks

John

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: Hard crash when simulating on 18LF46K22

Post by Benj »

Hi John,

The devices should be basically the same so you should be able to program either with your compiled program and your programmer. I will see if we can get it added to the target list.

The PicKIT 3 should work but you may have to first manually load the PicKIT 3 software and make it detect the device to allow the on-board firmware to be updated. Once you have done this it should then work via Flowcode.

We have tested the in progress Flowcode v5 and the problem has already been resolved for this. Not sure about what will happen with v4. As I say we have never come across this kind of problem before so it must be a fairly rare occurrence.

jgu1
Posts: 1333
Joined: Tue Oct 06, 2009 9:39 am
Has thanked: 1135 times
Been thanked: 299 times

Re: Hard crash when simulating on 18LF46K22

Post by jgu1 »

Hi Ben!

Something new about release of ver.5 Look forward to se news and buy it. :P

Best regard

Jørgen.

Post Reply