<div dir="ltr"><div dir="ltr">I'am currently trying to make a program that reads and writes through the i2c serial communication. The problem is that when i try to initialize GPIO header through the funciton "rpi_setup_i2c_bus()" I get this error:<div><br></div><div>assertion "rtems_semaphore_obtain(gpio_bank_state[bank].lock, RTEMS_WAIT, RTEMS_NO_TIMEOUT ) == RTEMS_SUCCESSFUL" failed: file "../../../../../../../../rtems-git/c/src/lib/libbsp/arm/raspberrypi/../../../../../../bsps/shared/dev/gpio/gpio-support.c", line 500, function: gpio_multi_select<br></div><div><br></div><div>That function is provided in the file "/bsp/i2c.h". If you look at that function it just calls other two</div><div><br></div><div>       - rpi_i2c_init(): Sets the GPIO header for I2C</div><div>       - rpi_i2c_register_bus("/dev/i2c",DEFAULT_BUS_CLOCK): Sets up the bus on the device              "dev/i2c"</div><div><br></div><div>I have tried to exectue those two separately and i can say that it is the first one the one that throws the error. If i don´t put that function the second one executes correctly but later on i can not open the device file.</div><div><br></div><div>I have no idea how to solve it. Thanks in advance</div></div></div>