Sample project to demonstrate SWV debugging with the Onethinx module using the JLink debugger.
Single Wire Viewer is an ARM implementation to send debug messages over a single wire (SWO) with a high datarate (usually at several Mbps).
Unfortunately, the Onethinx Module doesn't have the SWO pin routed for use outside the module. This can be overcome by using a separate UART configured at 6Mbps and emulating the ARM SWV protocol.

SWV Example: sending debug info to VS Code output window
-
Prerequisites
- Onethinx LoRaWAN Core Module
- J-Jink debugger
- Visual Studio Code
- Onethinx Core VS Code dependencies pack (compiler, Cypress tools, Cypress PDL, linkersettings etc.)
- PSoC Creator 4.4 (when reconfiguration of the UART / IO is required).
-
Hardware connection setup.
-
Building the example
-
Adapting the hardware configuration (SWO pin selection, UART baudrate etc.)
- Start PSoC Creator and open [Project Folder]/Onethinx_Creator.cydsn/Onethinx_Creator.cywrk
- Modify your configuration accordingly and do a clean-rebuild
- Go back to VS Code and do a [Clean Reconfigure] and [Build & Launch] (see steps above).

6 MBaud UART Example in PSoC Creator: double click and change settings



