Skip to content

Cannot build for STM32L552ZE-Q #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
asukiaaa opened this issue May 2, 2022 · 3 comments
Closed

Cannot build for STM32L552ZE-Q #51

asukiaaa opened this issue May 2, 2022 · 3 comments
Labels
invalid This doesn't seem right

Comments

@asukiaaa
Copy link

asukiaaa commented May 2, 2022

I tried building for STM32L552ZE-Q but failed with the following message.

/tmp/ccjgv9nE.s: Assembler messages:
/tmp/ccjgv9nE.s:224: Error: selected processor does not support `vstmdbeq r0!,{s16-s31}' in Thumb mode
/tmp/ccjgv9nE.s:225: Error: instruction not allowed in IT block -- `mrs r2,psplim'
/tmp/ccjgv9nE.s:250: Error: selected processor does not support `vldmiaeq r0!,{s16-s31}' in Thumb mode
/tmp/ccjgv9nE.s:252: Error: instruction not allowed in IT block -- `msr psplim,r2'
*** [.pio/build/nucleo_l552ze_q/lib67e/STM32duino FreeRTOS/portasm.c.o] Error 1

It seems similar to #44 but STM32L5 is supported bu adba678 so I report this.

My environment

platformio 5.2.5
platform-ststm32 15.3.0

platformio.ini

[env:nucleo_l552ze_q]
platform = ststm32
board = nucleo_l552ze_q
framework = arduino
monitor_speed = 115200
lib_deps =
  STM32duino FreeRTOS

Is there any idea to avoid this error?

Thank you for sharing the useful library.

@fpistm fpistm added the invalid This doesn't seem right label May 2, 2022
@fpistm
Copy link
Member

fpistm commented May 2, 2022

Hi @asukiaaa ,

L5 support has been added and is available with STM32FreeRTOS 10.3.1.
With Arduino there is no issue. I don't know how PIO handle this but you probably don't have the latest release.
You should request support there as we support only Arduino IDE.

@fpistm fpistm closed this as completed May 2, 2022
@asukiaaa
Copy link
Author

asukiaaa commented May 2, 2022

Exactly, I could build on Arduino IDE.
Thank you for the information.

@asukiaaa
Copy link
Author

asukiaaa commented May 3, 2022

I succeeded in building by adding -mfpu=fpv4-sp-d16 -mfloat-abi=hard for build commands so I created a PR.
stm32duino/Arduino_Core_STM32#1704

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

No branches or pull requests

2 participants