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

New to ARM programming and specifically nrf51822.

I searched over the website, I couldn't find a good introductory documentation for programming the nrf51822, specifically the nrf51-dk. I have a transistor hooked to p0.01, I want to set that pin to high... first of all what's the function to call? It's clear how to set it as output from the examples but now to how change states of the GPIOs.. also what is really annoying is how do you map between the pin id (p0.01 and so on) and their respective pin numbers (0, 1, ...), if I want to set p0.01 as an output pin, should I use pin 1? or what? am I missing something?

Parents Reply
  • Make sure you removed any other code on the device. Do that in e.g. nRFgo Studio by selecting the device and press the ERASE ALL button.

    Check if there is an flashing algorithm selected for the project. Select KEil -> Options for target -> Debug tab -> Settings -> Flash Download tab. There should be selected nRF51xxx algorithm. If it is not present, press the Add button and find it in the list of algorithms. Also in the same location, make sure that "RAM for algorithm" -> Size field has value 0x2000

Children
No Data
Related