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 !

Parents
  • 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.

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.

Children
No Data
Related