I’m working on my program to interface with an I2C device. I need to read a device’s pin, so I use the GPIOs in the same way is explained in the LinuxUserGuide_Dragonboard, but when I run the program, “Bus error” is displayed.
Checking my code, I use the GPIOs in the same way as they are used in the document. So, I tried to run the code TogglyGPIO (page 22 of the document) and the same error is showed. Days ago, when I executed the same code this error wasn’t showed. I copied the code. Also I have checked it.
Anyone has the same problem or know the cause? As I can read in Internet, Bus error happens when processor can’t access to the memory address requested, but in the code i don’t see any that can cause this.
Here is a screen shot: