I downloaded ble_app_lbs from GitHub. Loaded the project (on GitHub it was saved as a MicroVision 4 project) into MicroVision 5 and build with no errors or warnings.
I have not touched any of the files downloaded from GitHub. I just want it to run on a PCA10003 Eval board.
I go to nRF Studio and load the S110 softdevice into the board. I return to Keil uVision5 and try to load my project. When I do, I get:
Rebuild target 'nrf51822_xxaa_s110 (256K)'
assembling arm_startup_nrf51.s...
compiling system_nrf51.c...
compiling main.c...
compiling ble_lbs.c...
compiling ble_srv_common.c...
compiling app_button.c...
compiling app_gpiote.c...
compiling app_timer.c...
compiling ble_conn_params.c...
compiling app_scheduler.c...
compiling ble_advdata.c...
compiling ble_debug_assert_handler.c...
compiling pstorage.c...
compiling softdevice_handler.c...
linking...
Program Size: Code=15528 RO-data=244 RW-data=212 ZI-data=5876
FromELF: creating hex file...
".\_build\ble_app_lbs.axf" - 0 Error(s), 0 Warning(s).
Load "C:\\Designs\\004_NORDIC_FILES\\GitHubSoruceFiles\\BLE_APP_LBS\\nrf51-ble-app-lbs-master\\arm\\_build\\ble_app_lbs.axf"
Set JLink Project File to "C:\Designs\004_NORDIC_FILES\GitHubSoruceFiles\BLE_APP_LBS\nrf51-ble-app-lbs-master\arm\JLinkSettings.ini"
* JLink Info: Device "NRF51822_XXAA" selected (257 KB flash, 16 KB RAM).
JLink info:
------------
DLL: V4.90e, compiled Sep 8 2014 18:46:31
Firmware: J-Link OB-SAM3U128 V1 compiled Aug 22 2014 17:25:44
Hardware: V1.00
S/N : 480208168
* JLink Info: Found SWD-DP with ID 0x0BB11477
* JLink Info: Found Cortex-M0 r0p0, Little endian.
* JLink Info: FPUnit: 4 code (BP) slots and 0 literal slots
ROMTableAddr = 0xE00FF003
Target info:
------------
Device: nRF51822_xxAA
VTarget = 3.300V
State of Pins:
TCK: 0, TDI: 0, TDO: 1, TMS: 1, TRES: 1, TRST: 1
Hardware-Breakpoints: 4
Software-Breakpoints: 8192
Watchpoints: 2
JTAG speed: 2000 kHz
Erase Failed!
Error: Flash Download failed - "Cortex-M0"
I'm getting an Erase Failed! Why and how do I fix this?
On a side note: Does anyone do training on BLE with ANT on the Nordic nRF51422?