ChanServ changed the topic of #rust-embedded to: Welcome to the Rust Embedded IRC channel! Bridged to #rust-embedded:matrix.org and logged at https://libera.irclog.whitequark.org/rust-embedded, code of conduct at https://www.rust-lang.org/conduct.html
crabbedhaloablut has quit [Ping timeout: 268 seconds]
crabbedhaloablut has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #rust-embedded
explore has joined #rust-embedded
starblue1 has quit [Ping timeout: 255 seconds]
starblue1 has joined #rust-embedded
crabbedhaloablut has quit [Remote host closed the connection]
explore has quit [Quit: Connection closed for inactivity]
explore has joined #rust-embedded
cr1901_ has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
starblue1 has quit [Ping timeout: 240 seconds]
starblue1 has joined #rust-embedded
<re_irc> <MathiasKoch> Does anyone here already have an async wrapper (std) around a defmt decoder & rtt upchannel? Something along the lines of an async stream that can be awaited to get decoded defmt frames?
<re_irc> <matejcik> could someone help me troubleshoot "cargo-call-stack"? or, well, more specifically, cross-compiling examples?
<re_irc> my crate is originally a "staticlib", the result would then be linked to more C code for the final image.
<re_irc> I changed it to normal lib (otherwise neither binaries nor examples see the crate??), successfully built and linked the example against the parts of the C code that it needs. (i believe the linking step succeeds, because I also know how to make it _fail_, and how to fix that failure)
<re_irc> after that, I can successfully _build_ the example, but call-stack complains that ".text section not found"
<re_irc> which is true -- the binary is 10 megabytes, but "objdump -h" only reports debug sections, no ".text", no ".data", none of the usual things that would contain any code
<re_irc> <matejcik> i'm in no_std so I had to enable "#![feature(start)]" and declare a starting point as "#[start] fn start(...)"
<re_irc> one thing comes to mind that this didn't take and there is no starting point so the linker throws away everything?
<re_irc> <chrysn (@chrysn:matrix.org)> All I can offer is an old pointer to where I started adding support for static libraries directly (https://github.com/japaric/cargo-call-stack/issues/4) -- but I'm afraid that's terribly outdated and immature :-(
<re_irc> <matejcik> chrysn: thanks, i actually saw that before .) i'm trying not to tinker with cargo-call-stack before i figure out what is going wrong with the built binary
<re_irc> <matejcik> so in case anyone is interested:
<re_irc> instead of tinkering with "feature(start)", I can use "#![no_main]" and then specify a "#[no_mangle] fn _start() -> !"
<re_irc> this gets me a step further to more linker errors :)
cr1901_ is now known as cr1901
causal has quit [Quit: WeeChat 3.5]
tafa has quit [Quit: ZNC - https://znc.in]
tafa has joined #rust-embedded
<re_irc> <Marco Silva> hello everyon 👋
<re_irc> <Marco Silva> * everyone
<re_irc> <Marco Silva> I'm trying to learn rust by doing an embedded project
<re_irc> <Marco Silva> so I'm in stage 3, coming here for support xD
<re_irc> <Marco Silva> trying to read a sensor that uses I2C, and sending the data to usb serial
<re_irc> <Mathias> Stage 3: bargaining? :)
<re_irc> <Marco Silva> I'm using a pi pico, got the blink to work (stage 1), got the serial to work kinda (stage 2), and now im stuck since yesterday for hours
<re_irc> <Marco Silva> just managed to get some better error handling so I know it's from i2c, error Abort with code 1
<re_irc> <Marco Silva> I'm using a driver library but not sure if it's working :/
<re_irc> <Marco Silva> https://github.com/miek/sht3x-rs this is the one, not sure if sending pastebins is allowed here so I can share my code
<re_irc> <Marco Silva> looks like I can just do that :/
<re_irc> <Marco Silva> it's based on the pico template
<re_irc> <Marco Silva> I'm sure it's really bad code xD try not to get tilted
<re_irc> <Marco Silva> on the hardware side I'm using the stuff from Grove, with the sensor connected on the shield with the cable on I2C0
seer has quit [Quit: quit]
seer has joined #rust-embedded
dc740 has joined #rust-embedded
<re_irc> <jannic> According to https://wiki.seeedstudio.com/Grove-I2C_High_Accuracy_Temp&Humi_Sensor-SHT35/ (if that's the module you are using), the default address is "0x45", which would be "Address::High", but your "main.rs" shows that you are using "Address::Low".
<re_irc> This also matches the error code 1, which just means that no device acknowledged the address.
dc740 has quit [Remote host closed the connection]
<re_irc> <Marco Silva> ty jannic , I've seen som examples with it to low, just changed it but I still have the same error
<re_irc> <Marco Silva> im also using I2C0, and some people have it in 1. would that make any difference?
<re_irc> <Marco Silva> I think I might need to do some type of waiting to set up the device before it being ready, but not sure what I should write to do it. the guy that wrote the crate I'm using is using this driver on a normal pi, so it's a bit different with the /dev/ port, and maybe the OS does the handshaking needed
<re_irc> <Marco Silva> just reading the i2c code I see a code saying that the way I'm doing is enabling it in "master" mode, it should be "slave" right? is it related with this https://github.com/rust-embedded/embedded-hal/issues/179