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

Adapting NRF52832 example to custom board with NRF52810

My custom board with NRF52810 is done and I'm now trying to get some examples working. I am adapting blinky_s132 in SES. To do this I edited the project options including disabling the FPU, defining BOARD_CUSTOM, chaning the device definition to NRF52810_XXAA, and some other changes. I've attached the SES project file. I also opened this project file in a text editor and changed  ...

arm_target_device_name="nRF52810_xxAA"

I also created a custom_board.h which I have attached. The program compiles correctly and programs fine but when debugging it seems to get stuck in a trap. I don't think SES has registered that I'm using 52810 instead of 52832 as can be seem by the flash and ram usage . Can you help me resolve this?

By the way, I can't seem to upload more than one file for some reason.

Parents Reply Children
  • I am using the same custom_board.h in both projects. Here is the preprocessor macros from my blinky project:

    BOARD_CUSTOM
    BSP_DEFINES_ONLY
    CONFIG_GPIO_AS_PINRESET
    FLOAT_ABI_SOFT
    INITIALIZE_USER_SECTIONS
    NO_VTOR_CONFIG
    NRF52810_XXAA
    NRF52_PAN_74

    And is the preprocessor macros for the BLE GATTS example:

    APP_TIMER_V2

    APP_TIMER_V2_RTC1_ENABLED

    BOARD_CUSTOM

    CONFIG_GPIO_AS_PINRESET

    FLOAT_ABI_SOFT

    INITIALIZE_USER_SECTIONS

    NO_VTOR_CONFIG

    NRF52810_XXAA

    NRF52_PAN_74

    NRF_SD_BLE_API_VERSION=7

    S112

    SOFTDEVICE_PRESENT

    The only differences I see are...

    APP_TIMER_V2

    APP_TIMER_V2_RTC1_ENABLED

    BSP_DEFINES_ONLY

    NRF_SD_BLE_API_VERSION=7

    S112

    SOFTDEVICE_PRESENT

    I don't have a serial port on my NRF52810 board. Do you mean an emulated serial port over the debugger or a physical serial port?

  • Hi, 

    Could you enable the RTT log in the sdk_config.h as follwing and provide it?

    //==========================================================
    // <e> NRF_LOG_BACKEND_RTT_ENABLED - nrf_log_backend_rtt - Log RTT backend
    //==========================================================
    #ifndef NRF_LOG_BACKEND_RTT_ENABLED
    #define NRF_LOG_BACKEND_RTT_ENABLED 1
    #endif

    It will show in the Segger. 

    -Amanda H.

  • I enabled RTT as suggested and also disabled deferred logging with...

    NRF_LOG_DEFERRED=0

    I can now see RTT output from this I added in main.c .....

    NRF_LOG_WARNING("hello you\n");

    I am getting no RTT output from the SoftDevice or any other RTT output at all. When the SVCALL(SD_SOFTDEVICE_ENABLE ...) is called the program runs until it gets trapped (see screencap). Am I programming the SoftDevice incorrectly? I'm can't seem to figure this one out!

  • I have found that I am not using a low frequency XTAL and so I need to set ...

    NRF_SDH_CLOCK_LF_SRC 0

    After changing that in sdk_config.h my program drops into app_error_fault_handler(). Am I setting the LF clock correctly when I set NRF_SDH_CLOCK_LF_SRC  to 0? I'm not using any LF hardware clock outside of the NRF52810. You thoughts?

  • Hi, 

    See the Clock source page for information about the SoftDevice clock source. If you don't have LF crystal, you will need to use the RC Oscillator. Please see this post to set the sdk_config.h and let me know it help or not.  

    -Amanda H.

Related