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

RTT not appearing in modified ble_app_uart example

    Hello,

I have been developing software on the ble_app_uart example in Segger Embedded Studio with sdk 17.0.2.  The example has RTT enabled but I noticed when I try to use RTT in my modified version that no RTT shows up in the debugging window.  I added various libraries and changed the config file, but did not remove anything or turn off anything in the config file from the example.  I wasn't sure how to troubleshoot this and was wondering what potential problems might be interfering with RTT outputs in the debugging terminal.  Here is my main() code, I can add more if necessary.  

int main(void)
{
    bool erase_bonds;
    ret_code_t rc;

    // Initialize.
    twi_init();
    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();


    /* Register first to receive an event when initialization is complete. */
    (void) fds_register(fds_evt_handler);


    rc = fds_init();
    APP_ERROR_CHECK(rc);

    /* Wait for fds to initialize. */
    wait_for_fds_ready();

    // Start execution.
    printf("\r\nUART started.\r\n");



    //turn on LED3 while on and not in sleep mode
    nrf_gpio_cfg_output(LED2);
    nrf_gpio_pin_clear(LED2);

    NRF_LOG_INFO("Debug logging for UART over RTT started.");



    //button press waits for a button press event or times out and goes to sleep mode if no button press is received in 15 seconds
   
    
    buttonPress(); 

    nrf_delay_ms(100);

    advertising_start(); 

    //advertise for 15 seconds then try to send the data
    nrf_delay_ms(5000);

    //SendTime sends the entire memory, should add a condition to make sure that it's connected to BLE, potentially only send new entries etc.
    SendTime(); 

    //wait 5 seconds after sending the data before entering sleep mode, just here to give time to read in devtools for debugging
    nrf_delay_ms(5000);

    sleep_mode_enter_wakeup_enabled();
    
   


    // Enter main loop.
    for (;;)
    {
        idle_state_handle();
    }
}

Parents
  • Hi

    Can you confirm that NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED are set to 1 in your project's sdk_config.h header file? Is NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED set to 1 as well? If so, try setting it to 0, as SEGGER Embedded Studios for some reason doesn't like this define. You can alternatively try using the RTT Viewer to see if that works. Can you also confirm whether or not you're working on a development kit or a custom board?

    Best regards,

    Simon

  • Can you confirm that NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED are set to 1 in your project's sdk_config.h header file?

    Yep, double checked these and both are set to 1.

    NRF_FPRINTF_FLAG_AUTOMATIC_CR_ON_LF_ENABLED set to 1 as well?

    Yes, it was set to 1.  I tried setting it to 0 but this didn't fix the issue.  

    You can alternatively try using the RTT Viewer to see if that works

    I gave this a try and was able to get RTT viewer 7.0 working for the default ble_app_uart but not with my modified version.

    Can you also confirm whether or not you're working on a development kit or a custom board?

    This is all done on the nRF52DK.

  • jake11212 said:
    I gave this a try and was able to get RTT viewer 7.0 working for the default ble_app_uart but not with my modified version.

     Okay, so one of the modifications you've done is hindering the RTT backend to log for some reason. What pins are your application using for TWI communication? What libraries have you added exactly, and what changes did you make to the sdk_config.h file exactly? 

    Does your modified project run as expected without logging?

    Best regards,

    Simon

  • What pins are your application using for TWI communication?

    I'm using Pin P0.14 for GPIO and P0.22 and P0.23 for SCL and SDA.

    and what changes did you make to the sdk_config.h file exactly? 

    The changes I made to the config file were:

    #ifndef NRF_FSTORAGE_ENABLED
    
    #define NRF_FSTORAGE_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
    
    #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 0
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
    
    #define NRF_FSTORAGE_SD_QUEUE_SIZE 4
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
    
    #define NRF_FSTORAGE_SD_MAX_RETRIES 8
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
    
    #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
    
    #endif
    
    #ifndef FDS_ENABLED
    
    #define FDS_ENABLED 1
    
    #endif
    
     
    
    #ifndef FDS_VIRTUAL_PAGES
    
    #define FDS_VIRTUAL_PAGES 30
    
    #endif
    
     
    
    #ifndef FDS_VIRTUAL_PAGE_SIZE
    
    #define FDS_VIRTUAL_PAGE_SIZE 1024
    
    #endif
    
     
    
    #ifndef FDS_VIRTUAL_PAGES_RESERVED
    
    #define FDS_VIRTUAL_PAGES_RESERVED 0
    
    #endif
    
     
    
    #ifndef FDS_BACKEND
    
    #define FDS_BACKEND 2
    
    #endif
    
     
    
    #ifndef FDS_OP_QUEUE_SIZE
    
    #define FDS_OP_QUEUE_SIZE 4
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_READ
    
    #define FDS_CRC_CHECK_ON_READ 1
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_WRITE
    
    #define FDS_CRC_CHECK_ON_WRITE 0
    
    #endif
    
     
    
    #ifndef FDS_MAX_USERS
    
    #define FDS_MAX_USERS 4
    
    #endif
    
     
    
    #ifndef NRF_BALLOC_CLI_CMDS
    
    #define NRF_BALLOC_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CLI_CMDS
    
    #define NRF_QUEUE_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_ENABLED
    
    #define NRF_CLI_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_ARGC_MAX
    
    #define NRF_CLI_ARGC_MAX 12
    
    #endif
    
     
    
    #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
    
    #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_CMD_BUFF_SIZE
    
    #define NRF_CLI_CMD_BUFF_SIZE 128
    
    #endif
    
     
    
    #ifndef NRF_CLI_ECHO_STATUS
    
    #define NRF_CLI_ECHO_STATUS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_WILDCARD_ENABLED
    
    #define NRF_CLI_WILDCARD_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_METAKEYS_ENABLED
    
    #define NRF_CLI_METAKEYS_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_PRINTF_BUFF_SIZE
    
    #define NRF_CLI_PRINTF_BUFF_SIZE 23
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ENABLED
    
    #define NRF_CLI_HISTORY_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
    
    #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
    
    #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
    
    #endif
    
     
    
    #ifndef NRF_CLI_VT100_COLORS_ENABLED
    
    #define NRF_CLI_VT100_COLORS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_STATISTICS_ENABLED
    
    #define NRF_CLI_STATISTICS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_LOG_BACKEND
    
    #define NRF_CLI_LOG_BACKEND 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
    
    #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
    
    #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_BALLOC_CLI_CMDS
    
    #define NRF_BALLOC_CLI_CMDS 1
    
    #endif
    
     
    
     
    
    #ifndef NRF_CLI_ENABLED
    
    #define NRF_CLI_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_ARGC_MAX
    
    #define NRF_CLI_ARGC_MAX 12
    
    #endif
    
     
    
    #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
    
    #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_CMD_BUFF_SIZE
    
    #define NRF_CLI_CMD_BUFF_SIZE 128
    
    #endif
    
     
    
    #ifndef NRF_CLI_ECHO_STATUS
    
    #define NRF_CLI_ECHO_STATUS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_WILDCARD_ENABLED
    
    #define NRF_CLI_WILDCARD_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_METAKEYS_ENABLED
    
    #define NRF_CLI_METAKEYS_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_PRINTF_BUFF_SIZE
    
    #define NRF_CLI_PRINTF_BUFF_SIZE 23
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ENABLED
    
    #define NRF_CLI_HISTORY_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
    
    #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
    
    #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
    
    #endif
    
     
    
    #ifndef NRF_CLI_VT100_COLORS_ENABLED
    
    #define NRF_CLI_VT100_COLORS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_STATISTICS_ENABLED
    
    #define NRF_CLI_STATISTICS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_LOG_BACKEND
    
    #define NRF_CLI_LOG_BACKEND 1
    
    #endif
    
    #ifndef NRF_LOG_CLI_CMDS
    
    #define NRF_LOG_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
    
    #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_ENABLED
    
    #define NRF_CLI_UART_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CLI_CMDS
    
    #define NRF_QUEUE_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
    
    #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
    
    #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
    
    #define NRF_QUEUE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_ENABLED
    
    #define NRF_QUEUE_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CLI_CMDS
    
    #define NRF_QUEUE_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_ENABLED
    
    #define NRFX_TWIM_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRFX_TWIM0_ENABLED
    
    #define NRFX_TWIM0_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM1_ENABLED
    
    #define NRFX_TWIM1_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
    
    #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
    
    #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
    
    #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
    
    #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
    
    #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_INFO_COLOR
    
    #define NRFX_TWIM_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
    
    #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
    
    #define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_ENABLED
    
    #define NRFX_TWI_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRFX_TWI0_ENABLED
    
    #define NRFX_TWI0_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI1_ENABLED
    
    #define NRFX_TWI1_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
    
    #define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
    
    #endif
    
     
    
    #ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
    
    #define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
    
    #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_LOG_ENABLED
    
    #define NRFX_TWI_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_LOG_LEVEL
    
    #define NRFX_TWI_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_INFO_COLOR
    
    #define NRFX_TWI_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
    
    #define NRFX_TWI_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_ENABLED
    
    #define TWI_ENABLED 1
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_FREQUENCY
    
    #define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
    
    #define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
    
    #define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
    
    #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
    
    #endif
    
     
    
    #ifndef TWI0_ENABLED
    
    #define TWI0_ENABLED 1
    
    #endif
    
     
    
    #ifndef TWI0_USE_EASY_DMA
    
    #define TWI0_USE_EASY_DMA 1
    
    #endif
    
     
    
    #ifndef TWI1_ENABLED
    
    #define TWI1_ENABLED 1
    
    #endif
    
     
    
    #ifndef TWI1_USE_EASY_DMA
    
    #define TWI1_USE_EASY_DMA 1
    
    #endif
    
     
    
    #ifndef TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
    
    #define TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_LOG_ENABLED
    
    #define TWIS_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_LOG_LEVEL
    
    #define TWIS_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_INFO_COLOR
    
    #define TWIS_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_DEBUG_COLOR
    
    #define TWIS_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_ENABLED
    
    #define TWI_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_LEVEL
    
    #define TWI_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef TWI_ENABLED
    
    #define TWI_ENABLED 0
    
    #endif 
    
     
    
    #ifndef TWI0_ENABLED
    
    #define TWI0_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_ENABLED
    
    #define TWI_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_LEVEL
    
    #define TWI_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_INFO_COLOR
    
    #define TWI_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_DEBUG_COLOR
    
    #define TWI_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_INFO_COLOR
    
    #define TWI_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_DEBUG_COLOR
    
    #define TWI_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_SECTION_ITER_ENABLED
    
    #define NRF_SECTION_ITER_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_SORTLIST_ENABLED
    
    #define NRF_SORTLIST_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_STRERROR_ENABLED
    
    #define NRF_STRERROR_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
    
    #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_ENABLED
    
    #define NRF_CLI_UART_ENABLED 1
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_READ
    
    #define FDS_CRC_CHECK_ON_READ 1
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_WRITE
    
    #define FDS_CRC_CHECK_ON_WRITE 0
    
    #endif
    
     
    
    #ifndef NRF_BALLOC_CLI_CMDS
    
    #define NRF_BALLOC_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_ENABLED
    
    #define NRF_CLI_UART_ENABLED 1
    
    #endif
     

    What libraries have you added exactly,

    Board support:

    Ses_startup_nrf_common.s

     

    Application:

    cli.c

     

    Drivers:

    nrf_drv_twi.c

    nrfx_twim.c

    nrfx_twi.c

     

    Libraries:

    Nrf_queue.c

    Nrf_queue.h

    Nrf_fstorage_sd.c

    Nrf_fstorage.c

    Nrf_cli_uart.c

    Nrf_cli.c

    Fds.c

    Crc16.c

    Does your modified project run as expected without logging?

    Yes.  I have been using putty to debug over UART but we are changing to a custom PCB and will be needing RTT in the future.

    Thanks for the help so far!

Reply
  • What pins are your application using for TWI communication?

    I'm using Pin P0.14 for GPIO and P0.22 and P0.23 for SCL and SDA.

    and what changes did you make to the sdk_config.h file exactly? 

    The changes I made to the config file were:

    #ifndef NRF_FSTORAGE_ENABLED
    
    #define NRF_FSTORAGE_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_PARAM_CHECK_DISABLED
    
    #define NRF_FSTORAGE_PARAM_CHECK_DISABLED 0
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_SD_QUEUE_SIZE
    
    #define NRF_FSTORAGE_SD_QUEUE_SIZE 4
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_SD_MAX_RETRIES
    
    #define NRF_FSTORAGE_SD_MAX_RETRIES 8
    
    #endif
    
     
    
    #ifndef NRF_FSTORAGE_SD_MAX_WRITE_SIZE
    
    #define NRF_FSTORAGE_SD_MAX_WRITE_SIZE 4096
    
    #endif
    
    #ifndef FDS_ENABLED
    
    #define FDS_ENABLED 1
    
    #endif
    
     
    
    #ifndef FDS_VIRTUAL_PAGES
    
    #define FDS_VIRTUAL_PAGES 30
    
    #endif
    
     
    
    #ifndef FDS_VIRTUAL_PAGE_SIZE
    
    #define FDS_VIRTUAL_PAGE_SIZE 1024
    
    #endif
    
     
    
    #ifndef FDS_VIRTUAL_PAGES_RESERVED
    
    #define FDS_VIRTUAL_PAGES_RESERVED 0
    
    #endif
    
     
    
    #ifndef FDS_BACKEND
    
    #define FDS_BACKEND 2
    
    #endif
    
     
    
    #ifndef FDS_OP_QUEUE_SIZE
    
    #define FDS_OP_QUEUE_SIZE 4
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_READ
    
    #define FDS_CRC_CHECK_ON_READ 1
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_WRITE
    
    #define FDS_CRC_CHECK_ON_WRITE 0
    
    #endif
    
     
    
    #ifndef FDS_MAX_USERS
    
    #define FDS_MAX_USERS 4
    
    #endif
    
     
    
    #ifndef NRF_BALLOC_CLI_CMDS
    
    #define NRF_BALLOC_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CLI_CMDS
    
    #define NRF_QUEUE_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_ENABLED
    
    #define NRF_CLI_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_ARGC_MAX
    
    #define NRF_CLI_ARGC_MAX 12
    
    #endif
    
     
    
    #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
    
    #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_CMD_BUFF_SIZE
    
    #define NRF_CLI_CMD_BUFF_SIZE 128
    
    #endif
    
     
    
    #ifndef NRF_CLI_ECHO_STATUS
    
    #define NRF_CLI_ECHO_STATUS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_WILDCARD_ENABLED
    
    #define NRF_CLI_WILDCARD_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_METAKEYS_ENABLED
    
    #define NRF_CLI_METAKEYS_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_PRINTF_BUFF_SIZE
    
    #define NRF_CLI_PRINTF_BUFF_SIZE 23
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ENABLED
    
    #define NRF_CLI_HISTORY_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
    
    #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
    
    #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
    
    #endif
    
     
    
    #ifndef NRF_CLI_VT100_COLORS_ENABLED
    
    #define NRF_CLI_VT100_COLORS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_STATISTICS_ENABLED
    
    #define NRF_CLI_STATISTICS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_LOG_BACKEND
    
    #define NRF_CLI_LOG_BACKEND 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
    
    #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_LOG_ENABLED
    
    #define NRF_QUEUE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_BALLOC_CLI_CMDS
    
    #define NRF_BALLOC_CLI_CMDS 1
    
    #endif
    
     
    
     
    
    #ifndef NRF_CLI_ENABLED
    
    #define NRF_CLI_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_ARGC_MAX
    
    #define NRF_CLI_ARGC_MAX 12
    
    #endif
    
     
    
    #ifndef NRF_CLI_BUILD_IN_CMDS_ENABLED
    
    #define NRF_CLI_BUILD_IN_CMDS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_CMD_BUFF_SIZE
    
    #define NRF_CLI_CMD_BUFF_SIZE 128
    
    #endif
    
     
    
    #ifndef NRF_CLI_ECHO_STATUS
    
    #define NRF_CLI_ECHO_STATUS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_WILDCARD_ENABLED
    
    #define NRF_CLI_WILDCARD_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_METAKEYS_ENABLED
    
    #define NRF_CLI_METAKEYS_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_PRINTF_BUFF_SIZE
    
    #define NRF_CLI_PRINTF_BUFF_SIZE 23
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ENABLED
    
    #define NRF_CLI_HISTORY_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_SIZE
    
    #define NRF_CLI_HISTORY_ELEMENT_SIZE 32
    
    #endif
    
     
    
    #ifndef NRF_CLI_HISTORY_ELEMENT_COUNT
    
    #define NRF_CLI_HISTORY_ELEMENT_COUNT 8
    
    #endif
    
     
    
    #ifndef NRF_CLI_VT100_COLORS_ENABLED
    
    #define NRF_CLI_VT100_COLORS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_STATISTICS_ENABLED
    
    #define NRF_CLI_STATISTICS_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_LOG_BACKEND
    
    #define NRF_CLI_LOG_BACKEND 1
    
    #endif
    
    #ifndef NRF_LOG_CLI_CMDS
    
    #define NRF_LOG_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_BLE_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_BLE_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_USES_TASK_MANAGER_ENABLED
    
    #define NRF_CLI_USES_TASK_MANAGER_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_ENABLED
    
    #define NRF_CLI_UART_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CLI_CMDS
    
    #define NRF_QUEUE_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_LOG_LEVEL
    
    #define NRF_QUEUE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL
    
    #define NRF_QUEUE_CONFIG_LOG_INIT_FILTER_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_INFO_COLOR
    
    #define NRF_QUEUE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_ENABLED
    
    #define NRF_QUEUE_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CLI_CMDS
    
    #define NRF_QUEUE_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_LIBUARTE_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_LIBUARTE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_ENABLED
    
    #define NRF_CLI_UART_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_LOG_LEVEL
    
    #define NRF_CLI_UART_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_ENABLED
    
    #define NRFX_TWIM_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRFX_TWIM0_ENABLED
    
    #define NRFX_TWIM0_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM1_ENABLED
    
    #define NRFX_TWIM1_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY
    
    #define NRFX_TWIM_DEFAULT_CONFIG_FREQUENCY 26738688
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT
    
    #define NRFX_TWIM_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY
    
    #define NRFX_TWIM_DEFAULT_CONFIG_IRQ_PRIORITY 6
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_LOG_ENABLED
    
    #define NRFX_TWIM_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_LOG_LEVEL
    
    #define NRFX_TWIM_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_INFO_COLOR
    
    #define NRFX_TWIM_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_CONFIG_DEBUG_COLOR
    
    #define NRFX_TWIM_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
    
    #define NRFX_TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_ENABLED
    
    #define NRFX_TWI_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRFX_TWI0_ENABLED
    
    #define NRFX_TWI0_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI1_ENABLED
    
    #define NRFX_TWI1_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_DEFAULT_CONFIG_FREQUENCY
    
    #define NRFX_TWI_DEFAULT_CONFIG_FREQUENCY 26738688
    
    #endif
    
     
    
    #ifndef NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
    
    #define NRFX_TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY
    
    #define NRFX_TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_LOG_ENABLED
    
    #define NRFX_TWI_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_LOG_LEVEL
    
    #define NRFX_TWI_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_INFO_COLOR
    
    #define NRFX_TWI_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRFX_TWI_CONFIG_DEBUG_COLOR
    
    #define NRFX_TWI_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_ENABLED
    
    #define TWI_ENABLED 1
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_FREQUENCY
    
    #define TWI_DEFAULT_CONFIG_FREQUENCY 26738688
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_CLR_BUS_INIT
    
    #define TWI_DEFAULT_CONFIG_CLR_BUS_INIT 0
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT
    
    #define TWI_DEFAULT_CONFIG_HOLD_BUS_UNINIT 0
    
    #endif
    
     
    
    #ifndef TWI_DEFAULT_CONFIG_IRQ_PRIORITY
    
    #define TWI_DEFAULT_CONFIG_IRQ_PRIORITY 6
    
    #endif
    
     
    
    #ifndef TWI0_ENABLED
    
    #define TWI0_ENABLED 1
    
    #endif
    
     
    
    #ifndef TWI0_USE_EASY_DMA
    
    #define TWI0_USE_EASY_DMA 1
    
    #endif
    
     
    
    #ifndef TWI1_ENABLED
    
    #define TWI1_ENABLED 1
    
    #endif
    
     
    
    #ifndef TWI1_USE_EASY_DMA
    
    #define TWI1_USE_EASY_DMA 1
    
    #endif
    
     
    
    #ifndef TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED
    
    #define TWIM_NRF52_ANOMALY_109_WORKAROUND_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_LOG_ENABLED
    
    #define TWIS_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_LOG_LEVEL
    
    #define TWIS_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_INFO_COLOR
    
    #define TWIS_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef TWIS_CONFIG_DEBUG_COLOR
    
    #define TWIS_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_ENABLED
    
    #define TWI_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_LEVEL
    
    #define TWI_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef TWI_ENABLED
    
    #define TWI_ENABLED 0
    
    #endif 
    
     
    
    #ifndef TWI0_ENABLED
    
    #define TWI0_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_ENABLED
    
    #define TWI_CONFIG_LOG_ENABLED 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_LOG_LEVEL
    
    #define TWI_CONFIG_LOG_LEVEL 3
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_INFO_COLOR
    
    #define TWI_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_DEBUG_COLOR
    
    #define TWI_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_INFO_COLOR
    
    #define TWI_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef TWI_CONFIG_DEBUG_COLOR
    
    #define TWI_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_SECTION_ITER_ENABLED
    
    #define NRF_SECTION_ITER_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_SORTLIST_ENABLED
    
    #define NRF_SORTLIST_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_STRERROR_ENABLED
    
    #define NRF_STRERROR_ENABLED 1
    
    #endif
    
     
    
    #ifndef NRF_QUEUE_CONFIG_DEBUG_COLOR
    
    #define NRF_QUEUE_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_INFO_COLOR
    
    #define NRF_CLI_UART_CONFIG_INFO_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_CONFIG_DEBUG_COLOR
    
    #define NRF_CLI_UART_CONFIG_DEBUG_COLOR 0
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_ENABLED
    
    #define NRF_CLI_UART_ENABLED 1
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_READ
    
    #define FDS_CRC_CHECK_ON_READ 1
    
    #endif
    
     
    
    #ifndef FDS_CRC_CHECK_ON_WRITE
    
    #define FDS_CRC_CHECK_ON_WRITE 0
    
    #endif
    
     
    
    #ifndef NRF_BALLOC_CLI_CMDS
    
    #define NRF_BALLOC_CLI_CMDS 1
    
    #endif
    
     
    
    #ifndef NRF_CLI_UART_ENABLED
    
    #define NRF_CLI_UART_ENABLED 1
    
    #endif
     

    What libraries have you added exactly,

    Board support:

    Ses_startup_nrf_common.s

     

    Application:

    cli.c

     

    Drivers:

    nrf_drv_twi.c

    nrfx_twim.c

    nrfx_twi.c

     

    Libraries:

    Nrf_queue.c

    Nrf_queue.h

    Nrf_fstorage_sd.c

    Nrf_fstorage.c

    Nrf_cli_uart.c

    Nrf_cli.c

    Fds.c

    Crc16.c

    Does your modified project run as expected without logging?

    Yes.  I have been using putty to debug over UART but we are changing to a custom PCB and will be needing RTT in the future.

    Thanks for the help so far!

Children
No Data
Related