- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Apologies if the solution is elsewhere but my search-fu is in failure mode. I have a UART using the internal interrupt mode (set in the schematic) due to using a large-ish memory buffer. My problem is trying to o/p a debug dump on a HardFault, and since the UART interrupts are of lower priority they don't run and I see no chars o/p.
Is it possible to reconfigure at runtime from internal interrupt buffer to just use the basic hardware (~16 char) fifo? I can't change the configuration, and my first alternative is to tweak the return address from the handler and do the dump stuff in std mode.
All the best,
Gareth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum, Gareth.
No, the choice of using internal buffer and interrupt cannot be reverted a t run-time.
You may of course provide your own algorithm which puts character-by-character into the transmitter register and waits for fifo getting empty again.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can configure the interrupt priorities (in the design-wide resources). AFAIK its not possible to change the buffer size and the interrupt usage on run-time.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ah. Thanks for the info, appreciated.
-Gareth