This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debugging external NRF52832 with nRF52840 DK by BLE

Hi,

Currently I have a NRF52832 chip that I am using in a project. The chip is inaccessible since it is inside a device -- I have been performing software updates via the BLE.

Recently I have purchased a nRF52840 DK in hopes that I can access NRF log information via the BLE. I can connect to the device from the DK via nRF Connect for desktop with the Bluetooth Low Energy App but how can I debug the device with the DK?

I am using Segger & have also been able to connect via J-link to the DK but only to the development chip.

Parents
  • Hi,

    There is no remote debugging support or features in the SDKs out of the box. If you only have BLE connection but is able to update via DFU as you write, then what comes to mind is to add some code that logs important events and transmits those over BLE, for instance using the Nordic UART service. (See Bluetooth: Peripheral UART sample if using the nRF Connect SDK, or UART/Serial Port Emulation over BLE if using the older nRF5 SDK). That is only giving you logging though, and in case of errors you will typically not be able to log, but perhaps you can transfer that data later. This will not be ideal though, so I would really try to be able to debug with a wired connection if possible, preferably with a debugger. Is it not possible to open up your device and solder on wires on the SWD pins? 

    (Note that there are commercially available remote debugging solutions out there - like Memfault, but based on what you write I am not sure if that is relevant for you.)

Reply
  • Hi,

    There is no remote debugging support or features in the SDKs out of the box. If you only have BLE connection but is able to update via DFU as you write, then what comes to mind is to add some code that logs important events and transmits those over BLE, for instance using the Nordic UART service. (See Bluetooth: Peripheral UART sample if using the nRF Connect SDK, or UART/Serial Port Emulation over BLE if using the older nRF5 SDK). That is only giving you logging though, and in case of errors you will typically not be able to log, but perhaps you can transfer that data later. This will not be ideal though, so I would really try to be able to debug with a wired connection if possible, preferably with a debugger. Is it not possible to open up your device and solder on wires on the SWD pins? 

    (Note that there are commercially available remote debugging solutions out there - like Memfault, but based on what you write I am not sure if that is relevant for you.)

Children
No Data
Related