crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #rust-embedded
_whitelogger has joined #rust-embedded
IlPalazzo-ojiisa has joined #rust-embedded
hmw has quit [Quit: Bye.]
hmw has joined #rust-embedded
id_tam has joined #rust-embedded
id_tam has quit [Client Quit]
crabbedhaloablut has quit [Read error: Connection reset by peer]
crabbedhaloablut has joined #rust-embedded
<re_irc>
<@korken89:matrix.org> Hey , is you wrapper of the CMSIS DSP lib working? I found it and thought I'd ask before I used it :) This one I mean: https://github.com/David-OConnor/cmsis-dsp-api
<re_irc>
<@korken89:matrix.org> I found an older one (https://crates.io/crates/cmsis_dsp) but for some reason it bloats the binary with ~130kB
neon[m] has joined #rust-embedded
<re_irc>
<@ragarnoy:matrix.org> Hey, any idea why I'm getting this error when compiling cortex-m
<re_irc>
<@diondokter:matrix.org> Try turning off the inline asm feature
<re_irc>
<@ragarnoy:matrix.org> now it fails to link with msvc
<re_irc>
<@ragarnoy:matrix.org> i could show the error but it's miles long
<re_irc>
<@ragarnoy:matrix.org> error: linking with "link.exe" failed: exit code: 1120
<re_irc>
<@korken89:matrix.org> Hmm, does anyone know how to get the linker to throw away unused stuff when doing C FFI? I'm linking in CMSIS-DSP, but it always bloats with 130k even though I only use one thing from it.
<re_irc>
<@korken89:matrix.org> I thought "lto = "fat"" would do it
<re_irc>
<@korken89:matrix.org> Oh noes, it's all the FFT tables - it can't detect which size is used to it links them all
<re_irc>
<@korken89:matrix.org> All 130k of tables
<re_irc>
<@korken89:matrix.org> So eh, does anyone know of an acceptable FFT impl in Rust for embedded? 😅
<re_irc>
<@adamgreig:matrix.org> : Just to be sure, maybe try "cargo build --target thumbv7em-none-eabihf"?
<re_irc>
<@adamgreig:matrix.org> : There's a few on crates.io, like microfft
<re_irc>
<@adamgreig:matrix.org> Ah you beat me to it :p
<re_irc>
<@korken89:matrix.org> Oh thank lord, 2k vs 130k xD
<re_irc>
<@korken89:matrix.org> microfft ❤️
<re_irc>
<@korken89:matrix.org> I had a small issue, as my MCU had 128k flash xD
<re_irc>
<@ragarnoy:matrix.org> : same :(
<re_irc>
<@adamgreig:matrix.org> Weird, the error definitely looks like it's trying to build for a different architecture, and the other error from link.exe suggests it's using the windows linker which it would do for native builds but not cross builds to arm
<re_irc>
<@ragarnoy:matrix.org> on the embassy repository, or even any repository, it works, i'm just trying to create my own app for nrf52 and stm32, and i can't get the correct build architecture
<re_irc>
<@dirbaio:matrix.org> : add "resolver = 2" to the "[workspace]"
<re_irc>
<@dngrs:matrix.org> this one is always so unintuitive
<re_irc>
<@firefrommoonlight:matrix.org> : It works for the subset of functionality it implements. I don't have a fix for the bloating. It also bloats compile time and tgt dir. ( I didn't notice the binary bloat, but noted)
<re_irc>
<@firefrommoonlight:matrix.org> FFI is a bit of a black box for me, so I'm curious if anyone has a fix
<re_irc>
<@firefrommoonlight:matrix.org> I use that wrapper regularly, but for trig fns, FIR, and IIR filters. Haven't tried FFT
<re_irc>
<@firefrommoonlight:matrix.org> *It looks like I did implement FFT, but don't remember if I tested it
<re_irc>
<@firefrommoonlight:matrix.org> Overall, that lib is a thin wrapper on a bindgen wrapper by Jacob Rosenthal. Its main value is cleaning up the API, eg arrays instead of pointers, and removal of some redundant parameters
<re_irc>
<@firefrommoonlight:matrix.org> Unrelated - any prog on the GPS? I got it working recently