This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Blink LED with nRF51822 Developer Kit / Bluetooth Smart Beacon Kit

Is there anyway to get a light to blink using only the PCB antenna module? image description

Also, is there anyway to blink a light using only the Bluetooth Smart Beacon chip? image description

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

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

Children
No Data
Related