Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

OTX_SWV_Example

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.

OTX_SWV_Example
SWV Example: sending debug info to VS Code output window

  1. Prerequisites

  2. Hardware connection setup.

    • P9_0 should be connected with pin 6 (SWO / TDO) of the 10 pin ARM SWD connector of the J-Link debugger (J-Link Adapter CortexM)

    • ARM_10_pin
      ARM SWD 10 pin connector

    • ARM_10_pin
      Onethinx Dev Kit

  3. Building the example

    • Clean Reconfigure All Projects
      Clean Reconfigure
      if you get errors, try to delete the contents of the build/ folder

    • Build & Launch
      Build & Launch
  4. 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).

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