"> Shouldn't it be sufficient..." <- > <@9names:matrix.org> > Shouldn't it be sufficient to do it at the first command within main > > there's some other code that is run before the first line of main in an embassy program. not huge amounts, but enough for it to be a problem. > > > probably fine for a single volatile op > > at least it's working okay at the moment, shouldn't use the stack or statics at all. i should write the asm for it though to be more safe. Hm ok. I wonder if a solution like the rp2040-hal `entry` macro (https://docs.rs/rp2040-hal/latest/rp2040_hal/attr.entry.html) wouldn't be more user friendly. Probably not a big deal in practice. But this is not the first time people fall into that trap.