Sim crashes everything on pause

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
TimBox100
Professional User
Posts: 87
Joined: Wed 2019-03-13 13:26

Sim crashes everything on pause

Post by TimBox100 »

Not sure how I can get this resolved so asking the question here

Previous sims have been running fine. I have PIC18F25K80 and a PIC18f1230 running no issues as I said. Fantastic that I can debug like that.

As part of the program work I introduced 2 arrays that pushed the ram used up to 99.8%
Now trying to run the sim its seems to work on run but as soon as I hit pause the whole program just shuts down. Opening its again asks if I want to recover the prog.

I can supply the BAS COFF and hex if need be.

Thanks
Tim
TimBox100
Professional User
Posts: 87
Joined: Wed 2019-03-13 13:26

Re: Sim crashes everything on pause

Post by TimBox100 »

Just to add I can work around it by using a smaller array

Tim
Ettore
Labcenter Staff
Posts: 2935
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Sim crashes everything on pause

Post by Ettore »

I have reproduced the issue with a simple test circuit (PIC18F25K80 + PIC18F1230) but only when one of the two mcus are loaded with .bas program not with .cof. If both are loaded with .cof files I couldn't get any issue.

At any rate, it seems the crash is both in VSMDEBUG and in the BASIC loader because of stack around variable corrupted.
I have fixed the issue and now it appears to work with .bas or .cof in any combination but I used my test design. Would be interesting to see what happens with the your.
Kind regards,
Ettore Arena - Labcenter Electronics.
TimBox100
Professional User
Posts: 87
Joined: Wed 2019-03-13 13:26

Re: Sim crashes everything on pause

Post by TimBox100 »

Many thanks Ettore :)

Moving back to Coff fixed it.

Really appreciate the really fast response

Tim Box
Ettore
Labcenter Staff
Posts: 2935
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Sim crashes everything on pause

Post by Ettore »

Ok, I'm happy but the problem stands for .bas.
Could you please send me your files including Proteus schematic so that I can check if my fixing works with your project ?
If you cannot attach your files to PM please send them to support@labcenter.com
Thank you

Update:
Thanks so much, Dave passed me your files.
I did finally test the bug fix with your project and now it works fine with .bas files as well. The fix will be hopefully in the 8.15.
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply