3 Replies Latest reply on Aug 5, 2016 4:52 PM by userc_40621

    Serial Console Debug (SWV on PSoC3 and PSoC5LP)

      I've been doing some work on a serial console debugger for PSoC, and I figured it was time to get it out there. This is a PC application that prints serial data being received from the Miniprog3 to a text console. Accompanying the app are firmware example projects for PSoC3 and PSoC5LP that map the printf() function to output via the SWV. This provides a very fast serial debug output that doesn't consume any resources on the PSoCs. Plus, many of your 10-pin debug connectors may already have the proper pin connected! The firmware is organized though the use of a "SWV" component - just add the component to your project, call the _Start() function, and start sprinkling printf() in your firmware.


      Here's a link to the app setup exe: https://www.dropbox.com/s/embu91bv8kuss7u/CySerialDebugSetup.exe?dl=0


      Here's the git repo for the application (C# Express 2010): https://github.com/kyoung2112/csharp-miniprog3-swv


      And here's the git repo for the Creator projects: https://github.com/kyoung2112/psoc_creator_swv_firmware


      There are still some things I want to do to this, including:


      1. Allow the console app to connect to COM (and virtual COM) ports.


      2. Give the component the option to use a UART instead of SWV if desired. This would also provide compatibility to PSoC4, which does not have SWV.


      Feel free to provide feedback, or better yet, fork the git repo and send me your own enhancements!