Page 1 of 1
Hard crash when simulating on 18LF46K22
Posted: Mon Sep 05, 2011 1:12 pm
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
Re: Hard crash when simulating on 18LF46K22
Posted: Mon Sep 05, 2011 2:53 pm
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?
Re: Hard crash when simulating on 18LF46K22
Posted: Mon Sep 05, 2011 2:59 pm
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
Re: Hard crash when simulating on 18LF46K22
Posted: Tue Sep 06, 2011 2:40 pm
by John_RSD
Hi Benj
Any luck in replicating ?
John
Re: Hard crash when simulating on 18LF46K22
Posted: Tue Sep 06, 2011 2:46 pm
by Benj
Hi John,
Yes I have been able to replicate this problem. Investigating it now.
Re: Hard crash when simulating on 18LF46K22
Posted: Tue Sep 06, 2011 2:50 pm
by John_RSD
Hi Benj
Cool (or not cool I guess).
John
Re: Hard crash when simulating on 18LF46K22
Posted: Tue Sep 06, 2011 3:05 pm
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.
Re: Hard crash when simulating on 18LF46K22
Posted: Wed Sep 07, 2011 11:56 pm
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
Re: Hard crash when simulating on 18LF46K22
Posted: Wed Sep 07, 2011 11:59 pm
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
Re: Hard crash when simulating on 18LF46K22
Posted: Thu Sep 08, 2011 9:30 am
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.
Re: Hard crash when simulating on 18LF46K22
Posted: Thu Sep 08, 2011 12:10 pm
by jgu1
Hi Ben!
Something new about release of ver.5 Look forward to se news and buy it.
Best regard
Jørgen.