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.

timer && clock question for am3359

Other Parts Discussed in Thread: AM3359

Hi guys,

Can someone tell me how to set the clock frequency for am3359 under sys_bios? Use .cfg or use C code or change it from gel file? Are there any samples? Thank you so much!

Regards,

Aaron

  • Aaron,

    Sadly, SYS/BIOS does not provide any APIs for configuring the AM3359 clock.

    Your idea of converting GEL code to C code is commonly done in these situations.

    If you want to plug a function into the startup sequence that performs the clock initialization prior to main(), you could plug any one of these three hooks in your .cfg file:

    var Startup = xdc.useModule('xdc.runtime.Startup');
    Startup.resetFxn = '&myClockSetup'; /* called before variables are initialized, be careful! */
    or:
    Startup.firstFxns.$add('&myClockSetup'); /* called before BIOS modules are initialized */
    or:
    Startup.lastFxns.$add('&myClockSetup'); /* called after BIOS modules are initialized */

    Alan
  • Hi Alan,

    Thank you so much and have a good day!

    Regards,
    Aaron