Menu

#295 Cannot set GPIO for scope on 10F202

None
closed-invalid
None
5
2024-10-20
2024-10-18
Anonymous
No

Hi GPSIM devs,

Firstly, thanks for making the sim :)
I'm trying to scope GPIO pins for a 10F202, however it returns errors.
The command I send is: scope.ch0 = gpio0
Which returns: ERROR: cannot copy IO_bi_directional

There is no sense of "PORT" registers on the PIC10 series, just the GPIO register. I'm wondering if that is the issue?

I've attached my source/hex files if that helps :)

Thanks

4 Attachments

Discussion

  • Jamie Drinkell

    Jamie Drinkell - 2024-10-18

    FYI my version is: gpsim-0.32.1
    I compiled it from the from the release source tarball. I'll try the latest code in case it's already fixed

     
  • Jamie Drinkell

    Jamie Drinkell - 2024-10-19

    I built the latest GTK3 version and it's the same.

    Notes regarding the latest build:
    -> configure is not in the source so I needed to run autogen.sh (I'm not familiar with autotools)
    -> I needed Yacc (Bison) and Lyx installed, maybe these could be checked by configure?
    -> scan.cc is missing from the /cli directory - I copied in the version from the release tarball and it compiled but it's odd that it's gone.

    Thanks

     
  • Roy Rankin

    Roy Rankin - 2024-10-20

    I think the issue with scope is in your syntax.
    try :
    scope.ch0 = 'gpio0'
    Note that scan.cc is generated with flex from the scan.ll file.

     
  • Jamie Drinkell

    Jamie Drinkell - 2024-10-20

    Ahh right, sorry. Your syntax works - user issue 😅.
    Thank you, this can be closed :)

    Like Yacc and Lyx, Flex is not checked by configure so I didn't know it was required. A lot seems to have changed for the GTK3 version. Looking forward to the next stable release :)

     
  • Roy Rankin

    Roy Rankin - 2024-10-20
    • status: open --> closed-invalid
    • assigned_to: Roy Rankin
    • Group: -->
     
  • Roy Rankin

    Roy Rankin - 2024-10-20

    Closing as not a bug. Will look at making build requirements better reported in configure.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB