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.
Hi,
I was using two buck converters in parallel and the Top Buck Converter is working well.
Now, I copied the control code of the Top Buck converter and used for bottom-buck converter with different names.
Build Done Successfully but after debugging it shows the following error.
Please help me
(Error -1142 @ 0x0)
Device blocked debug access because it is currently executing non-debuggable code. Choose 'Rude Retry' to disable polite mode and force the operation.
(Emulation package 8.4.0.00006)
Thank You
Hello Seelam,
Please provide more detail.
What is used to control the Converters?
What complier or tool is producing the error message?
Thank you,
~Leonard
Hi,
I was using 2 voltage PI controllers and 4 current PI controllers.
I am using Code Composer Studio.
I attached the controller code.
If I comment "Voltage controller 1 and Current controller 2&3 or Voltage controller 2 and Current controller 3&4", then it is working well.
Please help me.
Hi Seelam,
Did you set any breakpoint in the ISR code? You might try to reload the program and disable all of the breakpoints by clicking "view" on CCS menu, and select "breakpoints", and then "disable all breakpoints" on breakpoints window.
Or are you using real-time mode when debugging? This may also cause this error. Thanks.
Han
I solved it by creating the subroutine in the interrupt.
But now, In the interrupt, any two subroutines are not working.
I have attached the figure for the better understanding:
I tried in the following cases:
1. comment any two subroutines in the interrupt then it is working well but I want to use all the subroutines.
2. Use two interrupts, share the subroutines in the two interrupts still not working. Need to comment on any two sub routines.
3. Using Epwm interrupt is still the same problem as the first one.
For the above three cases not working in the sense. Relays are not turning on and fans are not running.
4. I increased the interrupt time to 5ms (the above three cases are at 0.05msec). Now it is working (like relays and fans) but PI controllers are not working as before and the DC converter fails to provide the specific voltages almost zero.
Please provide me with the solution.
Many Thanks,
Prabhu
Seelam,
Can you advise if the original issue is still in play? The typical reason for the non debuggable code issue is that the C28x is only capable of setting 2 BP in flash memory since it has to use HW resources to do so. Single stepping inside of flash code will use 1 of these resources always.
A different soln would be to place some of your code in RAM, so that CCS can simply set a SW breakpoint by inserting an instruction(this is why it can't use SW BP in flash). Perhaps you could re-located the functions that need debugging to RAM and try this out.
Best,
Matthew
Hi,
I got you but what I understood from my program is...
The interrupt I am using is 0.05msec and the program written in the interrupt required a bit long time to execute it.
Now, the problem with the interrupt time, and I changed it to 0.1msec.
Finally, it's working well.
Thank you