This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TMS320F28035: ISR_ILLEGAL while using DLOG_4Ch in DPL_ISR

Part Number: TMS320F28035


Tool/software: Code Composer Studio

Hii,

I had a working project on 28027 controller in which the DPL.asm file i used to get the DLOG_4ch initialization and DPL_ISR() for updating the DLOG buffers. 

when I conveted this project into 28035, I used the same file, DPL.asm (given below) to initialize the DLOG_4ch and dDPL_ISR() for updating the buffers. The program is running for 10s-30s and the buffers are updating and i can see the graphs also, but after sometime the program goes to ISR_ILLEGAL. The DPL.asm is given below.

;----------------------------------------------------------------------------------

;Gives peripheral addresses visibility in assembly
.cdecls C,LIST,"PeripheralHeaderIncludes.h"

;include C header file - sets INCR_BUILD etc.(used in conditional builds)

;Include files for the Power Library Maco's being used by the system
.include "PWMDRV_1ch.asm"
.include "ADCDRV_1ch.asm"
.include "ADCDRV_4ch.asm"
.include "PWMDRV_PSFB_VMC_SR.asm"
.include "CNTL_2P2Z.asm"
.include "DLOG_4ch.asm"
;=============================================================================
; Digital Power library - Initailization Routine
;=============================================================================

; label to DP initialisation function
.def _DPL_Init

; label to DP ISR Run function
.def _DPL_ISR

; dummy variable for pointer initialisation
ZeroNet .usect "ZeroNet_Section",2,1,1 ; output terminal 1

.text
_DPL_Init:
ZAPA
MOVL XAR0, #ZeroNet
MOVL *XAR0, ACC

; Initialize all the DP library macro used here
;---------------------------------------------------------
DLOG_4ch_INIT 1 ; DLOG_4CH Initialization
;---------------------------------------------------------
LRETR


.sect "ramfuncs"

_DPL_ISR: ;CONTEXT_SAVE

;-----------------------------------------------------------------------------------------

; call DP library modules


DLOG_4ch 1 ; Run the DLOG_4CH Macro

LRETR