This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF51/52 - SDK15 - Linux + GCC + ST-Link V2

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:

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

Parents Reply Children
No Data
Related