Application works only in debugging mode C8051f320

Hello,

I am working with a C8051F320 microcontroller from silabs connected via SPI to the RF module nRF24L01 from Nordic.

I wrote an application in order to configure one module as transmitter and the other as receiver.

If I run the application in debugging mode run (no breakpoints, no watchdog timer) it works. I am using the C2 interface to program the MCU and Keil uVision3 as compiler.

Then when I disconnect the module from debugger and switch it on, it doesn’t work as expected.

Are there any timing differences between the 2 situations?

I am using 3 timers to enable interrupts and the timing are respectively 16us, 1ms, 60ms: is there any problem with the timers?

Regards,

Sveva

you can allocate one pin for eiach timer and when the timer triggers toggle the associated pin. then look at the pin using a oscilloscope or logic analyser. i am not familiar with the microcontroller that you are using but that is what i do when i think my timers are no behaving.

regards