You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is this request related to a particular hardware platform, SoC, board? Please describe.
There is a CMake build system supported in the system.
Typically something like below is to be added in the project folder, that will include the Cortex-M33 version of ThreadX in the project:
Describe why you are asking for this support?
Problem arises, that ARM GCC will throw errors for *.s files compilation, complaining about thumb. CMake compile_commands.json does not show any sign of global project compiler flags being added to the threadx files.
So how do we correctly add -thumb flags to the threadx compiled files, w/o breaking the current structure?
I'm using latest image of the repository.
Furthermore, when researching why I cannot get pass tx_semaphore_create function, I noticed that sizeof(TX_SEMAPHORE) in the app wasn't the same as sizeof(TX_SEMAPHORE) inside threadx library. One was 28, another was 32.
A trick is that file tx_user.h, that is in the user application folder, outside threadx library, isn't visible to the compilation unit of threadx and therefore doesn't take into account all user settings.
In the TX_SEMAPHORE structure, there is this part:
#ifndefTX_DISABLE_NOTIFY_CALLBACKS/* Define the application callback routine used to notify the application when the a message is sent to the queue. */VOID (*tx_queue_send_notify)(structTX_QUEUE_STRUCT*queue_ptr);
#endif
Macro TX_DISABLE_NOTIFY_CALLBACKS is normally defined in the tx_user.h file, but this one is NOT visible to the compilation unit of threadx, if we use the current ThreadX CMake system.
What's the trick here, to make it happen correctly?
Is this request related to a particular hardware platform, SoC, board? Please describe.
There is a CMake build system supported in the system.
Typically something like below is to be added in the project folder, that will include the Cortex-M33 version of ThreadX in the project:
Describe why you are asking for this support?
Problem arises, that ARM GCC will throw errors for
*.s
files compilation, complaining about thumb. CMakecompile_commands.json
does not show any sign of global project compiler flags being added to the threadx files.So how do we correctly add
-thumb
flags to the threadx compiled files, w/o breaking the current structure?I'm using latest image of the repository.
I guess we are missing something like:
That will then add the values to the
target_compile_options
ofthreadx
module.The text was updated successfully, but these errors were encountered: