Quantcast
Channel: Motor drivers forum - Recent Threads
Viewing all articles
Browse latest Browse all 21636

How to access MainISR in dubugging mode?

$
0
0

Hi.

I'm working with Piccolo kits with CCSV4.

I can't access MainISR code in dubugging mode at below example?

Does anyone know how to access ISR in debugging mode?

-----------------------------------------------------------------------------------

// Sample program

interrupt void MainISR(void);
void DeviceInit();

void main(void)
{

DeviceInit(); // Device Life support & GPIO
...
...
// Enable CPU INT3 for EPWM1_INT:

IER |= M_INT3;
// Enable global Interrupts and higher priority real-time debug events:
EINT; // Enable Global interrupt INTM
ERTM; // Enable Global realtime interrupt DBGM
...
...

// IDLE loop
for(;;) //infinite loop
{
 (*Alpha_State_Ptr)(); 
 ServiceRoutine(&commros);
Datalogger(&commros.m_datalogger,0);
}

// MainISR 

interrupt void MainISR(void)
{

// Verifying the ISR
IsrTicker++;
#if (BUILDLEVEL==LEVEL1)

rc1.TargetValue = SpeedRef1; // 0.25 

RC_MACRO(rc1)

rg1.Freq = rc1.SetpointValue;
RG_MACRO(rg1)
....
....
} // end of ISR


Viewing all articles
Browse latest Browse all 21636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>