baoshi / CubeMX2Makefile

STM32CubeMX project to Makefile converter
152 stars 52 forks source link

STM32L0 is cortex-m0plus #33

Open daguro opened 7 years ago

daguro commented 7 years ago

In CubeMX2Makefile.py, flags for STM32L0 should be

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

kaofishy commented 7 years ago

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.

daguro commented 7 years ago

Even if there is no difference between the code generated for CM0 and CM0+ (and I don't know if there is), why not change the string generated to match the processor type?

On Sat, May 6, 2017 at 12:28 PM, kaofishy notifications@github.com wrote:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/baoshi/CubeMX2Makefile/issues/33#issuecomment-299660980, or mute the thread https://github.com/notifications/unsubscribe-auth/ADokh_BChSxVBmBVwoC66WVjsIpGmSPJks5r3MnlgaJpZM4NK5K2 .

--

daniel g. robinson www.bornlivelovedie.com bornlivelovedie.tumblr.com Gvoice 425.686.9738 @daguro