Hi,
I hope this is the correct place to ask beginner questions. I new to microcontrollers in general.
So first of all here is what I am using currently:
Software:
- Ubuntu 16.04
- nRF5_SDK_15.2.0_9412b96
- gcc-arm-none-eabi-8-2018-q4-major
- ST-LINK tools (https://github.com/texane/stlink) + OpenOCD 0.10.0+dev-00656-gd140fb2 (installed by following the procedure in the description box https://www.youtube.com/watch?v=BzTcqwFI1m4&t=1s)
Hardware:
Different nrf51822 boards from aliexpress:
ST-LINK V2
Goal:
Run the blinky example (nRF5_SDK_15.2.0_9412b96/examples/peripheral/blinky) my nRF51 boards.
What I got running so far:
I can compile the given examples with gcc and also connect to the boards with OpenOCD and it seems like I could flash it.
What I am struggling with:
First of all getting this work until here was super hard. There are so many outdated posts here that made it really cumberstone to know what tools to use.
Now I would like to compile the blinky example for my nrf51 boards, but the examples only have configs for nrf52 afaik.
How can I make blinky run on my nRF51 boards? What do I have to change in the Makefile? Is the SDK15 even compatible for nRF51 and nRF52 chips?
Where can I learn about building for different targets and how to create my own custom configs from a given hardware?
And finally: Is there a better way to create the whole pipeline?
I appreciate everyone helping and I am also quite happy if you can just guide me to the correct place to read up on this stuff.
Best regards,
Tim