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.

CCS/TMS320F28335: DSPXXX_CodeStartBranch.asm and boot28.inc files: start up using c language rather assembly

Part Number: TMS320F28335

Tool/software: Code Composer Studio

dear All,

i have three questions about DSPXXX_CodeStartBranch.asm and boot28.inc files:

1- in the assembly file provided for start up there is a function for disabling the watchdog.

why the function is wrote with assembly? is it possible to write it with c language?

2- in that assembly file there is a function named _c_int00 included in boot28.inc file.

why the file extension is inc?

3- can i write boot28.inc file with c language?

regards,

Ras

  • Ras,

    The code in the "CodeStartBranch" file is called before the C environment is set up, therefore it has to be in assembly.  It is configured to allow the user to disable the watchdog timer, if required, to prevent a lengthy variable initialisation from tripping the watchdog timer before the user program code can reset it.  Once that is done, the code calls "boot.obj" which sets up the C environment (stack setup, variable initialisation, and so on, then call _main), so that has to be in assembly too.  The source file could have been given the ".asm" extension, but the author chose to use ".inc" which is also allowable.

    The attached slide is taken from the F28335 training workshop and shows the boot sequence.  The "CodeStartBranch" code would be placed at the entry point, and the "boot.obj" code goes in the smaller box on the left.

    Regards,

    Richard

    C28xm04s17.pdf