Is there anyway to get a light to blink using only the PCB antenna module?
Also, is there anyway to blink a light using only the Bluetooth Smart Beacon chip?
Is there anyway to get a light to blink using only the PCB antenna module?
Also, is there anyway to blink a light using only the Bluetooth Smart Beacon chip?
I added a second picture to my answer.
The BLE UART demo is in the nrf51822 folder, but it works with the nrf51422.
SDK_FOLDER/nrf51822/Board/pca10001/s110/experimental/ble_app_uart
Did you have to modify the code at all? I was able to get the hardware setup and install fine but I'm not able to see it in the Master Control Panel or on my iOS device. Any suggestions??
No modifications. If you check the main function you will see that many functions are called before advertising_start() is called, which is the call that will make your device be visible to the world so anything in between may be failing or your program may not be starting at all, for example because is flashed at the wrong address. This is my command (loadbin _build/ble_uart_s110_xxaa.bin 00016000)
The easiest way would be to use a debugger, under Linux I use the JLinkGDBServer and arm-none-eabi-gdb. Set a breakpoint at main and step through the code, if anything is failing you will find out right away.
Startig the JLinkGDBServer:
JLinkGDBServer -device nrf51422 -if swd -speed 1000 -port 8080
my .gdbinit:
target remote localhost:8080
break main
monitor reset
continue
.gdbinit
If you can't debug and don't have a console connected to uart, another approach is to use the LED, making it blink after each function call.
I don't understand how you specify the LED pin. All I see is LED_0 and LED_1. How is that specifying P2.31??
If you follow the definition of LED_0 and LED_1 you will come up to a number, 17 and 18 I believe. Those are the GPIO ports in the CPU. Now if you check the schematics, those ports are connected to those jumper ports.