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

nRF52811, adding s140 to SDK 16.0 for Coded Phy and NUS

Hi,

The examples in the SDK 16.0 for the nRF52811 all use the s112 and I woul dlike to have a NUS board (peripheral) with coded phy to talk to a nRF52840. 

What are the steps to use s140? should I open the s112 project and just change the binary in SES options to s140 7.0?

Thanks.

Parents Reply Children
  • Hi Jimmy, thanks for the example. I copied your SES settings to another project running the NRF52811 and it ran and I'm transmitting in coded phy. I noticed that you have a folder called "components modified". Did you modify any file to make the project work with the nrf52811? Or why do you have that specific folder?

  • Hi Wozix,

    I did the specified folders because all the modified files are isolated from the original SDK (such as components).

      

  • Hi Jimmy,

    I've tried to compile ble_app_uart but w/o success. 

    i got Linking ble_app_uart_pca10056e_s140.elf (17 errors) . See below output

    The central side (ble_app_uart_c) has been compiled and run without any problem using S140 7.0.1 and the 2 libraries components_modified and module.

    Any idea?

    Tnx,

    Building ‘ble_app_uart_pca10056e_s140’ from solution ‘ble_app_uart_pca10056e_s140’ in configuration ‘Release’
      Linking ble_app_uart_pca10056e_s140.elf
        "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 4.30a/gcc/arm-none-eabi/bin/ld" -X --omagic -eReset_Handler --defsym=__vfprintf=__vfprintf_long --defsym=__vfscanf=__vfscanf_long -EL --gc-sections "-TC:/Nordic/nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_uart/pca10056e_811DK/s140/ses/Output/ble_app_uart_pca10056e_s140 Release/Obj/ble_app_uart_pca10056e_s140.ld" -Map Output/Release/Exe/ble_app_uart_pca10056e_s140.map -u_vectors -o Output/Release/Exe/ble_app_uart_pca10056e_s140.elf --emit-relocs --start-group "@C:/Nordic/nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_uart/pca10056e_811DK/s140/ses/Output/ble_app_uart_pca10056e_s140 Release/Obj/ble_app_uart_pca10056e_s140.ind" --end-group
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o: in function `sleep_mode_enter':
        main.c:(.text.sleep_mode_enter+0x4): undefined reference to `bsp_indication_set'
        main.c:(.text.sleep_mode_enter+0xe): undefined reference to `bsp_btn_ble_sleep_mode_prepare'
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o: in function `ble_evt_handler':
        main.c:(.text.ble_evt_handler+0x2e): undefined reference to `bsp_indication_set'
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o: in function `bsp_event_handler':
        main.c:(.text.bsp_event_handler+0x3c): undefined reference to `ble_advertising_restart_without_whitelist'
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o: in function `on_adv_evt':
        main.c:(.text.on_adv_evt+0xa): undefined reference to `bsp_indication_set'
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o: in function `main':
        main.c:(.text.startup.main+0x58): undefined reference to `bsp_init'
        main.c:(.text.startup.main+0x66): undefined reference to `bsp_btn_ble_init'
        main.c:(.text.startup.main+0x14a): undefined reference to `ble_advertising_init'
        main.c:(.text.startup.main+0x158): undefined reference to `ble_advertising_conn_cfg_tag_set'
        main.c:(.text.startup.main+0x1b6): undefined reference to `ble_advertising_start'
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o:(.sdh_ble_observers1+0x0): undefined reference to `ble_advertising_on_ble_evt'
        Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o:(.sdh_soc_observers1+0x0): undefined reference to `ble_advertising_on_sys_evt'
    Build failed

  • Hi Eran,

    On my example, I am not using the ble_advertising and buttons_leds_init.

    And then, I remove such files in my project.  It is the reason why you get the errors.

    if you need to port on your project, you need to change which is same as mine.

    Otherwise, you will miss ble_advertising and bsp module.

  • Hi Jimmy,

    I removed from init main the ble_adverising and bsp module as follows 

    /**@brief Application main function.
     */
    int main(void)
    {
        bool erase_bonds;
    
        // Initialize.
        uart_init();
        log_init();
        timers_init();
        //buttons_leds_init(&erase_bonds);
        power_management_init();
        ble_stack_init();
        gap_params_init();
        gatt_init();
        services_init();
        //advertising_init();
        conn_params_init();
    
        // Start execution.
        printf("\r\nUART started.\r\n");
        NRF_LOG_INFO("Debug logging for UART over RTT started.");
        //advertising_start();
    
        // Enter main loop.
        for (;;)
        {
            idle_state_handle();
        }
    }
    
    
    /**
     * @}
     */
    

    but still getting these some error (less from before) 

    "C:/Program Files/SEGGER/SEGGER Embedded Studio for ARM 3.40/gcc/arm-none-eabi/bin/ld" -X --omagic -eReset_Handler --defsym=__vfprintf=__vfprintf_long --defsym=__vfscanf=__vfscanf_long -EL --gc-sections "-TC:/Nordic/nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_uart/pca10056e_811DK/s140/ses/Output/ble_app_uart_pca10056e_s140 Release/Obj/ble_app_uart_pca10056e_s140.ld" -Map Output/Release/Exe/ble_app_uart_pca10056e_s140.map -u_vectors -o Output/Release/Exe/ble_app_uart_pca10056e_s140.elf --emit-relocs "@C:/Nordic/nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_uart/pca10056e_811DK/s140/ses/Output/ble_app_uart_pca10056e_s140 Release/Obj/ble_app_uart_pca10056e_s140.ind"
    Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o: In function `ble_evt_handler':
    main.c:(.text.ble_evt_handler+0x2e): undefined reference to `bsp_indication_set'
    Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o:(.sdh_ble_observers1+0x0): undefined reference to `ble_advertising_on_ble_evt'
    Output/ble_app_uart_pca10056e_s140 Release/Obj/main.o:(.sdh_soc_observers1+0x0): undefined reference to `ble_advertising_on_sys_evt'

    Pls advice 

    Or provide me a fix main.c

    Tnx,

    Eran.

Related