Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
Hi ,
i'm working on CCs7, c2000 V3 and the lastest version of compiler.
I have a problems for murger two programs who work.
the program is adc_soc_software_cpu01.c (of controlSuite) and a personal program about PWM. The PWM don't use interrupt.
When I added the program ADC with PWM the first time, the program works. And the second time the program go to this part and stop : (in F2837xD_DefaultISR.c)
interrupt void TIMER1_ISR(void)
{
//
// Insert ISR Code here
//
//
// Next two lines for debug only to halt the processor here
// Remove after inserting ISR Code
//
asm (" ESTOP0");
for(;;);
}
I search what block the programs, I thinks it's about my init in main, extract :
//**********MY PROG
/****INITIALISATION DU SYSTEME ET DES PERIPHERIQUES*****/
InitSysCtrl();
InitGpio();
InitPeripheralClocks();//Initialisation des clocks
InitFlash();//Initialise la RAM.
FlashOff(); //Desactive la RAM.
ServiceDog(); //Initialisation des WDog.
InitEPwm1Gpio(); //Initialise les GPIOs pour generer un PWM sur la sortie 1.
InitEPwm2Gpio(); //Initialise les GPIOs pour generer un PWM sur la sortie 2.
InitAPwm1Gpio(); //Initialise les GP IOs pour generer un PWM sur la sortie 5.
DINT; // ajout pour adc
InitPieCtrl();
//ajout pour adc
//
// Disable CPU interrupts and clear all CPU interrupt flags:
//
IER = 0x0000;
IFR = 0x0000;
//fin ajout
InitPieVectTable();
InitSysPll(INT_OSC2, IMULT_35, FMULT_0, PLLCLK_BY_1);
EALLOW;
ClkCfgRegs.PERCLKDIVSEL.bit.EPWMCLKDIV = 0;//CLKDIV divise la frequence
EDIS;
//config ADC
//
// Enable global Interrupts and higher priority real-time debug events:
//
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM
//
//Configure the ADCs and power them up
//
ConfigureADC();
//
//Setup the ADCs for software conversions
//
SetupADCSoftware();
//Fin config ADC
//END PROG
Help me please!
Thinks in advance
Best regards,
JJ