• Skip to primary navigation
  • Skip to main content
FDI: Future Designs, Inc.

FDI

Future Designs, Inc.

  • Products
    • μEZ GUI
    • ELI
    • ΣyG
    • Modular Development Kits – DK
    • Other Products
    • End of Life
    • All Products (By part number)
  • Engineering Design
  • Production
  • Support
    • Forums
  • About FDI
    • News
    • Management
    • Partners
    • Distributors
    • Practices
    • Careers
    • New Customer Referral
  • Contact Us
  • Show Search
Hide Search

Geting UART2 Working

Homepage › Forums › μEZ › Software › Geting UART2 Working

  • This topic has 0 replies, 1 voice, and was last updated 10 months, 2 weeks ago by Logan Moon.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • February 6, 2025 at 10:30 pm #16834
    Logan Moon
    Keymaster

      (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

    • Author
      Posts
    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.
    Log In

    Partners

    NXP
    Renesas

    ARM
    SEGGER

    STMicroelectronics
    SAFERTOS

    FreeRTOS

    Copyright © 2025 Future Designs, Inc. | μEZ GUI | ELI | Engineering Design | Production | Privacy Policy | Log in