Giter Site home page Giter Site logo

Comments (6)

Tiwalun avatar Tiwalun commented on May 27, 2024 1

Now I'm just wondering why rtt-target actually need an explicit call 😄

from probe-rs.

noppej avatar noppej commented on May 27, 2024

@Tiwalun If we break on main, before the user code executes, will it not be a case of the RTT control structures have not yet been configured?

from probe-rs.

jamesmunns avatar jamesmunns commented on May 27, 2024

I think that's a good point on the difference between defmt-rtt and rtt-target - the former is statically configured (so it will be initialized by cortex-m-rt essentially before main starts), while the latter requires an explicit init call (after main starts).

from probe-rs.

noppej avatar noppej commented on May 27, 2024

That is a valuable distinction. Our handling and timing of attach should follow different paths then for the two.

I suspect this distinction might answer @Tiwalun 's question about "if we consciously decided to take a different approach".

from probe-rs.

MabezDev avatar MabezDev commented on May 27, 2024

Now I'm just wondering why rtt-target actually need an explicit call 😄

rtt-target works around the possibility of the debugger polling the rtt control block before its fully constructed. It does this by writing the segger string last. However, in practice, I'm not sure this workaround is entirely relevant because I don't think anyone has ever run into it. It might not be worth implementing this workaround, and falling back to how defmt initializes the control block.

from probe-rs.

Yatekii avatar Yatekii commented on May 27, 2024

It's actually a real world issue that we run into sometimes. But maybe if we do the breakpoint procedure we can mitigate it and get something more out of it even :)

from probe-rs.

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.