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

Having the RTT viewer after DFU

Hello there,

I have been using RTT viewer since a while and its works fine only if i program that board without DFU, and if i program this board with DFU it says "could not connect to target" as below...

and it disturbs my BLE Connection also, then i need to restart my board.

finally my problem is, i need to check(view/Debug) my data after DFU also, how can i do that please help me

Best Regards,

Rajender.

Parents
  • Hi Rajender, 

     Are you using the bootloader example? If so, there are two types of examples and only the bootloaders with debug version provide the RTT log function.

    May I know which example/code/image are you using?

    -Amanda H. 

  • Hi Amanda,

    Thanks for the replay,

    I'm using modified code of ble_app_uart example, Buttonless DFU, and secure_bootloader(ble).

    when i program my Custom board without bootloader(using j-link of DK board) the RTT viewer works fine, but when i program using DFU method(using bootloader) it wont work, i.e., when i try to connect in RTT viewer app the BLE disconnects and program stops working.

     Best Regards,

    Rajender.

  • Hi Rajender,

    Do you enable NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED in the sdk_config.h? You can refer to the sdk_config.h in the _debug project. 

    Do you use secure_bootloader(ble_debug) as the base? Are you able to use the secure_bootloader(ble_debug) for the test? Could you see the log from RTT viewer while only loading the secure_bootloader(ble_debug)? Does it advertise with the advertising name?

     -Amanda H.

  • Hi Amanda,

    --> Yes i Enabled NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED in sdk_config.h and i can see my LOG output in RTT viewer(j-link RTT viewer) when i program my board other than DFU(segger- Build and Run)

    --> just for the clarity i am telling you again that - my problem is to see log data while application is running after i do DFU,

    That means i have written my NRF_LOG_INFO() in the Application program

    --> Iam using secure_bootloader(ble) as the base not secure_bootloader(ble_debug) for the Bootloader of my Application, (when i was testing the secure bootloader firstly i have tried with secure_bootloader_ble_debug only and it was worked fine with RTT Log data)

    Best Regards,

    Rajender.

Reply
  • Hi Amanda,

    --> Yes i Enabled NRF_LOG_ENABLED and NRF_LOG_BACKEND_RTT_ENABLED in sdk_config.h and i can see my LOG output in RTT viewer(j-link RTT viewer) when i program my board other than DFU(segger- Build and Run)

    --> just for the clarity i am telling you again that - my problem is to see log data while application is running after i do DFU,

    That means i have written my NRF_LOG_INFO() in the Application program

    --> Iam using secure_bootloader(ble) as the base not secure_bootloader(ble_debug) for the Bootloader of my Application, (when i was testing the secure bootloader firstly i have tried with secure_bootloader_ble_debug only and it was worked fine with RTT Log data)

    Best Regards,

    Rajender.

Children
No Data
Related