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

Best place to get started

Hello everyone.

I've got the nRF51822 Evaluation Kit and Dongle. The heartbeat demo is working, so I got the toolchain -- Nordic, Keil, Segger under Win7 -- set up correctly, as far as I can tell.

I need to interface with an I2C/TWI device as one of my peripherals, and was wondering what is the best way to start a new project, and if there's a template that I could use that will do much of the required setup (SoftDevice, initialisation, etc.) for me. Or do most people simply start off with the example code and build on top of that?

Finally, is there a "getting started" guide anywhere? I couldn't find one on the Nordic website.

Thanks!

Parents
  • I'm starting to work on something similar with the S110 and the TWI and some other on chip hardware (SPI, temp sensor, GPIOs) that will interfere with the S110. As I'm reading the docs I don't see anything obvious that says "Include XXX if using a SoftDevice, or use YYY if not." So is there a simple list of SoftDevice safe APIs/includes for various hardware access? I see the SoC library functions documentation, but nothing there is related to TWI, SPI. I would assume that means they could be used without any problem (also Table 4 in the SoftDevice Spec), but as posted above TWI uses some PPI channels, which will cause problems. What's the best guidance on accessing hardware while the SD is enabled?

Reply
  • I'm starting to work on something similar with the S110 and the TWI and some other on chip hardware (SPI, temp sensor, GPIOs) that will interfere with the S110. As I'm reading the docs I don't see anything obvious that says "Include XXX if using a SoftDevice, or use YYY if not." So is there a simple list of SoftDevice safe APIs/includes for various hardware access? I see the SoC library functions documentation, but nothing there is related to TWI, SPI. I would assume that means they could be used without any problem (also Table 4 in the SoftDevice Spec), but as posted above TWI uses some PPI channels, which will cause problems. What's the best guidance on accessing hardware while the SD is enabled?

Children
No Data
Related