Tool/software: Code Composer Studio
AM572x Industrial Development Kit ,
in CCS, I put the callback function pointer into a specail data section ,
i need to get the begin address and end address of this data section, and do the init_call_process.
how can i get the begin address and end address of this data section?
I define a data like this in the source code file:
PRAGMA(DATA_SECTION(__init_call_do1_, ".ncx_modfsymtab"))
const char* __init_call_do1_ = &ncx_init_call_do1;
in the CMD file, i insert this:
SECTIONS
{
.ncx_modfsymtab : {
ncx_modfsymtab_start =.;
*(.ncx_modfsymtab)
ncx_modfsymtab_end =.;
} > APP_CACHED_DATA_MEM
}
did the ncx_modfsymtab_start is the begin address of data secetion ".ncx_modfsymtab"?
did the ncx_modfsymtab_end is end address of data secetion ".ncx_modfsymtab"?
but when i build project, it was failed. and the message was below:
<Linking>
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 9: warning #10190-D: absolute symbol "ncx_modfsymtab_start" being redefined
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 11: warning #10190-D: absolute symbol "ncx_modfsymtab_end" being redefined
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 9: warning #10190-D: absolute symbol "ncx_modfsymtab_start" being redefined
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 11: warning #10190-D: absolute symbol "ncx_modfsymtab_end" being redefined
"../ncx_ethercat.cmd", line 10: warning #10068-D: no matching section
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 10: warning #10068-D: no matching section
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 9: warning #10190-D: absolute symbol "ncx_modfsymtab_start" being redefined
"F:/ti/pdk_am57xx_1_0_10/packages/MyExampleProjects/ncx_ethercat/ncx_ethercat.cmd", line 11: warning #10190-D: absolute symbol "ncx_modfsymtab_end" being redefined