|
How many interrupts does RTX can be handle at the same time?Next Thread | Thread List | Previous Thread Start a Thread | Settings | Details | Message |
|---|
Read-Only Author Jack Yang Posted 20-Nov-2008 17:38 GMT Toolset ARM |  How many interrupts does RTX can be handle at the same time? Jack Yang Hi All, I am using MCB2300 board(LPC2368). If RTX can handle interrupts from 4 UARTs,2 CAN Ports and 1 USB port(4 endpoints) simultaneously? I tried RTX interrupt handle ablity like this: keeps sending characters from UART0(115200bps)to a PC, UART1 keeps sending characters to UART3, and UART3 sends back what it receives.CAN1 keeps sending data to CAN2 , and USB receives data from PC and sends button value to PC(USB works exactly same as RTL_HID USB example code, control 8 LEDs from PC and send button status to PC). I found if I do not run HID_Client software on PC side, my code works fine.when I run HID_Client my code works less than 1 minute and then stop at: PAbt_handle B PAbt_handle
in LPC2300.s Anybody knows what's wrong? it is nested interrupt problem? Thanks Jack | | Read-Only Author Per Westermark Posted 20-Nov-2008 18:25 GMT Toolset ARM |  RE: How many interrupts does RTX can be handle at the same time? Per Westermark Do you allow nested interrupts? Do you have any critical data structure that is used by multiple threads or by threads and interrupts or by multiple interrupts (if nested interrupts are allowed)? Have you verified the percentage of the processor that is needed to service all your interrupts? | | Read-Only Author Per Westermark Posted 20-Nov-2008 18:28 GMT Toolset ARM |  RE: How many interrupts does RTX can be handle at the same time? Per Westermark It may also have something to do with this thread: http://www.keil.com/forum/docs/thread13634.asp | | Read-Only Author JACK Yang Posted 20-Nov-2008 19:26 GMT Toolset ARM |  RE: How many interrupts does RTX can be handle at the same time? JACK Yang Hi Per Westermark, Thanks for your reply. 1.I am using RTX, that means nested interrupt enabled already, right? 2.No critical data structure is used. 3.I did not verify the percentage of the processor.Actually I do not know how to do this verification, could you explain to me? Thanks Jack | | Read-Only Author Per Westermark Posted 20-Nov-2008 22:22 GMT Toolset ARM |  RE: How many interrupts does RTX can be handle at the same time? Per Westermark Are you sure that nested interrupts are enabled? The main task for an RTOS is to switch to a new thread after an interrupt signals an event | | Read-Only Author JACK Yang Posted 21-Nov-2008 00:34 GMT Toolset ARM |  RE: How many interrupts does RTX can be handle at the same time? JACK Yang Hi Per Westermark, How to set nested interrupts are enabled by using RTX? could you please give me an example? I am so confused. Thanks Jack | | Read-Only Author Al Bradford Posted 21-Nov-2008 03:19 GMT Toolset ARM |  RE: How many interrupts does RTX can be handle at the same time? Al Bradford Jack; When you use RTX, it handles the interrupt nesting. Just be sure that you have all interrupt vectors defined in your start-up and as someone else pointed out, make sure that you have sufficient stack spaces defined before starting RTX. Bradford | |
Next Thread | Thread List | Previous Thread Start a Thread | Settings |
|