The LED will blink from 0 to a few times and then stop blinking while the program continues to run to the end.
If I use RPI_BPLUS_GPIO_J8_12, I get the expected result of 10 blinks. I wrote the program in Python and it suffers the same problem. I used both programs on an RPi2 and either Pin 7 or Pin 12 work just fine.
I even ordered another RPi3 to be sure it wasn’t a board problem and got the exact same test results with the new board.
I then tried it without the GrovePi and it still failed the test.
I should also note that I’ve tried every construct of setting and clearing the pins using bcm2835_write.
Can anyone tell me what I’m missing or reproduce this with an RPi3?
I think this question would be better suited on the Raspberry Pi forums. Just because this sounds like a complex issue with the RPi itself. Have you tried updating the firmware on the pi?
The example runs perfectly using port D4. Thank you.
It still leaves me with the same problem of addressing the native RPi3 pin 7. I’ve asked in the Raspberry Pi forums with no responses. I appreciate you taking the time to help.
I also posted this question on the Raspberry pi forums more than two weeks back without a response. I’ll continue to try to find an answer. Thanks for your time.
Sorry, I had an inkling of an idea, but nope, it didn’t pan out.
Just to be sure (as I have yet to do any C coding on a Pi - shame really as C is my native language. I just don’t use it anymore), we’re talking about this specific pin: https://pinout.xyz/pinout/pin26_gpio7
It’s also marked as a SPI pin. Is SPI active on your card?