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

Moving from S110 to S310 with Keil uV5

I have a project based on ble_app_lbs example. When I started the project I was using the S110 stack and SDK 6.1. I have much of my BLE code working, but the project has expanded since I started, and I now need to add some ANT functionality as well. I would like to retain the BLE code I have as it will require very few changes.

To start the migration process to ANT I acquired a PCA10028 board, installed SDK 7.1, and downloaded S310 version 2. I was able to load the ble ANT hrm example, and connect it to the USB ANT+ dongle.

I copied my orginal BLE project to the Keil directory, where the SDK 7.1 was installed. Remapped the project files to the file locations of SDK 7, and was able to build, load, and run my project with the S310 stack (note I did not have any ANT calls). The BLE calls functioned normally.

My next step isto activate the ANT SD - This is where I'm having problems. Keil is still treating this project like it is based on a nRF51822 chip and S110 stack. I can't figure out how to update the project so that Keil builds for nRF51422/SD310.

I've tried changing the options/device to nRF51422 image description

but the main menu bar with the drop down device doesn't change: image description

nor do I have the option of selecting a nRF51422 chip.

Keil generates a file called RTE_Components.h this file has a couple of pound defines that are used to determine if the ble and ANT stacks are used in the project. The ANT sample project I ran defines: ANT_STACK_SUPPORT_REQD and BLE_STACK_SUPPORT_REQD. The project I'm trying to port over the RTE_Components.h has nothing defined.

This leads me to believe there is a configuration file or options somewhere that I'm missing. Is there an easy way to port a project that started out using the S110 stack to the S310 stack? How to I get uVision to recognize the project is now running on a nRF51422 and using the S310 stack?

Related