I read in one place that the teensy 4.1 has debugging capability built in and elsewhere that 4.1 requires an extra bit of hardware. Can you clarify?
I seem to have made progress. I am using the plartformio vscode plugin successfully. I am able to build and upload. When I click on ‘debug’ I see some packages being recompiled, and something being uploaded. Buit after a moment of showing activity, the debug plug in stops and it looks like nothing is happening.
Do I have to modify my code and put in, for example, debug.start() or something like that?
Can someone shed some light on this?
Original
I have never done this before. Reading the help it seems to imply that I need an extra bit of hardware. In other words the simple usb connection from myraspberry pi to the teensy won’t be sufficient for debugging. Is that correct?
I have never done this before. Reading the help it seems to imply that I need an extra bit of hardware. In other words the simple usb connection from myraspberry pi to the teensy won’t be sufficient for debugging. Is that correct?
Thanks. I do wonder then why Platformio (vs code IDE) has a debug task, which does a lot of recoiling and reuploading, but in the end doesn’t do anything. You would think there would be a simple error message somewhere.
Or are those commands meant to work with the GDB proxy?
I guess here’s the high level question: do most people programming Teensy with Platformio just do print statements to debug?
Also do Arduino type debuggers give better debugging support?
Let’s say I switch from the teensy to one of the several Arduino or similar SBC. And I continue to use PlatformIO for deploying. Would the debug features be usable without additional special hardware? (The most important debug features are setting breakpoints, stepping and examing variables.) Which Arduino-family boards would you recommend?
Greetings!
I use PlatformIO VSCode Plugin for my Teensy 4.0 setup and was able to successfully compile and upload. Now, I am in need of the Debug option and unfortunately I couldn’t succeed with it. Below explains the scenario:
I am able to compile the Master example MASTER.ino
(Note: Added below as well to the code). #include <Arduino.h> #include “TeensyDebug.h” #pragma GCC optimize (“O0”)
After a normal upload, I do not see anything if I start the PIO Debug. I see the console opens but shouldn’t it stop if I sent a normal breakpoint in Vscode? Sorry if my understanding is wrong.
Similarly, It tried the Slave code SPI_MSTransfer_SLAVE.ino. Unfortunately, it fails the compilation. If I revert the platformio.ini file it compiles successfully.
FYR: I downloaded and kept the TeensyDebug-master folder from GitHub under my project lib directory.
I would really appreciate if you could guide me here for integrating this debug feature to my project . I do also have a doubt regarding the usage of this debug feature, like can I directly follow normal breakpoint setting as in VSCode or do I have to create/include some setup and other debug commands in my main.cpp?