Menu

#251 Crash after setting a bit in APFCON

None
closed-out-of-date
APFCON (1)
5
2020-01-15
2020-01-14
No

Using the Alternate Pin Funztion Configuration register APFCON on a PIC12F1840 causes gpsim to crash with the following message:

gpsim: p1xf1xxx.cc:94: virtual void APFCON::put(unsigned int): Assertion `m_ccpcon' failed.

the code location at which the simulation fails is the third one hereby reported:

  BANKSEL  APFCON
  clrf     APFCON
  bsf      APFCON,CCP1SEL

gpsim version 0.30.0
OS: Linux debian

Discussion

  • Roy Rankin

    Roy Rankin - 2020-01-14
    • status: open --> closed-out-of-date
    • assigned_to: Roy Rankin
    • Group: -->
     
  • Roy Rankin

    Roy Rankin - 2020-01-14

    I cannot reproduce this in gpsim 0.31.0 which has been out for over 6 months and there has been significant changes in this area. I suggest you download the latest SVN code files and build it. Alternativly if you are using the latest gpsim package from debian, request that it be upgraded to 0.31.0.

     
  • Gianluca Rocchi

    Gianluca Rocchi - 2020-01-15

    Compiled 0.31.0 and the bug disappeared. Thank You

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB