If you have an Arduino board with a WifiNINA compatible chip, you can take advantage of wireless debugging, data plotting and tracing, and conditional breakpoints in your code, with no additional hardware!
Often you need to trace real world sensor data with your board in its true environment instead of on your desk, and it can be frustrating to constantly have to manually add code to track the data you are interested in. The Visual Micro debugger allows you to do all this in a few clicks....
Supported BoardsCurrently the below boards are supported, and we will expand this list as more compatible boards become available.
- Arduino UNO WiFi Rev.2
- Arduino NANO 33 IoT
- Arduino MKR 1010
- Arduino MKR VIDOR 4000 WiFi
The example sketch used in this tutorial is available in the links at the bottom/
- Open a sketch which you want to debug (or our example).
- Set the Wifi Credentials for your network.
- Build & Upload the Sketch to obtain the IP address of the board from the serial monitor
NOTE - Visual Micro will need updating to at least 2021.01.06.1 (available here) to use with WiFiNINA Boards
Enable DebuggingNow we have the IP address of the board, we can enable the debugging features before detaching it from our USB lead.
- Select vMicro > Debugging > Debug: Serial
- Open the Project Properties from vMicro > Project Properties
- Set the "Remote Transport" option to Udp
- Enter the IP address into "Local Address" and press ENTER to set it
- Now add break / trace points into your code as needed (Don't forget the @Plot Commands and Editable Variables are also available)
- Now Upload your code to the board, the debugger will automatically start
NOTE: If you want to change break/trace points or conditions the code will need to be rebuilt and uploaded to the board again as above.
Video GuideSee our video guide below for a walkthrough of this tutorial:
Further Videos & References:Visual Micro - Remote Transport Setting Reference
https://www.visualmicro.com/page/User-Guide.aspx?doc=Debugging-With-Different-Ports.html
Comments
Please log in or sign up to comment.