Hello DSP experts,
I am using TCI6488. Now I met a problem caused by an exception from dsp/bios.
In TCF file, I configure timer0 .
//do not use Hi resolution timer bios.CLK.ENABLEHTIME = false; //do not use Hi resoultion time to driver system tick (BIOS) for evaluating "timeouts" in task syncronization API bios.CLK.HIRESTIME = false; // => use low resolution timer bios.CLK.TIMERSELECT = "Timer 0"; |
Using above code, everything runs fine.
Then, I set timer0's tick as 5us.
// set system tick to 5uSec (period of timer ISR). (one tick has 5 uSec). bios.CLK.MICROSECONDS = 5; |
Then, a NMI will be generated, and the reason is the exception from timer0. When I configure bios.CLK.MICROSECONDS to a large value, such as 10 or 20, everything will be OK.
Here, we need 5us for a special usage, I don't know whether we have some restriction about the value.
Thanks for your help.
PS: When debugging, I also found something related: after moving 2 of my project's files(not TI files) from DDR to L2, 8us can work , but less than 5us will casue error too.
Brs,
Zuopeng