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.

TMS320F28027: F2802X_FLASH_KERNEL example code

Part Number: TMS320F28027
Other Parts Discussed in Thread: CONTROLSUITE

Hi,

in the example code in controlsuite.

code_start is the first code that is executed after exiting the boot ROM code.

in code_start it will jump to InitBoot, which will then jump to main.

I wonder why doesn't it jump to main directly?

All InitBoot code has already been executed in boot ROM code before code_start, why the flash_kernel code write it again?

  • Hi Howard,

    In this case, it could probably branch directly without going to InitBoot. If all init boot is doing is branching to main or __c_int00 then it isn't required.

    There is some C initialization code which is generated by the compiler that usually needs to be executed first. This is in __c_int00.

    Hope this helps.
    sal
  • Hi Howard,

    I am going to have someone with more expertise respond to you.

    What ControlSuite version are you currently using for this example program? Some comments on the InitBoot function below if you hadn't come across them already:

    ;-----------------------------------------------
    ; _InitBoot
    ;-----------------------------------------------
    ;-----------------------------------------------
    ; This function performs the initial boot routine
    ; for the boot ROM.
    ;
    ; This module performs the following actions:
    ;
    ;     1) Initalizes the stack pointer
    ;     2) Sets the device for C28x operating mode
    ;     3) Calls the main boot functions
    ;     4) Calls an exit routine
    ;-----------------------------------------------

    Best,

    Kevin