GithubHelp home page GithubHelp logo

Comments (4)

japaric avatar japaric commented on September 26, 2024

I believe the older models of the Teensy don't have an on-board debugger but the newer ones do? The ones that do have one should already work with probe-run.

In general, boards that have no on-board debugger have some bootloader mode. It is certainly possible to write a Cargo runner that loads programs using the bootloader and then sets up a defmt transport but that usually requires quite a bit of device, or even board, specific code. What would it take to support those boards? I'm afraid that I cannot answer as I'm not familiar with this particular hardware (board or chip).

from probe-run.

jamesmunns avatar jamesmunns commented on September 26, 2024

I don't believe any of these boards have debugger access, and all have an external bootloader device.

We would instead need to implement defmt-over-usb support for these, or someone could implement a specific defmt sink for this.

from probe-run.

cstrahan avatar cstrahan commented on September 26, 2024

FWIW, there are some hardware mods that can make JTAG/SWD work on Teensy.

See: https://forum.pjrc.com/threads/69748-Simple-WORKING-JTAG-UART-for-Teensy-4-1

My understanding from perusing the forums a while back is that the ARM chips on Teensy have a fuse burnt during production that selects for JTAG interface (as, IIUC, the MKLO2 on the Teensy uses JTAG to control the processor during power on, and probably in some other cases I'm unaware of), and not SWD -- but it would seem that you can do one of two things if you want/need SWD:

  • Use JTAG to poke the register that selects between JTAG and SWD, and/or
  • Very early in your code, configure that register as desired -- now you'll have SWD shortly after power-on (at least until you flash another program without that bit of configuration code).

I have a couple Teensies and I hope to make such a modification to them so I can develop and test/debug some Rust code on them, in which case maybe I'll report back when I do 🙂.

from probe-run.

Urhengulas avatar Urhengulas commented on September 26, 2024

Please share if you suceed, but also if you find any blockers @cstrahan!

from probe-run.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.