How to get diagnostic output while running the firmware #4801
RogerInHawaii
started this conversation in
General
Replies: 1 comment
-
Hello,
I have a dual boot PC with Ubuntu and Windows 10.
Hope that helps a bit. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm modifying the Open Source Firmware for my Prusa MK3S and would really like some way to output diagnostic text while it's running. I suspect it can be done by sending the text out through the same USB port that's used for flashing the firmware and having it "caught" by the Serial Monitor of the Arduino IDE.
First of all, let me know if that seems reasonable.
Secondly, if that IS reasonable, what serial object do I use within the firmware to do that?
I tried approaches like :
but the compiler doesn't like any of those.
Is there a recommended way of getting diagnostic text output, somehow?
I'll point out that on my Windows machine I wasn't able to get Visual Studio Code installed on it, and had to revert to installing Ubuntu and the Linux version of Visual Studio Code which does not provide breakpoints, single-stepping, variable access, or any of the standard diagnostics tools of the full Visual Studio Code, so I'm left with trying to have the firmware do some printf (or similar) calls, but I need to know what serial port to reference.
Beta Was this translation helpful? Give feedback.
All reactions