Problem so far has been that using any sort of float operation would result in a hard fault. That is because gcc by default uses the "wrong" libgcc.a.
I have forced it to use one with floating point implemented by changing LDFLAGS from
Code: Select all
-Llibopencm3/lib -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections,-Map,linker.map
-Llibopencm3/lib -L/usr/lib/gcc/arm-none-eabi/11.1.0/thumb/v7+fp/softfp -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections,-Map,linker.map
Code: Select all
-Llibopencm3/lib -march=armv7 -T$(LDSCRIPT) -nostartfiles -Wl,--gc-sections,-Map,linker.map
UPDATE: there is. Just specify -march=armv7
I think this is particularly interesting for the ZombieVerter project as that has no fast loops at all.