element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum Linux : Where is UART's
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 9 replies
  • Subscribers 24 subscribers
  • Views 2377 views
  • Users 0 members are here
Related

Linux : Where is UART's

Former Member
Former Member over 11 years ago

Hi,

I have installed Linux in the RiotBoard.

i would like use UART's in Expansion Port (UART3, UART4 and UART5)

 

I have found :

- UART3 on / dev/ttymxc2

- Debug port on /dev/ttymxc1

 

I don't know where is connected /dev/ttymxc0 and search others Serial port : UART4 & 5

  • Sign in to reply
  • Cancel
Parents
  • Former Member
    Former Member over 11 years ago

    I'm interested in the UARTS myself.  I need RS232 support with CTS,RTS,DCD,and DTR.  Are these UARTS TTL or RS232 levels?  Is there support for the hardware control signals?

     

    Thanks,

    Chris

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    i don't found support with CTS,RTS,DCD,and DTR (maybe by GPIO)

     

    however, I can confirm that the signal level is TTL for all UART

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Hello,

     

    Finaly I foud a solution to make UART 4&5 working.

    I will try to write simple guide, how to achieve that.

     

    Thanks to xizhou wang I was able to find the way how to do that.

     

    1. In schematics http://www.element14.com/community/servlet/JiveServlet/previewBody/65504-102-1-287949/RIoTboard_Schematics.pdf on page 8 you can find how the UART 4&5 are pinned.  

     

    So in file /linux-imx/arch/arm/mach-mx6/board-mx6dl_riot.h you have to add UART4&5

     

    #if 0
            /* UART1 for debug */
            MX6DL_PAD_CSI0_DAT10__UART1_TXD,
            MX6DL_PAD_CSI0_DAT11__UART1_RXD,
    #else
            /* UART2 for debug */
            MX6DL_PAD_EIM_D26__UART2_TXD,
            MX6DL_PAD_EIM_D27__UART2_RXD,
    #endif
            /* UART3 */
            MX6DL_PAD_EIM_D24__UART3_TXD,
            MX6DL_PAD_EIM_D25__UART3_RXD,
    
            /********************** ADDED ***********************/
            /* UART4 */
            MX6DL_PAD_KEY_COL0__UART4_TXD,
            MX6DL_PAD_KEY_ROW0__UART4_RXD,
    
            /* UART5 */
            MX6DL_PAD_KEY_COL1__UART5_TXD,
            MX6DL_PAD_KEY_ROW1__UART5_RXD,
            /***************************************************/

           

    2. Then in /linux-imx/arch/arm/mach-mx6/board-mx6q_riot.c you have to initialize UART 4&5

     

    static inline void mx6q_riot_init_uart(void)
    {
            imx6q_add_imx_uart(0, NULL);
            imx6q_add_imx_uart(1, NULL);
            imx6q_add_imx_uart(2, NULL);
             
    /********************** ADDED ***********************/
            imx6q_add_imx_uart(3, NULL);
            imx6q_add_imx_uart(4, NULL);
    /***************************************************/
    }

     

    And now you have to recompile the kernel and flash it to your RiotBoard.

    After that you will have:

     

    /dev/ttymxc0 - still don't know what is for image

    /dev/ttymxc1 - debug serial port

    /dev/ttymxc2 - UART3

    /dev/ttymxc3 - UART4

    /dev/ttymxc4 - UART5

     

    Hope it will help

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Marek Czudek wrote:

     

    /dev/ttymxc0 - still don't know what is for

    it's hooked up to the OpenSDA debugger via U26 on p20 of the schematics.  Some info on OpenSDA is available here https://www.pemicro.com/opensda/ and the user guide http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf

     

    It's briefly mentioned on p33 of the user manual with the note at the bottom of the page that says

    The RIoTboard has hardware to support Freescale’s OpenSDA interface. Currently this

    interface has not been enabled in software

    so apparently ttymxc0 is unusable as the OpenSDA hardware appears to be the only way to get to it and for some unknown reason it has no software support.

     

    Indeed, following the instructions from the OpenSDA user manual gets no response. No usb storage device appears. You'd have to assume therefore that whatever firmware is supposed to be loaded onto the Kinetis K20 is missing.  Only a guess, but loading it may take jtag onto the un-populated J17.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 11 years ago in reply to Former Member

    Marek Czudek wrote:

     

    /dev/ttymxc0 - still don't know what is for

    it's hooked up to the OpenSDA debugger via U26 on p20 of the schematics.  Some info on OpenSDA is available here https://www.pemicro.com/opensda/ and the user guide http://cache.freescale.com/files/32bit/doc/user_guide/OPENSDAUG.pdf

     

    It's briefly mentioned on p33 of the user manual with the note at the bottom of the page that says

    The RIoTboard has hardware to support Freescale’s OpenSDA interface. Currently this

    interface has not been enabled in software

    so apparently ttymxc0 is unusable as the OpenSDA hardware appears to be the only way to get to it and for some unknown reason it has no software support.

     

    Indeed, following the instructions from the OpenSDA user manual gets no response. No usb storage device appears. You'd have to assume therefore that whatever firmware is supposed to be loaded onto the Kinetis K20 is missing.  Only a guess, but loading it may take jtag onto the un-populated J17.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube