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

nrf51822 starting from scratch

Hi, I'm a mechanical engineer, an industrial engineer and have a master's degree in control of the dynamics systems. I never get the change to work with ARM architecture before. I worked a lot with PIC and Arduino based projects. I want to step up to ARM. I have a project that based on Arduino. I want to implement the Arduino project to the nrf51822. It is very very simple application actually. There is a buzzer on one of the GPIO and a flashing RGB led. Bluetooth connection requires a password from the user and if it connects, the controller transmits 3 pieces of information automatically and once until another information request from the user. 3 pieces of information are signal power based approximate distance, battery voltage and a specific number that a predefined function returns. All transmitting and receiving jobs will be based on Bluetooth. The nrf51822 custom board will be the server and a phone will be the client.

As I said before, I'm new to ARM. I have an ST Link V2 debugger. And I have nrf51822 bare chip from RS Electronics. I will use the board schematics from the datasheet by reducing it to my needs. Here is my plan, if something seems not right to you.

  1. Build the custom board with accessible SWD SWDCLK VTARG and GND pins.
  2. Upload the code to the nrf51822 using ST Link V2 through nRFGO software.
  3. Check the result.

I have couple questions about how to do this.

  1. What is a softdevice and its role ?
  2. Is there an example and how to use tutorial about my application? For example sending a character with the custom designed nrf51822 project would be adequate for my needs. But all the tutorials I have read presumes reader has knowledge about background information.
  3. Is there a basic example how to program a custom nrf51822 board from scratch.
  4. What do you suggest for my application?
Parents Reply Children
No Data
Related