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

Unable to run the blinky example on a custom board nrf52811

I am trying to program my custom board nrf52811 by pca10056 using ses, and i was able to flash any example of nrf_SDK, however the LED does not blink. even though i added this code on custom_board.h : 

// Low frequency clock source to be used by the SoftDevice
#define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_RC,              \
                                 .rc_ctiv       = 16,                               \
                                 .rc_temp_ctiv  = 2,                                \
                                 .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
but still nothing change. Also, I attached the sch of my board. nRF52811.schIn the end, i want to make this board work as a transmitter, but first i cannot get it to blink. i wish i could get help ASAP.  

  • Hi

    Right-click the project and go to options in order to open the project settings window where you can set these preprocessor settings.

    Remember to set the configurations to Common. 

      

    Best regards,

    Simon

  • I'm sorry but it's still not clear to me what to change exactly on Common -> Linker-> Section Placement Macros. can you please be more clear with each step on how to do it on Segger Embedded because I really cannot find these instruction on Segger Embedded. 

    • In the project settings, change to device "NordicSemiconductor->nRF52811_xxaa".
    • In the C/C++ preprocessor settings, remove the defines "NRF52" and "NRF52840_XXAA".
    • Add the preprocessor define "NRF52811_XXAA".
    • In the linker script settings, adjust the linker script to match the maximum RAM and Flash size of nRF52811 (ROM END: 0x2FFFF and RAM END: 0x20005FFF.
    • Remove the following files from the project: <compiler>_startup_nrf52.s and system_nrf52.c.
    • Add the following files to the project: <compiler>_startup_nrf52811.s and system_nrf52811.c

    I really appreciate your help.  

  • The photo was mainly to show you how to enter the options screen, the only things that should be edited in the Section Placement Macros  are "in the linker script settings, adjust the linker script to match the maximum RAM and Flash size of nRF52811 (ROM END: 0x2FFFF and RAM END: 0x20005FFF."

    The other changes I mention are made in Preprocessor -> Preprocessor Definitions and User Include Directories.

    Best regards,

    Simon

  • I'm finally able to blink the LED of the costume board( nRF52811),but then i tried to run ble_app_beacon example. it flashed okay, but there is no a transmitted signal, and i believe that because I didn't assign the correct pins of RX and TX, and i don't the correct one.   so can you please help me assign the correct pins to make the ble_app_beacon example works. I have already uploaded the schematic. 

    Thanks a lot, 

Related