ThreadX module size

109 Views Asked by At

assuming i've a ThreadX module flashed (or downloaded) is there a way to retrieve at run time from the Module Manager resident application the Module code and data size ? Thank you in advance, best regards

2

There are 2 best solutions below

2
On

Yes, those values are in the preamble of the module.

0
On

Maybe i found the answer: in the C typedef description of module preamble (TXM_MODULE_PREAMBLE in txm_module.h) i've found:

ULONG txm_module_preamble_code_size; /* Module Instruction Area Size / ULONG txm_module_preamble_data_size; / Module Data Area Size */