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

keil differences with or without soft device

Hi

in the SDK 7.1 examples, there are examples about how to use the hardware peripherals, and examples on how to use the BTLE stack, but nothing combined. How do I combine this? What exactly is needed to change in e.g. the Keil target options?

I thought that, for example to use the UART example in combination with the presence of the soft device, just had to add the compiler defines BLE_STACK_SUPPORT_REQD, S110 and SOFTDEVICE_PRESENT, and then adapt the memory areas for Read/Only memory and read/write memory. Or do I also need to change some vector settings or so? Or use other linker files or templates?

Or is there some combined example that I could start from? I just need the bluetooth stack, with a proprietary GATT profile, need to control 1 SPI interface, and need a service routine on 1 single external interrupt pin (like a button interrupt).

Parents
  • I have successfully used the SPI library found in the following answer, several times: link.

    The spi_master2.c and spi_master2.h can easily be included in any BLE project, and is easy to use.

    For an UART-example, you can find the experimental_ble_app_uart in the 7.1.0 SDK which implements uart over USB, and sets up an uart BLE service.

    Generally, its not straight forward to combine projects as you mention, as they might use the same modules etc, but with some tinkering it should be perfectly possible.

Reply
  • I have successfully used the SPI library found in the following answer, several times: link.

    The spi_master2.c and spi_master2.h can easily be included in any BLE project, and is easy to use.

    For an UART-example, you can find the experimental_ble_app_uart in the 7.1.0 SDK which implements uart over USB, and sets up an uart BLE service.

    Generally, its not straight forward to combine projects as you mention, as they might use the same modules etc, but with some tinkering it should be perfectly possible.

Children
No Data
Related