cancel
Showing results for 
Search instead for 
Did you mean: 

Custom FP-AI-Monitor1 problem

deddy11
Associate II

Hi,

I want to add some functions to the FP-AI-MONITOR1 project, but I prefer to compile it using CMake for better compatibility with AI agents and the STM32Cube VS Code extension.

I’ve created the CMakeLists.txt files and successfully compiled the project. However, the firmware doesn’t run as expected compared to when I compile it using STM32CubeIDE.

It gets stuck after calling HAL_Delay(1000); if any of the following code blocks are not commented out:

  if (SysDebugInit() != 0) {
    sys_error_handler();
  }
if (xTaskCreate(InitTaskRun, "INIT", INIT_TASK_CFG_STACK_SIZE, NULL, INIT_TASK_CFG_PRIORITY, &s_xTheSystem.m_xInitTask) != pdPASS) {
    xRes = SYS_OUT_OF_MEMORY_ERROR_CODE;
    SYS_SET_SERVICE_LEVEL_ERROR_CODE(xRes);
  }

Both lines of code are in SysInit function in sysinit.c file.


Can anyone tell me what might be causing this error? Also, is there an easy way to convert an STM32CubeIDE project into a CMake project or into STM32CubeMX ioc file? I need to use Manus AI to generate the CMakeLists.txt files that include all the necessary files for compilation. Thank you.

0 REPLIES 0