Skip to main content
robert
Associate
June 4, 2008
Question

UART Interrupt not working with Keil RTX

  • June 4, 2008
  • 5 replies
  • 1449 views
Posted on June 04, 2008 at 12:43

UART Interrupt not working with Keil RTX

This topic has been closed for replies.

5 replies

jmabe
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:50

Hi,

Has any of you resolve the problem with the interrupt enable?

I'm having the same problem as you both. No way to enable the interrupts.

First, with the example from the ST library UART (interrupt mode) only one interrupt happens, before the micro freezes.

Then, if I change the start up file STR9x.s, no interrupt happens.

Thank you

qing
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:50

Hi ,

I had the similar problem with you. I used the example code from st library called UART (interrupt mode). keil tool chain. UART0 interrupt only response once.I can't figure it out, please help.

Is this keil problem ?I attached the whole source codes.

Thanks

[ This message was edited by: qing.he on 20-03-2008 18:49 ]

robert
robertAuthor
Associate
May 17, 2011
Posted on May 17, 2011 at 09:50

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6oR&d=%2Fa%2F0X0000000bw2%2FVqHWGE2P1KDq8whomYAazLMs4m0ie_vlWEQ9TZ3yCek&asPdf=false
jmabe
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:50

Is that also true for the STR9 family?

If so, no way to use ST-like ISRs with the Keil's RTOS working?

So the ISRs should be set up with the Keil's format...

Thanks

jason239955_stm1_st
Visitor II
May 17, 2011
Posted on May 17, 2011 at 09:50

If you are using the Keil toolset with RTX O/S kernel, be sure to check out the following article

http://www.keil.com/support/man/docs/mcbstr7/mcbstr7_ex_swlib.htm

It suggests that RTX is not fully compatible with the libraries provided by STR7 Firmware Library due to interrupt handling issues.

This might explain what you are seeing ...