Skip to content

Having trouble with the led blinker tutorial using the raspberry 3 model b+ when sending "led.BLINKING_ON_OFF" command #2797

Answered by jhsu3
tbkevin asked this question in Q&A
Discussion options

You must be logged in to vote

I wrote an answer on an issue in the led-blinker repository https://github.com/fprime-community/fprime-workshop-led-blinker/issues/67

You might have a GPIO open error further up in the log where the component is initialized. If this is the case, this answer should help you.
Fprime is using sysfs to open the GPIO pins. Looking in /sys/class/gpio on my Pi4 shows gpiochip512 and gpiochip570.
The new addressing uses these chip### as the base for pin addresses.

As an example, to open pin 6, your deployment xxxTopology.cpp file would have:
bool gpio_success = gpioDriver.open((512+6), Drv::LinuxGpioDriver::GpioDirection::GPIO_OUT);

The LinuxGpioDriver might need an update to accommodate the new …

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@tbkevin
Comment options

@Joshua-Anderson
Comment options

Comment options

You must be logged in to vote
2 replies
@Joshua-Anderson
Comment options

@tbkevin
Comment options

Answer selected by tbkevin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants