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.

C6474 Timer Pin Manager Registers Not able to Set



Hello,

 I am running on C6474 on a custom board, and am unable to configure the Timer Pin Manager Registers either from code or from CCSv4 Debug.  Any time I make a change to the value, the register remains at 0x00000000 (for both TOUTPSEL and TINPSEL).  Is there anything else that needs to be set up prior to configuring the TPMGR registers?

 

Thanks,

Josh

  • Hello,

    I am not familiar with CCSv4 but in CC3v3.3 you should add

        GEL_MapAdd(0x02900000, 0, 0x00000010, 1, 1);   /* Timer Dv-Spc Reg  */

    this line in the GEL file between the other MAP definitions, this will allow you to change this register via debugger.

     

    And also you should enable Timers from PERCFG0 register before trying to access to those register from  your code.

    volatile Uint32 test;
    volatile Uint32 *pcfg;

    /* This section is coded such that the next two statements will execute in */
    /* under 16 SYSCLK3 cycles */
    pcfg = (volatile Uint32 *)0x02AC0004;

    /* Unlock PERCFG0 through PERLOCK */
    *pcfg++ = 0x0f0a0b00;

    /* Enable EMAC, Timers, McBSPs, I2C, GPIO in PERCFG0 */
    *pcfg = 0xC0455555;

    /* Read back PERSTAT0 */
    test = *((Uint32 *)0x02AC0014);

    /* Wait at least 128 CPU cycles */
    wait_usec(128);

  • J.M,

    Did this solution worked for you?

     

    Thanks,

    Arun.

  • Thank you for the quick response.  This now allows me to see the registers in debug so I can dig in further.

     

    Thanks,

    Josh