- This topic has 0 replies, 1 voice, and was last updated 2 weeks, 2 days ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
(This message was transferred over from our old forum)
Posted August 19, 2015
By Todd DeBoer
[hr]
On 11/18/11 jgehret asked, “I’m trying to get UART2 working on the uEZGUI-2478-70WVE and I must be missing something simple.
In Config_Build.h, I define:
#define UEZ_ENABLE_UART2 UEZ_ENABLE_SERIAL
I declare the device:
T_uezDevice uart2;
Then I call:
UEZStreamOpen(“UART2″, &uart2);
I use UEZStreamWrite(…) to write to the port and UEZStreamRead(…) to read from it.
When I proceed as above, nothing happens. In addition, PCONP, PCLKSEL1, PINSEL0, PINSEL1, U2IER, U2FCR, and U2LCR are not set up. When I manually set these up, I get output. However, as soon as I input serial characters to the board, it locks up, probably because there is no buffer space.”
[hr]
(Follow up post)
Answered:
The PCONP and pins are definitely not being setup automatically in the LPC2478’s serial driver. You should not need to configure the U2 registers, though. I recommend you just setup PCONP, PCLKSEL (make it divide by 1), and do the pins in PNSELx. Leave the U2 registers along, and then call UEZStreamOpen