knurling-rs / defmt

Efficient, deferred formatting for logging on embedded systems
https://defmt.ferrous-systems.com/
Apache License 2.0
812 stars 74 forks source link

Migration to probe-rs #790

Closed andresv closed 11 months ago

andresv commented 11 months ago

I followed migration guide from https://ferrous-systems.com/blog/probe-run-deprecation/. I am using latest defmt, probe-rs, defmt-rtt. After migration I see this (using STM32F411CEUx ):

43.380859 INFO  usb rx[5, 5]: [04, 04, 03, FF, 00]
└─ <mod path> @ └─ <invalid location: defmt frame-index: 27>:0
43.381103 INFO  in6 X
└─ <mod path> @ └─ <invalid location: defmt frame-index: 20>:0
43.394744 INFO  usb rx[5, 5]: [03, 04, 03, 01, 00]
└─ <mod path> @ └─ <invalid location: defmt frame-index: 27>:0
BriocheBerlin commented 11 months ago

Hey, unfortunately I don't have a STM32F411CEUx at hand (also this is not a lot of context). What is the (long form of the) command you are running? Are you by any chance running a --release? Wondering if this might apply.

andresv commented 11 months ago

That's it! I messed up Cargo workspace and therefore debug = 2 wasn't used.