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

nRF Beacon Code doesn't work on Beacon Kit

Hi there,

I'm trying to build the Beacon source code with GCC toolchain on Ubuntu, but it's not working on Beacon Kit, there is no any response from the kit. But I tried to port the code to nRF51 DK board, it's working well, this should mean that the source code is right.

Is there any other trick to build Beacon app for Beacon Kit I'm missing?

Thanks & Regards, Stanley

  • The DK uses nRF51422 32KB ram. The beacon is probably nRF51822 16KB ram. Check the LD script make sure you have the correct settings.

  • Thanks for the reply.

    I tried to build the beacon code with gcc_nrf51_s110_xxaa.ld, but the issue is still there. Here is the link command to generate the out:

    /usr/bin/arm-none-eabi-gcc -Xlinker -Map=./build-beacon-s110/beacon_s110_xxaa.map -mcpu=cortex-m0 -mthumb -mabi=aapcs -L sdk/7.2.0_cf547b5/components/toolchain/gcc -Tgcc_nrf51_s110_xxaa.ld -Wl,--gc-sections --specs=nano.specs -lc -lnosys ./build-beacon-s110/projects/beacon/ble/device/ble_device.o ./build-beacon-s110/projects/beacon/ble/services/ble_bcs/ble_bcs.o ./build-beacon-s110/projects/beacon/target/init.o ./build-beacon-s110/projects/beacon/target/pca20006/target_gpio.o ./build-beacon-s110/projects/beacon/common/led_softblink/led_softblink.o ./build-beacon-s110/projects/beacon/main.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/bootloader_dfu/bootloader_util_gcc.o ./build-beacon-s110/projects/beacon/common/sdk_modified/dfu_app_handler/dfu_app_handler_mod.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/toolchain/system_nrf51.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/softdevice/common/softdevice_handler/softdevice_handler.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/ble/common/ble_advdata.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/ble/common/ble_conn_params.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/ble/common/ble_srv_common.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/ble/ble_services/ble_dfu/ble_dfu.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/drivers_nrf/hal/nrf_delay.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/drivers_nrf/pstorage/pstorage.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/drivers_nrf/simple_uart/simple_uart.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/drivers_nrf/uart/app_uart.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/button/app_button.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/gpiote/app_gpiote.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/scheduler/app_scheduler.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/timer/app_timer.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/util/app_error.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/util/app_util_platform.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/util/nrf_assert.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/libraries/easy_uart/easy_uart.o ./build-beacon-s110/sdk/7.2.0_cf547b5/components/toolchain/gcc/gcc_startup_nrf51.o -o ./build-beacon-s110/beacon_s110_xxaa.out

    Would you please take a look what else might be wrong?

  • I got the reason because I enabled UART logs on my beacon but I didn't connect it to UART output, looks like APP is stuck because of this. After disabled the uart, the beacon is working now.

    Thanks for the help.

Related