cancel
Showing results for 
Search instead for 
Did you mean: 

stm32ai "illegal hardware instruction" on Mac M1

VPejo.1
Associate

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!

4 REPLIES 4
BHuan.3
Associate III

I have the same problem with you.

BHuan.3
Associate III

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

Romain LE DONGE
Associate III

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

@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