Other Parts Discussed in Thread: TMS320F28027
Hello, I am using Code Composer Studio Version 3.3.81.28 wtih BIOS 5.33.01 and Code Generation Tools v5.1.0.
My target chip is the TMS320F28027 and used emulator is the SD XDS510LC.
I have successfully integrated sample code for FIR, ADC, and PWM operation. However, when I add one line of code to my modified program, the compiler inserts a sequence of ITRAP0 statements into my assembled code, which then throw me to the ILLEGAL_ISR handler.
The line of code simply sets a register in the PWM module as follows: EPwm1Regs.DBCTL.bit.POLSEL = 2;
Without this line, my code appears to compile to sensible assembly. With this line, opcode 0000 (ITRAP0) is inserted a specific address and repeated about 5 times.
Please let me know what other information I may provide to help get me through this FRUSTRATING problem.
Thanks!