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

UART over BLE exemple without softdevice

Hi support !

In my current application, I use nRF24L01+. I want to change this nRF24L01+ for a nRF51422 to add BLE connectivity. So, I've started my development with the spi_slave_pca10028 to check my spi connection. It's OK. Then, I've used the experimental_ble_app_uart_s110_pca10028 exemple as my base development project. I want to use the spi_slave in this UART over BLE application. But, the fact that the softdevice is present in the nRF51422 (for the UART over BLE exemple) cause problems when I want to program the application (with nRFgo Studio). The problem is :"The hex file has data in SoftDevice region....". So, I try to compile Uart over BLE project with the SOFTDEVICE_PRESENT not defined but I have the error L6218E when I build target file.

My question is what solution do I have ?

Notice that I am using the nRF51 7.1.0 SoftDevice and SDK with Keil µVision 5.12.0.0.

Thank for your reply !

  • Hi,

    Let the softdevice present in nrf51822, i think you have to change IROM1 address to meet right address accordingly.

    With softdevice present s110 v7, IROM1 Start: 0x16000, Size: 0x29000. IRAM1: 0x20002000-0x2000.(start-Size respectively)

    This setting you can find in keil under Options of Target, under Target tab. Then after you can as usual try upload the code via nrfStudio.

    • Nextly, doing spi with soft-device, you have to take care of few things what hardware resources are available after softdevice comes up. make sure to perform INIT SPI(whatever be the init procedures) routine after calling ble_stack_init() routine. rest depends upon the spi settings or the spi arrangements.

    • by the way you can take a look here for carrying out SPI + Softdevice in detail here: devzone.nordicsemi.com/.../

    ###EDIT- I missed out reading that you want without softdevice.

    • if you want spi without softdevice, then you have to keep those IROM settings same as settings which are in simpe uart example. i don't thinks any defines will be required to set or change.

    RE EDIT: re-read your post

    Well if you want ble application with other features like UART and spi to go, means you are asking for Softdevice + UART + SPI.

  • Hi Annim,

    First of all, thanks for your answer.

    The IROM1 and IRAM1 address are ok in the project. Actually, I don't know why, but the project is working with SoftDevice in IROM2. I didn't change anything or I don't remember...

    But is it possible to have the same project working without any SoftDevice ? I guess it is...

    Do you know if a project using BLE (without SoftDevice) exist in the exemple applications ?

    Thanks in advance and have a happy new year !

  • Project using BLE without SoftDevice!!!!!! i didn't get your point here. Either you want nrf51822 as simple mcu without having any bluetooth advertisments and behave like normal mcu, or you want the same mcu to be discoverable bluetooth and also carry out various communications too??? BLE or Bluetooth Low Energy means you are actually asking for SoftDevice, and SoftDevice means the bluetooth protocol stack so provided by NordicSemi. So asking for project with BLE but without softdevice, make no sense sir. Or you can narrate me some scenarios what you want to achieve so i can suggest you again. Happy New year!

Related