This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupts, EIC Nested Interrupts KEIL / ST differences

I have a reasonably stable program written using the TIM Example as an original basis( RV30\Examples\ST\STR73xLIB\TIM ).

Now I am experiencing problems with re-entering a UART interrupt when I dont want to ( recursion ).

I assume I am using the ST type interrupts as opposed to Keil type, and will happily change if this will make things easier, but I cant see why the 'I' mask is cleared as soon as I break on the interrupt routine - does the EIC module do it, or is there some header code doing it that I cant see.

I was under the impression that one had to clear the 'I' flag specifically if nested ints are required, but I certainly am not doing this myself.
It would be useful to understand whats going on before I move on.

TIA.

Parents
  • Thanks Mike;
    I have picked up support of this code while the programmer is on vacation. I'm trying to find my way through his code. It appears pretty clean.
    I followed your advice and made some strides. My A/D is not on the STR7 chip but is a high speed A/D driving some pre-processing in an FPGA. The FPGA interrupts the STR7 at 10mSec rate via the XTI. Servicing that interrupt take a couple of microsecs.
    I placed the UART0 function in a tight loop driving a simple ASCII data stream. Between the two there was no apparent problem. BUT, each time I attempt to use the keyboard my failure time is between 5 and 10 minutes of operation. So, I'm slowly defining the problem. I'm using the Keil versions of the STR71x Libs as suggested in the RTL manuals.
    Thanks again.
    Bradford

Reply
  • Thanks Mike;
    I have picked up support of this code while the programmer is on vacation. I'm trying to find my way through his code. It appears pretty clean.
    I followed your advice and made some strides. My A/D is not on the STR7 chip but is a high speed A/D driving some pre-processing in an FPGA. The FPGA interrupts the STR7 at 10mSec rate via the XTI. Servicing that interrupt take a couple of microsecs.
    I placed the UART0 function in a tight loop driving a simple ASCII data stream. Between the two there was no apparent problem. BUT, each time I attempt to use the keyboard my failure time is between 5 and 10 minutes of operation. So, I'm slowly defining the problem. I'm using the Keil versions of the STR71x Libs as suggested in the RTL manuals.
    Thanks again.
    Bradford

Children