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
According to the desciption in the platform config header, the value for CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE) must be "small enough to allow for #CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS number of tables to fit into #CFE_PLATFORM_TBL_BUF_MEMORY_BYTES." (see
** The cFE does not place a limit on the size of this parameter but it must be
).
However, in modules/tbl/fsw/src/cfe_tbl_verify.h , the logic for checking this appears to be off by one:
#if ((CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS+1) *CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE) > \
CFE_PLATFORM_TBL_BUF_MEMORY_BYTES#error Shared buffers and table of size CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE cannot be greater than memory pool size of CFE_PLATFORM_TBL_BUF_MEMORY_BYTES!
#endif
This leads to compliant configuration values failing to compile.
To Reproduce
Steps to reproduce the behavior:
Edit CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE and CFE_PLATFORM_ES_MAX_BLOCK_SIZE to be a large value, such as 196608
Edit CFE_PLATFORM_TBL_BUF_MEMORY_BYTES to be equal to CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE * CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS (in this case 786432, for the default simultaneous load value of 4).
Try to compile
See error
[15%] Building C object tbl/CMakeFiles/tbl.dir/fsw/src/cfe_tbl_task.c.o
In file included from cfe/modules/tbl/fsw/src/cfe_tbl_task.c:35:
cfe/modules/tbl/fsw/src/cfe_tbl_verify.h:39:2: error: #error Shared buffers and table of size CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE cannot be greater than memory pool size of CFE_PLATFORM_TBL_BUF_MEMORY_BYTES!
Expected behavior
Successful compilation
System observed on:
Hardware: x86_64
OS: Rocky Linux 8
Versions draco-rc4 tag
Reporter Info
Isaac Rowe, NASA JSC/Jacobs Technology
The text was updated successfully, but these errors were encountered:
Describe the bug
According to the desciption in the platform config header, the value for
CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE)
must be "small enough to allow for#CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS
number of tables to fit into#CFE_PLATFORM_TBL_BUF_MEMORY_BYTES
." (seecFE/cmake/sample_defs/example_platform_cfg.h
Line 1369 in d6e6107
However, in
modules/tbl/fsw/src/cfe_tbl_verify.h
, the logic for checking this appears to be off by one:This leads to compliant configuration values failing to compile.
To Reproduce
Steps to reproduce the behavior:
CFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE
andCFE_PLATFORM_ES_MAX_BLOCK_SIZE
to be a large value, such as196608
CFE_PLATFORM_TBL_BUF_MEMORY_BYTES
to be equal toCFE_PLATFORM_TBL_MAX_SNGL_TABLE_SIZE * CFE_PLATFORM_TBL_MAX_SIMULTANEOUS_LOADS
(in this case 786432, for the default simultaneous load value of 4).Expected behavior
Successful compilation
System observed on:
draco-rc4
tagReporter Info
Isaac Rowe, NASA JSC/Jacobs Technology
The text was updated successfully, but these errors were encountered: