This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

unresolved symbol _main, first referenced in. ..\lib\rts2800_fpu32.lib<args_main.obj>

Other Parts Discussed in Thread: TMS320F28335

Hello

I work under CCS 5.5 , with the tms320f28335.
I try to compile my Software in release without success until today.

I have an CCS project that work and compile under debug configuration but under release, i have errors below :

- unresolved symbol _main, first referenced in D:\Workspace\Source\TI\c2000_6.2.0\lib\rts2800_fpu32.lib<args_main.obj>

-unresolved symbols remain

I have this warning too :

- entry-point symbol other than "_c_int00" specified:  "code_start"

- function "main" was declared but never referenced

In my release project configuration i have added the library and the path under "C2000 linker"->"File Search Path"

Some body can help me on this point?

 

  • Hi Cedric,

    I guess you want to run the code through flash right? Here are the changes you need to do in debug config :

    1. You need to add these two statements:
    MemCopy(&RamfuncsLoadStart, &RamfuncsLoadEnd, &RamfuncsRunStart); InitFlash(); after InitPieVectTable();

    2. Add DSP2833x_MemCopy.c file to the project.

    3. Define extern variables above main() function.

    extern Uint16 RamfuncsLoadStart;
    extern Uint16 RamfuncsLoadEnd;
    extern Uint16 RamfuncsRunStart;

    4. Replace 28335_RAM_lnk.cmd with F28335.cmd
    5. Compile the code.
    6. Configure your GPIO's to boot to flash.

    Regards,
    Gautam
  • Hello Gautam
    Thanks for your answer
    After a code review, all of the step that you describe are already implemented
    Somebody have any other idea to help me?
  • Hello All

    I have finally found why my MAIN function is not found.
    In release mode, (because of compilation option) my MAIN function is set to static.
    If you have the same problem, check this at the first time .

    Best regards