2023-02-02 09:05 AM
I have created an application using CubeMX inside CubeIDE and setting the ThreadX memory pool size in CubeMX sets the value generated in the app_azure_rtos_config.h. CubeMX also generates app_threadx.c and app_thread.h, but in app_threadx.h most examples show a #define APP_BYTE_POOL_SIZE inside the USER CODE BEGIN PD section.
Should these values in two different places be the same?
And should this be best accomplished by including app_azure_rtos_config.h in the app_threadx.h file and defining the APP_BYTE_POOL_SIZE as TX_APP_MEM_POOL_SIZE with a #define?
Solved! Go to Solution.
2023-02-15 06:24 AM
Hi @Community member ,
the "APP_BYTE_POOL_SIZE" define is useless, it was removed with the 3.0.0.
Sorry for any inconvenience it may have caused.
regards
haithem.
2023-02-14 08:09 AM
Hi @Community member ,
Could you please provide more details on which STM32 product you are working and which Azure RTOS version you are using?
regards
Haithem.
2023-02-14 08:25 AM
STM32H743 - Specifically STM32H743i-EVAL board
Azure RTOS STM32H7 2.1.0
Note: I tried 3.0.0 but so many things were broken that I fell back to 2.1.0
2023-02-15 06:24 AM
Hi @Community member ,
the "APP_BYTE_POOL_SIZE" define is useless, it was removed with the 3.0.0.
Sorry for any inconvenience it may have caused.
regards
haithem.
2023-02-15 03:22 PM
Ah I see. And the TX_APP_MEM_POOL_SIZE set in CubeMX is being pulled in by app_azure_rtos.c and that is all the is needed and during the App_ThreadX_Init(), the memory_ptr is then pointing to that pool.
Thx