Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: ftrias

Search: Search took 0.00 seconds.

  1. 1. The library, as currently written, doesn't...

    1. The library, as currently written, doesn't halt the Teensy on startup. So your "starting" point is not reliable. Right now, you have to either use "halt()" in your code or place a breakpoint and...
  2. I changed the API for setBreakpoint and removed...

    I changed the API for setBreakpoint and removed the numbrer. Just call:



    debug.setBreakpoint(testme)


    The code was in a comment in the examples so I missed it.

    The first Warning is not a...
  3. I'm guessing you've got the USB Serial names...

    I'm guessing you've got the USB Serial names reversed. Arduino thinks COM52 is the first serial port. Did you try changing the Port from the menu?
  4. I presume this is Windows? Is the file...

    I presume this is Windows? Is the file teensy_debug.exe in the right location? I wonder if the mixed use of "/" and "\" might be a problem? In any case, all teensy_debug does is try to figure out...
  5. The installer is looking for a directory...

    The installer is looking for a directory "hardware/teensy" inside your Arduino directory. If it's not there, it complains.

    Since you have a non-standard install, it's probably best to just set up...
  6. Thanks for the heads up about the warnings. I'll...

    Thanks for the heads up about the warnings. I'll fix that.

    I suppose "O0" is not really needed. I just put it in so that the compiler won't optimize away functions and lines in my trivial...
  7. Take over Serial is a bit tricky. It works by...

    Take over Serial is a bit tricky. It works by using a "#define" to redirect "Serial" to "debug" in TeensyDebug.h. The "debug" object will format data so that GDB will print it. If any of your...
  8. I fixed support for Teensy 3 to git. It should...

    I fixed support for Teensy 3 to git. It should work now using the Flash Patch feature to set/clear breakpoints in Flash. You can have a maximum of 5 breakpoints. Stepping line-by-line over the end of...
  9. For what it's worth, this is not too bad:...

    For what it's worth, this is not too bad: https://www.gdbgui.com/

    You can create a file `customize.py` in the `....hardware/tools` directory with the below (changing the path for 'g') and it...
  10. It's a bug. I updated the install script to...

    It's a bug. I updated the install script to accommodate a missing /usr/local/bin/arduino.
  11. This is a bug with the shenanigans I have to pull...

    This is a bug with the shenanigans I have to pull to get GDB to work calling code dynamically. I just committed some changes that may fix this most of the time.



    As for the T3, I had a plan...
  12. An excellent suggestion. Added...

    An excellent suggestion. Added `debug.isGDBConnected()`.
  13. It wasn't documented (I just added it), but...

    It wasn't documented (I just added it), but object `debug` inherits from class `Print`. Thus it supports print, println, etc. to print to the GDB console.



    debug.print(testvalue, HEX);
  14. I updated Github today with these fixes: 1....

    I updated Github today with these fixes:

    1. Reduce serial polling to 0.5 milliseconds. This should increase responsiveness. Will look at alternatives @defragster suggested.
    2. Fix `p func()` that...
  15. Breakpoints are slow because TeensyDebug only...

    Breakpoints are slow because TeensyDebug only processes GDB commands every 5ms. When a breakpoint is hit, Teensy notifies GDB right away. GDB sends a number of commands (clear breakpoints, get...
  16. All it does is: 1. copy the source files...

    All it does is:

    1. copy the source files (*.cpp, *.h) to a directory named TeensyDebug in your library directory
    2. customize and copy boards.local.txt and platforms.local.txt to...
  17. Run the install program with the -i option as in:...

    Run the install program with the -i option as in: teensy_debug -i=c:\Arduino-1.8.12
  18. Using GDB with Teensy without hardware debugger, first Beta

    I put together a library that allows GDB (included in Teensyduino) to perform source-level debugging on the Teensy without debugging hardware (no need for JTAG, SWD, etc). It uses GDB's Remote Serial...
Results 1 to 18 of 19