Caution: Make sure that ThreadX does not need more than the provided heap memory (64KBytes in this example). Read more in STM32CubeIDE User Guide, chapter: "Linker script". The "tx_initialize_low_level.S" shoul
However, the dynamic memory allocation is not a supported feature for threadX RTOS. In fact, its mandatory to implement it in CMSIS RTOS v2 wrapper level. The global idea for dynamic memory allocation solution is to use two threadX BytePools: ...
Microsoft 28 Chapter 2: Installation and Use of ThreadX #include "tx_api.h" unsigned long TX_THREAD my_thread_counter = 0; my_thread; main( ) { /* Enter the ThreadX kernel. tx_kernel_enter( ); } */ void tx_application_define(void *first_unused_memory) { /* Create my_thread!