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

How to program nRF52832 in C/C++ from bottom up?

Hi there,

A little background in my experiences first: I've programmed a couple PIC24 microcontrollers in the past for VERY simple embedded system projects (i.e. making some LEDs blink, controlling a keypad, creating a simple ADC, etc.). In all of these projects, I programmed the PIC24 from the bottom up, i.e. doing all of the configuration of the timers, interrupts, input/output ports, communication devices, etc. I'm used to writing ALL of the setup/configuration code in plain C/C++ or assembly, so I'm used to having a complete understanding and control over how it all works.

Now:

I'm working on a new project - I bought the RedBear BLE Nano Kit v2 because of its simple Bluetooth communication ability (necessary to transmit data to an App I'm developing) and all of the open-source material on the internet. The problem is that the project I'm working on requires the same amount of nit-picky control that I got used to in my other projects, but I cannot for the life of me figure out how to do that. I've been trying to use the Arduino IDE to program it, but the very few example programs provided don't seem to really do any of the setup themselves. I've got the datasheet, so if I could figure out how to write a simple C/C++ program to run on the chip, all of my problems would be solved.

To summarize, I just want to be able to program the nRF52832 as I have other microcontrollers; to get complete control over the configuration and pin input/output and information processing. How exactly can I do that?

I've been searching through here for hours now and it doesn't seem like anyone else is asking this, so maybe I'm missing something really simple, or maybe I'm asking the wrong questions, I don't know. Any help would be GREATLY appreciated.

Thank you

Parents
  • I can empathize with your desire to completely control everything yourself, but the Nordic processor is way more complex than simple microcontrollers and of course, that requires much more complex software. Fortunately, Nordic provides libraries and API's that abstract most of the complexity for us.

    Much of the complexity is handled in Nordic's 'softdevice' which combines the functionality of a simple OS, I/O drivers and BLE protocol stack.

    The SDK also contains many sample projects covering most of the I/O functionality you might want. I suggest the best way to get started is with one of the simple sample applications. You might also consider getting Nordic's NRF52-DK dev kit, that gives you some LED's and buttons to play with.

Reply
  • I can empathize with your desire to completely control everything yourself, but the Nordic processor is way more complex than simple microcontrollers and of course, that requires much more complex software. Fortunately, Nordic provides libraries and API's that abstract most of the complexity for us.

    Much of the complexity is handled in Nordic's 'softdevice' which combines the functionality of a simple OS, I/O drivers and BLE protocol stack.

    The SDK also contains many sample projects covering most of the I/O functionality you might want. I suggest the best way to get started is with one of the simple sample applications. You might also consider getting Nordic's NRF52-DK dev kit, that gives you some LED's and buttons to play with.

Children
No Data
Related