Hello, I'm using the nRF51822_QFAA chip on a pca20006 board.I downloaded sample code from the offical site. Installed sample code nRF51822_beacon_firmware_1.1.1.msi.I use ST-Link/V2 as a programmer.
I use IDE is Keil uVision5 (126.96.36.199) ARM Edition.I think example project using 7.1.0 SDK.
I opened the example project named ble_app_beacon_s110_pca20006.(C:\Nordic Semiconductor\nRF51822 Beacon v1.1.1\Source Code\nrf51_beacon\ble_app_beacon\pca20006\s110\arm)
The project was not compiled when I first started. (core_cm0.h not found.)I added this path.C:\Keil_v5\ARM\PACK\ARM\CMSIS\5.3.0\CMSIS\IncludeThe problem is resolved.
This time the application is not loaded device.I made the programmer settings.The problem is resolved.
This time the application is not debug device.I changed the device model.The problem is resolved.
I changed the device XTAL 12Mhz to 16MHz.
Now the application is in an infinity loop on sd_softdevice_enable(clock_source, softdevice_assertion_handler);.
I replaced the crystal source with the following; NRF_CLOCK_LFCLKSRC_XTAL_20_PPM NRF_CLOCK_LFCLKSRC_RC_250_PPM_8000MS_CALIBRATION NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_8000MS_CALIBRATION
But the result has not changed.
Thanks for your help.
Did you flash the softdevice? There is no target in the Keil beacon project to flash the softdevice. You need to flash it using external tool.
I just want to program full empty chip on pca20006.
I using ST-Link/V2 tool, program and debug is success.
Demostration card on led blink not problem.
I using flash algorithm for external connection.->C:\Keil\ARM\PACK\NordicSemiconductor\nRF_DeviceFamilyPack\8.16.0\Flash\nrf51xxx_ecb.flm
Available 31.768khz crystal on pca20006 board.
I try external and internal clock source but not changed. Problem only Bt Adversing nrf51822 chip. ble_stack_init method inside sd_softdevice_enable
Can I do without using sd_softdevice_enable function?
I only need to one way broadcast a 30 byte beacon data in 1 second.
UUID and MAJOR and MINOR definations on hard code will be.
BLE firmware requires Softdevice to function. It is the BLE stack. Without it, you cannot do BLE firmware.
flash_s132_nrf52_2.0.0_softdevice, is a Programming Algorithms found in KEIL?
I'm using device ST-Link/V2 in SWD mode.
Is my mode wrong? Do need JTAG mode?
Can the use the ST-Link/V2 Programmer solve problem?
Or do I have to buy a Segger Programmer?
If I have to buy a Segger Programmer, will EDU version solve the situation?
Or do I need to get a Segger Programmer PRO version?