Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BL652 EVK Crystal Problem

Hello,

      I am working with the BL652 EVK from LAIRD. The EVK has nRF52832 IC inside of the module. I downloaded the "nRF5_SDK_15.0.0_a53641a" and trying to use "ble_app_uart_pca10040_s132” application. This application is for nRF52832 with external crystal. The EVK that I use does not have an external crystal. I modified the code like below. However, I can not successfully run the code in the MCU. What could be the problem ? Can anyone help ?

nrf_clock_lf_cfg_t const clock_lf_cfg =

    {

        .source       = 0,

        .rc_ctiv      = 16,

        .rc_temp_ctiv = 2,

        .accuracy     = NRF_SDH_CLOCK_LF_ACCURACY

    };

Parents Reply
  • Ok, so just to summarize here:

    • You have a ble_app_uart application with external crystal that runs fine on a pca10040 DK
    • The ble_app_uart application does not run on the BL652, even if you change to LFRC.
    • ble_app_blinky does run on the BL652 but debugging is not working.
    • From the debug window it seems like you are running a bootloader? Since you have code in the 0x7F000 area.

    Are you using bootloader? Maybe you flashed the bootloader in an earlier project and that you have never fully erased the chip afterwards? Then the previous values in UICR will redirect to the bootloader region, even though the code you are running now does not use the bootloader.

    Try to fully erase the chip. Open a terminal (cmd) and write: nrfjprog --eraseall

    What do you mean with "I can not debug the code". Do you get any errors? Are you unable to set breakpoints, or does it never reach the breakpoints you set?

     

Children
Related