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.

Attempting to read/write samples to/from flash to be displayed in the view-->image display

Other Parts Discussed in Thread: CCSTUDIO

I am attempting to read/write samples to/from flash to be displayed in the view-->image display but during the build process I recieved the following basic error message when I try to build:

<Linking>

undefined symbol                                    first referenced in file

_main                                                        C://CCStudio_v3.1/C5000/bios/lib/biosi.a551

>>error:symbol referencing errors-.Debug/fir.out not built

>>Compilation failure

I have created a project consisting of one self-made .asm file, the associated generated files and a self-made .cdb file.  I was under the impression that the build process would produce COFF files that could be debugged with the .cdb and other debug tools like the absolute lister and dissassembler but I recieved the above error message that looks like a C Compiler reference.  I am trying to avoid the use of C all together.

Thanks,

Patrick

  • Patrick,

    The BIOS library is looking for main() in your code.  Not sure of why.

    I would suggest starting without BIOS if you are going to construct assembly only application.  It will make your life a lot easier. 

    If you really want to go ahead with BIOS at this time, then there should be information on using BIOS with assembly language routines in the API Reference Guide.

    Regards.

  • Patrick,

     

    Looks like you are adding DSP BIOS to your project. I believe DSP BIOS assumes you are using a C program and defaults to set the reset vector (HWI_RESET) to _c_int00. _c_int00 is picked up from the libraries as the routine that initializes the C compiler environment before branching to _main.

     

    You can either remove DSP BIOS, if you do not need its features, or set the HWI_RESET to your entry point in your code.