CubeMX2Makefile icon indicating copy to clipboard operation
CubeMX2Makefile copied to clipboard

STM32L0 is cortex-m0plus

Open daguro opened this issue 7 years ago • 2 comments

In CubeMX2Makefile.py, flags for STM32L0 should be

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

daguro avatar Apr 27 '17 23:04 daguro

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.

kaofishy avatar May 06 '17 19:05 kaofishy

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 [email protected] 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

daguro avatar May 06 '17 22:05 daguro