Hi everyone,
my problem is pretty simple: we developed a custom board for the NRF52840 to work using a custom protocol or BLE. A few sensors are connected to the NRF using
I2C, and a few GPIOs are connected to LEDs for debugging. I created a custom board.h file with the pin numbers of my board.
When I use the custom protocol, everything works fine: I can periodically read the sensors, I can switch on, off and toggle the LEDs whenever I need to and there is no issue.
When using the BLE (softdevice S140 V6.0), on the other hand, I cannot switch on/off the LEDs on any of the GPIOs. I tried both the nrf_gpio_pin_set/clear functions and the nrf_gpio_write
functions (which is essentially the same). What puzzles me even more is that the I2C communication works fine with the SoftDevice active, so it seems that my board.h file is accepted either with the SD active.
Is by chance the SD blocking access to GPIOs configurations when active? Do you have any suggestion on what could be wrong?
Thanks for your help.
Lorenzo