Changeset 78c84df in rtems

Timestamp:
06/10/10 13:10:00 (14 years ago)
Author:
Gerardo Puga <glpuga@…>
Branches:
4.11, 5, master
Children:
2b03a62
Parents:
35b8f48a
git-author:
Gerardo Puga <glpuga@…> (06/10/10 13:10:00)
git-committer:
Gedare Bloom <gedare@…> (01/09/14 14:44:14)
Message:

PR 1548: ERC32 console stops working when UART error flags are set

Problem:

The console works fine when only transmitting data from the ERC32, but stops
working after a while when receiving data.

"Stops working" means, bytes are neither sent nor received from the UART, but
the rest of the system keeps functioning (task are executing, the operative
system is responsive, etc).

Context:

  • When an RX error occurs, the ERC32 UARTS stop generating RX/TX interrupts

until the corresponding error flag in the UART_STATUS are cleared.

  • The console.c code currently cleans the error flags from the console_isr_x

subroutines, but those are NOT called when an RX error occurs. Thus the error
flag is never cleaned and then the UARTs stop generating interrupts
indefinitely.

  • The ERC32 UARTs generate a different interrupt when an RX error occurs.

Fixed by:

  • Adding a third interrupt service routine console_isr_error to handle the

UART_ERROR trap. This isr cleans the error flags of the channels.

  • Cleaning the error flags manually just after having initialized the interrupt

vectors. This is because if the error flag was already set by the time the
interrupt vectors are configured, the interrupts might never be called.

(No files)

Note: See TracChangeset for help on using the changeset viewer.