You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say FPU is disabled at entry in main() as it usually is, and you want to do some FP operations. Presto!
fnmain(){
cortex_m::interrupt::free(|cs| {let scb = tm4c129x::SCB.borrow(cs);
scb.enable_fpu();// some FP-using code});}
... or something like that. Well, not so easy. Since the code below enable_fpu changes callee-save FP registers, LLVM will try to stack those at the top of main... using the vpush instruction. Which is not available until FPU is enabled. Oops.