Hi
I am really struggling to get started with overlay files. I have read through a lot of documentation, watched a few hours of YouTube tutorials, and yet I can’t even get going with one gpio.
I have an existing project for the nRF5340_DK, based I think on Nordic’s BLE UART Peripheral example.
I had to change the pins used for the i2c bus, so I managed to hack an overlay fiel for that, which works – but probably isn’t correct.
So now I want to try using one of the GPIO, as an output.
The examples I found were here and here.
I couldn't get either to build.
Any help / guidance / pointers would be appreciated, thank you.
DETAILS
I decided to pick gpio0.25, and then gpio0.26, since they seem to be free.
Here is my overlay file – you will see both attempts at the end of the file – one commented out:
And in main.c, again – two attempts, one commented out:
And in main():
Here are the warnings and errors I get for the first build (for gpio0.25 only – which is the attempt commented out above):
And the error and warning for my second attempt:
By the way, I don’t know where this came from, in the overlay file – I suspect is was from when I was playing with the Device Tree GUI: