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.

  • 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.

  • Hi Jimmy,

    Any news regarding my question ? 

    Tnx,

    Eran

Related