Part Number: TMS320F28379D
Other Parts Discussed in Thread: SYSBIOS, C2000WARE
When I compile my project, I get the following warning:
#10247-D creating output section ".data" without a SECTIONS specification C/C++ Problem
In the map file I could discover what variables are been stored in this section:
.data 1 00000002 000000d2 UNINITIALIZED
00000002 00000020 dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_knl_Task_Module__state__V)
00000022 00000016 dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_knl_Clock_Module__state__V)
00000038 00000008 dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_family_c28_Timer_Module__state__V)
00000040 0000004c dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_utils_Load_Module__state__V)
0000008c 00000012 dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_BIOS_Module__state__V)
0000009e 00000010 dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_family_c28_Hwi_Module__state__V)
000000ae 0000000c dev_flash_config_cpu01_p28FP.o28FP (.data:ti_sysbios_knl_Swi_Module__state__V)
000000ba 00000004 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_Registry_Module__state__V)
000000be 00000002 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_Memory_Module__state__V)
000000c0 00000004 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_Startup_Module__state__V)
000000c4 00000004 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_SysMin_Module__state__V)
000000c8 00000004 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_System_Module__state__V)
000000cc 00000004 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_Text_Module__state__V)
000000d0 00000003 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_LoggerBuf_Module__state__V)
000000d3 00000001 dev_flash_config_cpu01_p28FP.o28FP (.data:xdc_runtime_Error_Module__state__V)
It seems that this region is used by Sys/BIOS and xdc_runtime. In my cmd file I got the following definition for the .data section:
/* Allocate data memory at RAM
* - .stack: Stack space | Volatile memory (SRAM). The C28x Stack Pointer (SP) is 16 bits. .stack must be in the low 64k words.
* - .bss and ebss: Global and static variables | Volatile memory (SRAM)
* - .sysmem and .esysmem: Memory for malloc type functions | Volatile memory (SRAM)
* - .data: Initialized data
* - .cio: Debugger section | Buffer for stdio functions
*/
/*
* .stack section cannot be split and must be in the low 64k words
* This section is only used for HWIs and SWIs. SYS/BIOS Thread stacks are allocated in .ebss
*/
.stack : > RAMM0, PAGE = 1
#ifdef __TI_EABI__
.bss : >> RAMGS0 | RAMGS1 | RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
.bss:output : >> RAMGS0 | RAMGS1 | RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
.sysmem : > RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
.data : > RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
#else
.ebss : >> RAMGS0 | RAMGS1 | RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
.esysmem : > RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
#endif
.cio : >> RAMM1 | RAMGS6 | RAMGS7 | RAMGS8 | RAMGS9, PAGE = 1
Should I worry about this warning? And how could I solve it?