Skip to main content
lyiku.1
Associate II
September 18, 2025
Question

x-cube-mems1 MotionMC MotionEC_Library minimum Stack size Heap_Size?

  • September 18, 2025
  • 1 reply
  • 277 views

How to know  MotionMC and MotionEC Library minimum Stack size Heap_Size?

When I invert my compass,stm32 will reset, then i  increase Stack size Heap_Size,it run very well.

1 reply

Federica Bossi
Technical Moderator
October 1, 2025

Hi  @lyiku.1 ,

It depends on your application and MCU.

You can use ST example project settings as baseline. Consider that STM32CubeIDE and other debuggers provide stack watermark or usage statistics.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.