Hi everyone,
I'm running an application on F28M36, where I use a file called config.h to choose values for a set of pre-defined names for the C28 core:
...
#define FONTE_MODO OnePS1Q // Topologia da fonte a ser controlada
#define MAX_SLEWRATE 9.0 // Slew-rate máximo [V/s]
#define PWM_MAX_DUTY 0.9 // Maximo ciclo de trabalho para o PWM (em p.u.)
#define PWM_MIN_DUTY 0.0 // Minimo ciclo de trabalho para o PWM (em p.u.)
#define PWM_MAX_DUTY_OL 0.8 // Maximo ciclo de trabalho para o PWM em malha aberta (em p.u.)
#define PWM_MIN_DUTY_OL 0.0 // Minimo ciclo de trabalho para o PWM em malha aberta (em p.u.)
...
My main code uses values from config.h for initialization of the whole application. My problem is that depending on the value of MAX_SLEWRATE, the C28 core is calling the default user defined trap # 11 (USER11_ISR(), from F28M36x_DefaultISR). For example, if MAX_SLEWRATE = 9.0, there is no problem, but if I set to 100000.0, I get the error.What is even stranger is the fact that the ISR is called before my main code uses this MAX_SLEWRATE. I'm not even using the TRAP instruction anywhere in my code.
Any suggestions?
