Menu

#1032 Raspberry Pi - GPIO Pin 16 can not be used.

1.8
closed-fixed
nobody
None
FORTE
Bug
Normal
2015-08-01
2015-06-20
No

Hi,
there is a bug in the processinterface.cpp of Raspberry Pi.

The range of the GPIO pins in the Wiring Pi library is 0 to 16. The CRaspiProcessInterface::checkPin() method checks this range correctly, but the size of the CRaspiProcessInterface::smPinUsage array is only 16 elements. The 16th element is out of the array range. Forte reports a state of scmPinInUse.

Additionally the Rev.2 board supports pin numbers 0 to 20.

Best regards
Manuel

Discussion

  • Waldemar Eisenmenger

    Hi,

    with the following patch you can use all GPIOs of the raspberry pi. Therefor you have to compile forte with the sysfs module.
    This module should work for all linuxbased devices without external libraries. I tested it with Raspi I, II and BeagleBoneBlack.

    Regards
    Waldemar

     
  • Konstantin

    Konstantin - 2015-07-07

    When this patch will be included in the official version?

     
    • Zoitl Alois

      Zoitl Alois - 2015-07-07

      As this patch is replacing two existing modules (i.e., BeagleBoneBlack and RaspberryPi) it may result into larger changes at our users. Therefore we decided to not included in the next maintenance release (i.e., 1.7.2). We will apply this patch in the next days to the default branch for further testing and refinement and it will then be able with the next major release 1.8.

       
      • Zoitl Alois

        Zoitl Alois - 2015-08-01

        I applied to patch to the development branch for the next major release. For this I updated the file headings to already conform the the required Eclipse style. Furthermore I also removed the beaglebone black and raspberry pi modules. It can be found in cset [forte:cd223c].

         

        Related

        Commit: [cd223c]

  • Zoitl Alois

    Zoitl Alois - 2015-08-01
    • status: open --> closed-fixed
    • Milestone: Backlog --> 1.8
     

Log in to post a comment.

MongoDB Logo MongoDB