EmbDev.net

Forum: µC & Digital Electronics TC1796 can't disable global interrupts


von Peter B. (btech)


Rate this post
0 useful
not useful
Hello, using TC1796 microprocessor, can't disable and enable interrupts 
around critical sections of code.

Referring to the Tricore Architecture Volume 1 manual:
The processor is running in User-1. In this mode you should be able to 
disable and enable interrupts.
checked in debugger, register PSW.IO = 0x01, User-1 Mode, "Tasks at this 
level may disable interrupts." (quoting the above manual)

Using the following C code to enable/disable interrupts:
asm volatile ("enable" : : : "memory");
asm volatile ("disable" : : : "memory");
Stepping through these lines of assembler in the debugger, register 
ICR.IE (Global Interrupt Enable) is always set.

Why are global interrupts not being disabled?

von Lothar M. (lkmiller) (Moderator)


Rate this post
0 useful
not useful
Peter .. wrote:
> Stepping through these lines of assembler in the debugger, register
> ICR.IE (Global Interrupt Enable) is always set.
What debugger do you have?

> Why are global interrupts not being disabled?
Maybe the debugger needs an interrupt itself and so you cannot disable 
global interrupts during debugging...

von Peter B. (btech)


Rate this post
0 useful
not useful
Using the debugger "Trace32 Powerview for Tricore", ver 
R.2011.06.000032911.

I've been reading up on the Core Debug Controller in the Tricore 
Architecture Volume 1 manual (v1.3).  Ummm, doesn't say anything about 
using an interrupt for debugging.

When I find the solution I'll post it here...

von Peter B. (btech)


Rate this post
0 useful
not useful
Also checked the TC1796 errata.  Only related issue is CPU_TC.083 
"Interrupt may be taken following DISABLE instruction" where the 
workaround is add a nop after disable.  Checked and already have this in 
my code.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.