Hi,
Can anyone suggest me an example program to control LED connected to nRF51822 with a mobile app?
Hi,
Can anyone suggest me an example program to control LED connected to nRF51822 with a mobile app?
The easiest way is to take the ble_app_blinky application and control the LED using the nRF blinky app.
The easiest way is to take the ble_app_blinky application and control the LED using the nRF blinky app.
Hi sir,
Thank you for your response. I flashed the hex file of ble_app_blinky to my nRF51822 motherboard BLE400 successfully. But when I am trying to build the application using Keil 5 project document, I cannot successfully execute it. This happens to me always as I couldn't execute any of the sdk ble_peripheral/central examples successfully. Is that my setting issue or something else? Please help me to figure it out.
This is how i set it up: Clicking on option for target 'Device' I selected nRF51822_xxAA and set the debug used. I left the 'Target' within the option as default. Then I select the debug option and use J-Link and followed settings I added the programming algorithm 'nrf51xxx'. In utilities I give a tick in checkbox 'Update the target before Debugging'. After I build and Downloaded it to the moduled but it was not advertising anything.
What i noticed in the build file is that, the size of the .hex file generated was too less compared to the .hex file given in the sdk. I am struck at this and can u help me to solve this?? Or just suggest me some ways to solve this issue.
You need to flash the SoftDevice on the board first. The precompiled hex file you used already has the SoftDevice in it. See here for how to run an application that uses SoftDevice.
As you suggested, I first I download the SoftDevice to the board. After that i tried downloading the program Application, but unfortunately I got an Error: Flash download failed - "Cortex-MO".
So I tried giving a IROM1 space for SoftDevice 0x00 and 0x16000 and for program Application I gave IROM1 0x18000 andd 0x39000. It was flash load finished without any error but the device was not advertising. Do you find some issue in flashing or can u suggest some methords to solve this issue. thanks in advance.
It may be best if you just download a fresh copy of SDK again as it will have the correct settings, but if you want to try this is the correct ROM and RAM start address and size (for 256KB flash and 32KB ram version of the chip):
IROM1:
Start: 0x1B000
Size: 0x25000
IRAM1:
Start: 0x20002080
Size: 0x5F80
I couldn't download an application program to nRF51822 after loading the SoftDevice using keil 5 as it always pop up with Error: Flash download failed - "Cortex-MO". To your notice I am using BLE400 motherboard. Do you have some solutions?