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.87k stars 782 forks source link

How to compile portmodule's example_build modulemanager and module #234

Closed MinghaoLin2000 closed 1 year ago

MinghaoLin2000 commented 1 year ago

I want to know how to compile ports_module/cortex_m3/gnu/example_build/ module and moduleManager together. I checked four bat files. I found that these bat files only output individual binary files. However, I want to output a binary that contains the module and module manager example code.

andrejm-rtos commented 1 year ago

The examples are made to generate two output files for flexibility. Your debugger should be able to load more than one file, check your documentation. If you want to generate one binary file out of two (or more) you can use some of the tools from your toolchain. If you are using the GNU Compiler Collection, you can look into binutils, specifically objcopy.