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
<wyager[m]> <GrantM11235[m]> "struct FakeAllocator;..." <- > <@grantm11235:matrix.org> ```rust... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/JIwuAnxaYrAjHIhhQmzRQRdL>)
starblue has quit [Ping timeout: 256 seconds]
starblue has joined #rust-embedded
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 260 seconds]
korken89[m] has joined #rust-embedded
<korken89[m]> All my fellow cryptography hobbyists, what's your view on the newly standardized Ascon?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/HcholPReVjbAexzklhAIJzlZ>)
<korken89[m]> * All my fellow cryptography hobbyists, what's your view on the newly standardized Ascon?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/GxCahJShDPofQeIwmrUtYiOA>)
<korken89[m]> * All my fellow cryptography hobbyists, what's your view on the newly standardized Ascon?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/EDeKpxztCQIQtcUznaqvgeML>)
<korken89[m]> So that was a bit of an interesting exploration, I was sort of expecting Chacha to be "dethroned" from embedded symmetric encryption but it seems Chacha will stay a while longer. :)
<korken89[m]> Unless you need something really small, Chaha needs ~3 kB and Ascon lands at ~1 kB flash.
<korken89[m]> s/,/./
Guest7282 has joined #rust-embedded
<korken89[m]> I put all the testing here if anyone is interested: https://github.com/korken89/ascon-vs-chacha
gauteh[m] has joined #rust-embedded
<gauteh[m]> Hi. I am trying to use the ds18b20 temp sensor. After intiating a reading I need to way up to 750 ms before reading. What's a good way to do that? Loop and check for time in RTC interrupt? I'm going to sample at 1 Hz so if I don't I will spend most of the time waiting.
<gauteh[m]> * time waiting (https://github., * .com/gauteh/sfy/pull/164/files#diff-1f7cd13a2bc8bddec3ee2a56a35214d2366a9ccb63d23f1a79781f02faf3516dR89).
<juliand[m]> <gauteh[m]> "Hi. I am trying to use the ds18b..." <- If you want to use async, you could go with embassy and use embassy-time's Timer e.g. https://docs.embassy.dev/embassy-time/git/default/struct.Timer.html#method.after
<juliand[m]> In your case, I think, a timer interrupt would probably be work just fine. Depends on what you want to do while waiting.
<juliand[m]> s/be//
<gauteh[m]> <juliand[m]> "If you want to use async, you..." <- I'm not using async in this project
<gauteh[m]> gauteh[m]: I want the main loop and other interrupts to run at the same time
link445645[m] has joined #rust-embedded
<link445645[m]> Could someone help me understand the make_static() call at line 73 in this esp_wifi example?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/kRrAvPIwBChlLzrTklnyngOv>)
<ryan-summers[m]> I have a rust-generics and hierarchical traits question: Why do I need to specify that this impl's Debug when Debug is already implied by the lower-level traits of embedded_hal::i2c::I2c here? https://github.com/rust-embedded/embedded-hal/pull/579/files#diff-f671e00aad834f2c689f6b621301e5289e67988f8ccc3f470fd00f2e15f32c4aR134
<ryan-summers[m]> I.e. anything implementing I2c thus already has to implement debug, but the compiler complains if I don't add this additional bound
<ryan-summers[m]> Ah wait I think I see it, ErrorType doesn't implement Debug, but the associated Error type does... May be just some syntax issues here
albus_dandelion[ has quit [Quit: Idle timeout reached: 172800s]
starblue has quit [Ping timeout: 264 seconds]
starblue has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
dngrs[m] has quit [Quit: Idle timeout reached: 172800s]
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 268 seconds]
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 260 seconds]
DanielHershcovic has quit [Quit: Idle timeout reached: 172800s]
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 240 seconds]
NiaLinaLunaStorm has joined #rust-embedded
<NiaLinaLunaStorm> so I finally got my resistor on the DP line on my first PCB fixed. the good news it that if I plug it now in, I get something in dmesg, bug it complains that it couldn't enumerate the device... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/wFXUKWOfMwJMACAWNHklnabH>)
<NiaLinaLunaStorm> my code:
<NiaLinaLunaStorm> what am I doing wrong?
<NiaLinaLunaStorm> I get the same result when I try this example code (which is the base for mine) https://github.com/stm32-rs/stm32f1xx-hal/blob/master/examples/usb_serial.rs
cr1901_ has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
kenny has quit [Quit: WeeChat 4.2.1]
kenny has joined #rust-embedded
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 260 seconds]
crabbedhaloablut has quit []
crabbedhaloablut has joined #rust-embedded
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
relia1[m] has quit [Quit: Idle timeout reached: 172800s]
bartmassey[m] has quit [Quit: Idle timeout reached: 172800s]
AdamHott[m] has quit [Quit: Idle timeout reached: 172800s]
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 268 seconds]
Atlas667 has joined #rust-embedded
Atlas667 has quit [Ping timeout: 264 seconds]
<mabez[m]> <Ralph[m]1> "unrelated, but japaric: what are..." <- aligned and hash32 are now part of rust-embedded-community!
<JamesMunns[m]> <mabez[m]> "aligned and hash32 are now..." <- It's gh notification official :D
jannic[m] has joined #rust-embedded
<jannic[m]> <NiaLinaLunaStorm> "I get the same result when I try..." <- Your code is missing periodic calls to [poll](https://docs.rs/usb-device/0.3.2/usb_device/device/struct.UsbDevice.html#method.poll). You should call it at least every 10ms. However, that doesn't explain why the `usb_serial` example also doesn't work for you: It contains these calls.
duderonomy has joined #rust-embedded
duderonomy has quit [Client Quit]
duderonomy has joined #rust-embedded
<NiaLinaLunaStorm> <jannic[m]> "Your code is missing periodic..." <- any idea how to debug this. am 100% new to this kinda stuff
<JamesMunns[m]> This shouldn't matter but: are you running with --release?
<NiaLinaLunaStorm> no, I don't think so. just doing cargo run
<JamesMunns[m]> Try cargo run --release and see how it does
<NiaLinaLunaStorm> same result
bartmassey[m] has joined #rust-embedded
<bartmassey[m]> <korken89[m]> "All my fellow cryptography..." <- > <@korken89:matrix.org> All my fellow cryptography hobbyists, what's your view on the newly standardized Ascon?... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/klIeSxztlowwxebQuuVKPwxb>)
adamgreig[m] has quit [Quit: Idle timeout reached: 172800s]
d3zd3z[m] has quit [Quit: Idle timeout reached: 172800s]
IlPalazzo-ojiisa has quit [Ping timeout: 268 seconds]