Hi,
I am using OMAPL138 logic pd board. I am connected with omapl138 through CCS5.5. I'm trying to initialize a timer0 on dsp with following steps,
step followed:
1) Launching CCS 5.5 with xds v2 emulator. target configuration omapl138
2) loading arm gel file only to wake up dsp. no PLL initialisation are done from arm gel file.
3) Loading DSP (c6748 gel file) , which will initialize all (core, peripherals, clocks etc)
4) within gel file created new hotmenu entry for handling timer0
/*Timer register*/
#define TGCR *(unsigned int*)(0x01C20024) /* Timer Global Control RegisteR */
#define TCR *(unsigned int*)(0x01C20020) /* Timer Control Register */
#define PRD12 *(unsigned int*)(0x01C20018) /* Timer Period Register 12 */
#define PRD34 *(unsigned int*)(0x01C2001C) /* Timer Period Register 34 */
#define TIM12 *(unsigned int*)(0x01C20010) /* Timer Counter Register 12 */
#define TIM34 *(unsigned int*)(0x01C20014) /* Timer Counter Register 34 */
hotmenu Timer64()
{
TIM12 = 0x00000000;
TIM34 = 0x00000000;
PRD12 = 0xFFFFFFFF;
PRD34 = 0xFFFFFFFF;
TGCR = 0x00000003;
TCR = 0x00000040;
}
After running the above hot menu command from scripts in CCS. In memory browser i don’t see the TIM12(0x01C20010) , timer counter register incrementing . But TGCR and TCR PRD12, PRD34 gets set to the values which are mentioned above. but timer doesn't run.
Is there anything else, i need to do ?
Any ideas, please let me know.
Thanks