Coder Social home page Coder Social logo

itm's People

Contributors

adamgreig avatar alexcrichton avatar bors[bot] avatar eldruin avatar homunkulus avatar japaric avatar joe1994 avatar jonas-schievink avatar leseulartichaut avatar qthree avatar therealprof avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

itm's Issues

Unexpected 'end of file during packet'

I often get error 'end of file during packet' while I run itmdump -f itm.fifo -F. It occurs because itmdump reads header but it can't read a full packet (receiving of the packet is in progress).

I think when itmdump invoked with --follow option it must never throw this error. It should retry reading until it will read full packet.

Windows support

This relies on named pipes (fifo files) to work. Is there an equivalent to that in Windows land?

Not able to install itm.

Hi i was working with discovery book and I was trying to install the itmdump but it's showing me error.
error: there is nothing to install in itm v0.3.1, because it has no binaries cargo installis only for installing programs, and can't be used with libraries. To use a library crate, add it as a dependency in a Cargo project instead.
rustc Version
ustc 1.55.0-nightly (2f391da2e 2021-07-14)
cargo --version
cargo 1.55.0-nightly (3ebb5f15a 2021-07-02)
Please help me with this.

Add a Cargo.lock ?

The Cargo.lock is included in the .gitignore. I wonder why?
I was trying to package this for nixOS, however it will be a little harder without a lock file.

cargo.lock needs update

Building itm fails if '--frozen' parameter is used:

cargo build --frozen  
error: the lock file .../itm/Cargo.lock needs to be updated but --frozen was passed to prevent this

This is the case for v0.3.1 and current master.

parsing the itm.txt data

Hi, I am working with The Discovery Book and almost completed it. The task I am working on is to get the sensors readings from the itm.txt file and POST those readings on a server.
Now I am successfully able to get the readings from the sensor in the itm.txt but as told in the book the data is combined with the frames(Headers, payload). Now the problem is when I am taking this data from the itm.txt all unwanted data is coming with it.
And I am getting readings like this.

"\u0003x = \u0001-\u000230\u00013\u0003 y =\u0001 \u000218\u00012\u0001 \u0002z \u0002= \u0001-\u000231\u00010\u0002 t\u0003heta\u0001 \u00012\u0001.\u00016\u000200\u000268\u00018\u0001",

Whereas I want data to be in this form

x = -303 y = 182 z = -310 theta 2.600688
x = -297 y = 181 z = -312 theta 2.59427

How I can do that using the itm crate. I am stuck here and finding no way, already discuss this with some experts on Stackoverflow

I am expecting an answer to solve this. Thanks

Feature idea : add option to record received time of ITM message

STM32CubeIDE has a feature that shows the received time of an ITM data,
and it seems to be provide a convenient way for profiling embedded apps.

image

I thought this feature could be useful when added to the itm-dump tool.
I'm not an expert with ITM or embedded stuff, so I first wanted to ask whether this feature would fit well with the itm-dump tool.
I can try implementing the feature in the near future.

Reference

Thank you for reading ๐Ÿฆ€

Crate reimplemented with more features. Replace?

I recently published itm-decode before stumbling upon this crate just now. Comparing the two after a cursory dive, itm seems a bit more general with its application of traits; itm-decode has a more granular error enum, to help with trace streams that diverge from the specification; #34 is being implemented, and an ITM encoder may eventually be implemented for testing purposes with some other tools I'll be implementing as part of my master's. I have yet to compare the test benches. bin/itm-decode.rs shares some features with itmdump.

Perhaps the crates should be merged?

cargo install ITM - fedora 31 - installation failure

Hi,

I am following this (tutorial)[https://docs.rust-embedded.org/discovery/03-setup/index.html] where we are told to install cargo install itm. But this installation fails with the error:

   Compiling synstructure v0.12.3
   Compiling chrono v0.4.10
   Compiling backtrace v0.3.45
error[E0433]: failed to resolve: could not find `__rt` in `quote`
   --> /home/ycourvoisier/.cargo/registry/src/github.com-1ecc6299db9ec823/failure_derive-0.1.6/src/lib.rs:107:70
    |
107 | fn display_body(s: &synstructure::Structure) -> Result<Option<quote::__rt::TokenStream>, Error> {
    |                                                                      ^^^^ could not find `__rt` in `quote`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0433`.
error: failed to compile `itm v0.3.1`, intermediate artifacts can be found at `/tmp/cargo-installSgNG82`

Caused by:
  could not compile `failure_derive`.``

Since cargo install backtrace leads to no where I thought the issue should be addressed here.

I am working on

  • fedora 31 (5.5.5-200.fc31.x86_64 #1 SMP Wed Feb 19 23:28:07 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux)
  • rustc -V: rustc 1.41.0 (5e1a79984 2020-01-27)

Cargo.lock not up to date in 0.3.1 release commit

I think that the Cargo.lock file that's published with the 0.3.1 release commit is out of date as I'm running into problems packaging this tool at that version for nixpkgs:

I've resorted to applying a patch to the repo when the source is fetched from GitHub for compilation, but it would be cleaner to be able to build from a release with an up-to-date Cargo.lock file.

For context, I'm just trying to package this tool so that I (and others) can go through the Discovery book on NixOS without having to do anything more than installing the package via the system package manager. Nix has certain assumptions around how packages should build, one of them being that build processes shouldn't update lock files during a build, which is why I'm running into this issue originally (I'm fairly certain).

Thanks for making this tool and the Discovery book available :)

README sure suggests that something called "itmdump" lives here...

I'm trying to figure out how to add a feature to itmdump, which would imply knowing where the source is. Directions and the readme suggest that it is here -- but I see a commit (0d7db91) from Jan 2019 (!) removing it without comment? And yet appveyor.yml still references it?

Anyhoo, I'm confused -- perhaps the README should be updated?

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.