baoshi/CubeMX2Makefile

STM32L0 is cortex-m0plus

Opened this issue · 2 comments

In CubeMX2Makefile.py, flags for STM32L0 should be

-mcpu=cortex-m0plus -mthumb -mfloat-abi=soft -specs=nosys.specs -specs=nano.specs

Correct me if I'm mistaken but I thought Cortex-M0 and Cortex-M0+ share the same basic instruction set and timing so code that runs on one should run on another. Only difference wrt code execution is Cortex-M0+ has a two-stage pipeline opposed to the three-stage of Cortex-M0.