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
NiaLinaLunaStorm has joined #rust-embedded
<NiaLinaLunaStorm> I'm back at USB HID, made some progress but now am puzzled why it behaves the way it does. code is here https://codeberg.org/nayala/debugging-firmware... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/UXgQfVpEeSvIrRrEHCxNqyXs>)
<NiaLinaLunaStorm> since I'm setting here https://codeberg.org/nayala/debugging-firmware/src/branch/controller/firmware/src/main.rs#L141 the same value as the line above I'd expect both axis to report the very same but they don't
<NiaLinaLunaStorm> * I'm back at USB HID, made some progress but now am puzzled why it behaves the way it does. code is here [https://codeberg.org/nayala/debugging-firmware... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/FNpSeoCVMzMMmEKVHTmktPdY>)
<NiaLinaLunaStorm> * I'm back at USB HID, made some progress but now am puzzled why it behaves the way it does. code is here https://codeberg.org/nayala/debugging-firmware/src/commit/e8774ca4501d468fd6f60aef0a46caea39a4e4df/firmware/src... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/kgsnQSYSvZYcwhnlhyPACJPv>)
<NiaLinaLunaStorm> s/branch/commit/, s/controller/e8774ca4501d468fd6f60aef0a46caea39a4e4df/
<NiaLinaLunaStorm> when I make it fake 16 bit by multiplying by 16 I get it to work but that's not ideal cause 4095 * 16 is 65520 so below the max value of a 16 bit input
<JamesMunns[m]> Is the data just left aligned?
<JamesMunns[m]> Like 0xFFF0 max instead of 0x0FFF?
<JamesMunns[m]> You sometimes see that in sensors to hide the "bit depth"
<NiaLinaLunaStorm> but if that were the case, shouldn't I see this on both axis?
<NiaLinaLunaStorm> what throws me off here, is that the two axis are behaving differently
<JamesMunns[m]> Yeah, not sure!
starblue has quit [Ping timeout: 255 seconds]
starblue has joined #rust-embedded
<NiaLinaLunaStorm> I think I found a solution... return it as 16 bit but tell it it's the max value of a 12 bit thing
<NiaLinaLunaStorm> (which means I always need to mess with generated descriptors I use rn but at least a start)
<NiaLinaLunaStorm> ig thanks for being a rubber ducky!
<NiaLinaLunaStorm> one thing that still misbehaves tho is that it only reports its "manufacturer" and product name for a short moment and then it returns to be an unnamed device
sashin_ has quit [Quit: sashin_]
<NiaLinaLunaStorm> <NiaLinaLunaStorm> "one thing that still misbehaves..." <- at least in lsusb and stuff like hidviz... in flightgear, it still showed up with its name now
<NiaLinaLunaStorm> anyway, late and really happy with the progress, nini
AtleoS has quit [Ping timeout: 256 seconds]
AtleoS has joined #rust-embedded
oneDragon[m] has quit [Quit: Idle timeout reached: 172800s]
Guest30 has joined #rust-embedded
Guest30 has quit [Ping timeout: 250 seconds]
IlPalazzo-ojiisa has joined #rust-embedded
starblue has quit [Ping timeout: 252 seconds]
starblue has joined #rust-embedded
AtleoS has quit [Quit: AtleoS]
jakzale has quit [Remote host closed the connection]
jakzale has joined #rust-embedded
jakzale has quit [Remote host closed the connection]
jakzale has joined #rust-embedded
Mark[m] has quit [Quit: Idle timeout reached: 172800s]
<AdamHott[m]> Is anybody at Embedded World that stopped by the Arm booth to checkout those dev kits that include the Ethos-U85 NPU?
<AdamHott[m]> Curious to know if anyone learned anything interest about that NPU
<JamesMunns[m]> huh, interesting. Basically a big array math accelerator?
<JamesMunns[m]> Looks similar in perf to Google's Coral TPU, but maybe more efficient (and glued to a Cortex-M?)
birdistheword99[ has joined #rust-embedded
<birdistheword99[> This is probably a really stupid question, sorry, but I just want to confirm the difference between probe-rs run and probe-rs flash. I have my project set up to use probe-rs run as the runner in .cargo\config.toml, but does this only write to RAM? This doesn't actually flash the device like probe-rs flash? I also saw probe-rs embed exists, and seems to combine the two to some extent.
<birdistheword99[> * This is probably a really stupid question, sorry, but I just want to confirm the difference between probe-rs run and probe-rs flash. I have my project set up to use probe-rs run as the runner in .cargo\config.toml, but does this only write to RAM (not stored after power-cyle)? This doesn't actually flash the device like probe-rs flash? I also saw probe-rs embed exists, and seems to combine the two to some
<birdistheword99[> extent.
<dirbaio[m]> `probe-rs run` flashes (to flash, not to ram) and shows log output
<dirbaio[m]> `probe-rs run` flashes only
<dirbaio[m]> s/run/flash/
<AdamHott[m]> <JamesMunns[m]> "huh, interesting. Basically a..." <- Yeah seems like a great component for edge AI
<dirbaio[m]> cargo-embed is similar to probe-rs run but with a different featureset. they might get unified in the future
<birdistheword99[> dirbaio[m]: > <@dirbaio:matrix.org> `probe-rs run` flashes (to flash, not to ram) and shows log output
<birdistheword99[> Thanks, that clears things up. I was wondering how the hell it could not be in flash, but every-time I power my board off for a bit and come back to it later (just powered up with no debugger attached), it doesn't appear to be running the code. I guess its just the STM32H7 power/RCC issues as usual
<birdistheword99[> > `probe-rs flash` flashes only
<dirbaio[m]> oof, h7 power issues
<JamesMunns[m]> IIRC the history of flashing tools basically (2018 to present):... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/EhyyuTTTTuIiYobncGhiXrVI>)
<JamesMunns[m]> * IIRC the history of flashing tools basically (2018 to present):... (full message at <https://catircservices.org/_matrix/media/v3/download/catircservices.org/bQNAnYbnhAlnOZbZEibXgOTh>)
firefrommoonligh has joined #rust-embedded
<firefrommoonligh> `- cargo install cargo-binutils`
<firefrommoonligh> Good history. I will add one thing for building production firmware you can flash with third-party tools (DFU-utils, STM32cubeprogrammer etc):
<firefrommoonligh> `cargo objcopy --release -- -O binary target/firmware.bin`
<firefrommoonligh> s/`-/`/
<AdamHott[m]> I'm working on some schematics in KiCad and looking to reference other boards that have been built in KiCad to study for reference purposes. I've been looking at the rusty-probe and the esp-rust-board. Does anyone have any other good examples of open-sourced board that would be available on Github to review them in KiCad?
<firefrommoonligh> The answer will depend on what sort of thing you are building.
<firefrommoonligh> That said... I posted these UAV radio receivers as open hardware here; see the kicad_files subfolder: https://github.com/AnyLeaf/elrs-hardware
<firefrommoonligh> Note that the component placement on those boards make space compromises you wouldn't see on non-space-constrained designs.
<JamesMunns[m]> Throwing this out as an "enthusiastic hobbyist": https://github.com/OneVariable/ov-twin
<AdamHott[m]> It's an addressable RGB LED board that will have about 130 RGB LEDs x 60mA = 7.74 Amps. Needs ESD protection, voltage regulation, USB-C adapter, power on/off button, program start button, jumper boot switch
<JamesMunns[m]> that's a lot, tbh, and at ~40w you're going to have to deal with a lot of heat
<AdamHott[m]> yeah I know, it's a spicy meatball
<AdamHott[m]> :)
<ryan-summers[m]> Adam Hott: A project Id id a while ago and never finished, but the hardware was built and works: https://github.com/vertigo-designs/nano-bat
<AdamHott[m]> temperature sensor to prevent overheating
<AdamHott[m]> Thanks all!
<firefrommoonligh> I'm not sure if this is hitting that level of heat, but consider an aluminum PCB. Although they're generally for much higher current LEDs than that
<JamesMunns[m]> yeah, probably depends on the density. If you are fitting in like a light bulb shape, probably need alu. if you have a larger like laptop/monitor size, maybe not
<AdamHott[m]> This is for a prototype, which could become commercial
<firefrommoonligh> I agree with James on upping the voltage. You could do either, but you'll have more options for the DC-DC, and can get away with thinner traces if you do higher voltage.
<JamesMunns[m]> https://www.aliexpress.com/item/1005004463497983.html is something you can buy off the shelf
<JamesMunns[m]> (comes in a couple shapes and sizes!)
<JamesMunns[m]> you could do 12V3A from a USB-PD supply, drive the lights directly off that, then a simple buck or even LDO just for the MCU
<AdamHott[m]> Thanks for the pointers! James your board is coool!
<AdamHott[m]> You're doing a training on that one?
<AdamHott[m]> or workshop I mean
<JamesMunns[m]> AdamHott[m]: yep, the RustNL workshop will use that!
<JamesMunns[m]> JamesMunns[m]: Ah, seems 9V and 15V are more common for PD, might still need a buck :/
<AdamHott[m]> we'll see!
dngrs[m] has joined #rust-embedded
<dngrs[m]> 12V off USB-C should be fine, I've used https://a.aliexpress.com/_EGGXuJll
<dngrs[m]> In combination with https://a.aliexpress.com/_EHC0Nr11
<dngrs[m]> (The latter is kinda massive overkill for an MCU board though)
spinfast[m] has quit [Quit: Idle timeout reached: 172800s]
<AdamHott[m]> Thanks!
dne has quit [Remote host closed the connection]
dne has joined #rust-embedded
thejpster[m] has quit [Quit: Idle timeout reached: 172800s]
GenTooMan has quit [Ping timeout: 260 seconds]
relia1[m] has quit [Quit: Idle timeout reached: 172800s]
jannic[m] has quit [Quit: Idle timeout reached: 172800s]
bartmassey[m] has quit [Quit: Idle timeout reached: 172800s]
romancardenas[m] has quit [Quit: Idle timeout reached: 172800s]
GenTooMan has joined #rust-embedded
therealprof[m] has quit [Quit: Idle timeout reached: 172800s]
GenTooMan has quit [Ping timeout: 268 seconds]
mali[m] has joined #rust-embedded
<mali[m]> I stumbled on this HN article today: [The simple beauty of XOR floating point compression (clemenswinter.com)](https://clemenswinter.com/2024/04/07/the-simple-beauty-of-xor-floating-point-compression/)
<mali[m]> The algorithm is pretty simple, and my time series sensor values would be compressed pretty good.
<mali[m]> And although it seems that fp64 was overkill, I wondered whether embedded has a use case here.
cybernaut has joined #rust-embedded
IlPalazzo-ojiisa has quit [Quit: Leaving.]
AtleoS has joined #rust-embedded
cr1901 has quit [Read error: Connection reset by peer]
cr1901 has joined #rust-embedded
vollbrecht[m] has quit [Quit: Idle timeout reached: 172800s]