Skip to main content
VPejo.1
Visitor II
June 30, 2022
Question

stm32ai "illegal hardware instruction" on Mac M1

  • June 30, 2022
  • 3 replies
  • 3026 views

I suspect it's an issue with the stm32ai binary not being compliant with Mac M1, but perhaps someone can guide me towards the solution.

I tried the simplest X-CUBE-AI examples, such as the one with the sine wave and the one with HAR. Even when I take networks pretrained by others, loading them in the STM32CUBE gives me "Analyze fail on the AI model" every time.

I tried running stm32ai directly from the command line and I got "illegal hardware instruction" error.

Anyone running X-CUBE-AI on Mac M1, could you please help?

Thanks!

This topic has been closed for replies.

3 replies

BHuan.3
Associate
July 8, 2022

I have the same problem with you.

BHuan.3
Associate
July 8, 2022

@fauvarque.daniel​ Looking forward to your solution. Thanks a lot.

Romain LE DONGE
Associate
July 11, 2022

Hello,

Unfortunately M1 macs are currently not natively supported, but did you try to enable Rosetta 2 compatibility mode ?

You can try the answer used for "nvm" from this thread: https://github.com/nvm-sh/nvm/issues/2350#issuecomment-734132550

0693W00000QKq94QAD.png 

Then try starting the stm32ai command line again from the terminal,

Hope it can help,

Romain

BHuan.3
Associate
July 11, 2022

@Romain LE DONGE​ 

Dear Romain,

Thanks for your answer and possible solution. Unfortunately, I try it but fail. Maybe we need a new build one for M1 specifically or use windows instead.

Hope your team's new build for M1.

Best wishes,

Baichuan