Part Number:PROCESSOR-SDK-AM335X
Tool/software: TI-RTOS
Hello,
I'm using CCS v.8.3.0 with TI RTOS 5.01.00.11 and I have a problem on AM335x ICEv2 board.
The SYS/BIOS is using for clock generating DMTIMER2 as default what I get after some debug time.
This timer should be disabled after reset as mentioned in Technical Reference Manual Rev. P (register CM_PER_TIMER2_CLKCTRL).
Also DMTIMER0 (register CM_WKUP_TIMER0_CLKCTRL) should be disabled, but directly after the start of debug (breakpoint on c_init), just after apply of gel script I see that both are enabled.
I was looking to delivered GEL file (TMDXICE3359.gel), but there is nothing about enabling of these timers.
Means first question is how these timers are enabled?
Another problem is that SYSBIOS was correctly working in debug, but not under Bootloader.
In Bootloader was crashing on check frequency part.
Now my understanding what is happening:
SYSBIOS default timer DMTIMER2 (for AM335x) is using as default 32kHz input frequency.
The CCS is changing register CLKSEL_TIMER2_CLK reset value CLK_M_OSC to CLK_32kHz clock. Here again I want to ask how, because I don't see it in GEL file.
The Bootloader is using default settings of CLKSEL_TIMER2_CLK means CLK_M_OSC and I can fix crash on frequency check with following configuration:
var DmTimer = xdc.useModule('ti.sysbios.timers.dmtimer.Timer');
DmTimer.intFreqs[0] = {hi: 0, lo: 24000000};
But after this, the debug code of course is not working.
Please can you suggest me some solution for this issue, how to fix that it works for both?
With best regards
Jiri