eclipse-threadx / threadx

Eclipse ThreadX is an advanced real-time operating system (RTOS) designed specifically for deeply embedded applications.
https://github.com/eclipse-threadx/rtos-docs/blob/main/rtos-docs/threadx/index.md
MIT License
2.88k stars 784 forks source link

Static variables cannot be defined in threadX dynamic modules #196

Closed GetFreedomPro closed 2 years ago

GetFreedomPro commented 2 years ago

example: static int test_value;

void hello_world(void) { test_value++; }

void thread_0_entry(ULONG thread_input) { hello_world(); }

The test_value variable could not be found in the .map file after compilation

GetFreedomPro commented 2 years ago

There is no problem compiling on MDK, but there is a problem compiling on STM32cubeIDE ,probably due to different compilation options.