The setup is the following :
- a stratix II GX hosts a Nios IIe
- one timer running continuously at a period of 1s, priority level 6,
the handler for this interrupt has some functions calls to usleep and
performs polling, this handler is made interruptible via the use of
the alt_irq_interruptible and alt_irq_noninterruptible pair of
functions
- one hw interrupt generates an interrupt every 500 us with a prioity
level 2 a uart running at 115 kbauds using the small driver
implementation (no interrupt)
- the main function of the C program is waiting forever for characters
to come in via the uart and when a command is received it processes it
and gets back to expecting a new command forever
With this setup it seems that the uart does not work well. When I
pause the program after noticing it does not respond the program is
almost always located in the usleep function called from the low
priority interrupt handler. Is there anything in the setup described
that is bad design ? What am i missing ? All ideas are welcome !
Best regards,
JF