AnsweredAssumed Answered

BF531 seems to stop working after modification of Timer0

Question asked by amacleod on Jun 6, 2011
Latest reply on Aug 30, 2011 by amacleod

Hi,

 

I am working on a project on a Blackfin BF531. Under the VisualDSP++ 4.5 the code compiles and runs fine, however taking the same code and building it under VisualDSP++ 5.0 it doesn't boot. I've tracked it down as far as the code below:

 

 

*pTIMER0_CONFIG = 0x9;               // PWM, SCLK, PERIOD_CNT
*pTIMER0_PERIOD = 4;
*pTIMER0_WIDTH = 2;
*pTIMER_ENABLE = 1;
for (n=0;n<100000;n++){
}

 

 

it seems to be ok, until it gets to the for loop which it never leaves. Are there any changes in the compiler from 4.5 -> 5.0.9.0 that would cause this to happen?

Could it be the watchdog?

Is there something I am missing / the code is doing wrong?

I also tried ccsync and ssync after the pTIMER_ENABLE thinking it might be something to do with that, but it didn't seem to have any effect.

 

Thanks for any help that anyone can give me!

 

Alasdair

Outcomes