Solved
STM32CubeIDE compiler multiplication bug
Using:
- Latest STM32CubeIDE
- Nucleo-64 G071 (Cortex-M0+)
- GNU Tools for STM32 (9-2020-q2-update) (default)
There seems to be a problem multiplying long numbers. Here's what a multiplication of two 32 bit ints looks like.
And this is what a multiplication of a 64 bit with a 32 bit int looks like. It works, but in addition to writing the result it also writes a bunch of junk in the memory addresses preceding the variables.
`bl 0x80004e8 <__muldi3>` seems to be the culprit here.
