Here is what I want to do. I am trying to create a standalone Table, which I refer to as a Configuration Table. I am defining this table to be used in one of the 4 banks of the internal flash say Bank1. This is just a table without any startup code or any register initialization. This table will actually be used in my application in Bank 0, via a pointer access. The application in Bank 0 is where I will have my startup code, processor initialization and transfer of control from RESET, to _c_int00 to main.
I am not having issues in creating my application. The issues I am having is creating the Standalone Table (a.k.a. Config Table). I have the Config Table as a seperate project, without any startupcode. I am using the linker cmd file to locate the output of this project to the Bank1 region using the following in my sys_link.cmd file
MEMORY /* Section Configuration */
{
FLASH1 (RX) : origin=0x00080000 length=0x00080000
}
SECTIONS
{
.const : {} > FLASH1 /*> FLASH0 /*| FLASH1 | FLASH2 | FLASH3*/
.text : {} > FLASH1 /*> FLASH0 /*| FLASH1 | FLASH2 | FLASH3*/
.cinit : {} > FLASH1
}
My problem is standalone data table as I intended is not being treated just as a table but as an application. I have default stack size being automatically defined, the compiler/linker frowning at me for absence of main. However this is something I have done on other TI DSP's.
See Output dump from Compiler and linker for my current TMS570 ConfigTable that I am trying to create.
MY question is what do I have to do (settings, options, flags, whatever...) so that I can just create a table and flash it in say bank0 and use it from bank1 of TMS570 internal falsh.
Output dump from Compiler and linker
---------------------------------------
"C:/Data/Code_SandBox/SCADE_SandBox/Try_CT/sys_link.cmd"
<Linking>
warning: creating output section ".data" without a SECTIONS specification
warning: creating ".stack" section with default size of 0x800; use the -stack
option to change the default size
undefined first referenced
symbol in file
--------- ----------------
main C:\Program Files\Texas Instruments\ccsv4\tools\compiler\tms470\lib\rtsv7R4_A_be_v3D16_eabi.lib<args_main.obj>
error: unresolved symbols remain
error: errors encountered during linking; "StandaloneCT.out" not built
>> Compilation failure
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: *** [StandaloneCT.out] Error 1
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project StandaloneCT