This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

updated an36 available?

I am pretty new to the nRF51822 in the firmware side. I have been doing hardware design for many years but need a little help getting started with firmware.

Does anyone have an updated AN36 firmware project? I have been trying to compile to code and no matter how I link things, I cannot get it to compile correctly with the Keil uVision 5.14. I am trying to setup a very simple project that uses a custom service with two or three characteristics. Does anyone have a simple example besides the outdated AN36 example?

Need: 1 service with custom UUID (128 bit) and 2 characteristics.

Thank you in advance! Jamie

  • There are a few examples on this blog that use custom service. It is Eclipse based project though. You can copy/paste the code to your Keil project.

  • Have you seen the github version of the nAN36? github.com/.../nrf51-ble-app-lbs. The code was recently updated to work with SDK8.

  • I also have the same problem. Keil v5.14 using SDK 8.0 download from github. The project was all broken links despite copying to sdk 8.0 peripheral folder. I made my own copy in a project folder and ran "manage run-time environment" to install relevant packs manually but get following errors: C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.0.0\gpiote\nrf_drv_gpiote.c(30): error: #20: identifier "GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS" is undefined nrf_drv_gpiote_evt_handler_t handlers[NUMBER_OF_GPIO_TE+GPIOTE_CONFIG_NUM_OF_LOW_POWER_EVENTS]; C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.0.0\gpiote\nrf_drv_gpiote.c(148): error: #20: identifier "GPIOTE_CONFIG_IRQ_PRIORITY" is undefined nrf_drv_common_irq_enable(GPIOTE_IRQn, GPIOTE_CONFIG_IRQ_PRIORITY); C:\Keil_v5\ARM\PACK\NordicSemiconductor\nRF_Drivers\3.0.0\gpiote\nrf_drv_gpiote.c: 0 warnings, 2 errors

  • I would recommend you to download the zipped version of the SDK instead. You can find it here: developer.nordicsemi.com/.../ . Use this zip-file instead of the pack manager. It will save you a lot of trouble. Unzip the nAN-36 project in to the ble_peripheral folder.

Related