Part Number: TMS320F28335
Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
Hi,
I have tried to run the example code "adc_seqmode_test" and "add_seq_ovd_test". I have also tried to run the following simple code on my device:
#include "DSP28x_Project.h"
void main(void)
{
Uint32 delay;
InitSysCtrl();
//
// Configure GPIO43 as a GPIO output pin
//
EALLOW;
GpioCtrlRegs.GPBMUX1.bit.GPIO37 = 0;
GpioCtrlRegs.GPBDIR.bit.GPIO37 = 1;
EDIS;
while(1)
{
//
// Toggle LED
//
GpioDataRegs.GPBTOGGLE.bit.GPIO37 = 1;
//
// Delay for a bit
//
for(delay = 0; delay < 10; delay++) //20000 is roughly 2 ms delay
{
}
//
// Toggle LED
//
GpioDataRegs.GPBTOGGLE.bit.GPIO37 = 1;
//
// Delay for a bit
//
for(delay = 0; delay < 10; delay++)
{
}
}
}
My device came with a pre-installed program that toggles the GPIOs at approximately 1 Hz frequency; this program is executed by default when I power-up my device.
I have configured the debugger to halt at main() so that I can check the code line-by-line. The trouble is, when I check it this way (using step over(F6), step into (F5) etc), the codes work fine. I have attached an oscilloscope to the GPIO pins to monitor the desired output and it is ok as well. But, instead of executing the code line-by-line, when I press the 'resume' button (the one with the green arrow pointing right), my code does not run. Instead the device reverts to the pre-installed program and starts toggling the GPIO pins at 1 Hz. This happens for every code that I try to run in the debugger, even the simple code shown above.
Please help.