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.

BIOS boot order and GBL_xxx variable usage

Hello,

From another forum post, I understand that the BIOS boot order is:

device reset -> c_int00 -> BIOS_init -> main -> BIOS_start

I also understand that the "user init function" is called after the BIOS_init() function. I was wondering at which point in the boot order do GBL_xxx variables get used, specifically GBL_freq. If this is in the BIOS_init() function, how can I go about running a "user init function" prior to BIOS_init()?

I am using BIOS version 5.31.02 on a C6415T with CCS3.

Thanks,

Chris Johnson

Signalogic

  • Chris,

    GBL_freq is setup during cinit processing.  It is okay to used/modified within "user init function".
    The "user init function" is called at the beginning of BIOS_init() and not after.

    Judah

  • Judah,

    We were able to achieve run-time configuration of BIOS timing by modifying BIOS vars in main(), then calling BIOS_init() again.

    For now we're modifying GBL_freq and CLK_D_prd... that may not be all that's required for a complete BIOS timing base change, but at least for the moment our app is working Ok.

    We also cleared GBL_initdone before calling BIOS_init().  Is that necessary?  We implied that from posts on some other forums.

    Thanks,

    Chris

  • GBL_initdone is needed for the KOV tool so that it knows its okay to read the target.

    If you are not using the KOV tool, you wouldn't need to do this.

    Judah