element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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
  • About Us
  • 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
Project14
  • Challenges & Projects
  • More
Project14
Forum Beaglebone AI uart enable
  • Blog
  • Forum
  • Documents
  • Theme Suggestions
  • Polls
  • Members
  • More
  • Cancel
  • New
Join Project14 to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 16 replies
  • Answers 1 answer
  • Subscribers 180 subscribers
  • Views 3601 views
  • Users 0 members are here
Related

Beaglebone AI uart enable

bhome
bhome over 5 years ago

Hi Everyone,

 

                           I am new to Beaglebone boards, I have Beaglebone AI, I am able to update its image and followed instructions on BeagleBone AI Survival Guide | element14 | Vision Thing , now I am not able to enable uart to check uart using loopback test, kindly help me out.

  • Sign in to reply
  • Cancel

Top Replies

  • bhome
    bhome over 5 years ago in reply to aswinvenu +1
    Hi, I have added above line in uEnv.txt file save it and reboot the system, and have got the result on bash window as below, debian@beaglebone:/var/lib/cloud9$ ls -l /dev/ttyO* lrwxrwxrwx 1 root root 5…
  • aswinvenu
    aswinvenu over 5 years ago in reply to bhome +1
    It's also a best practice to keep this as a different thread (Create a new thread in the forum). It will get better reach when others search for the same question. Regards, Aswin
  • aswinvenu
    0 aswinvenu over 5 years ago

    Are you talking about the serial debug port available on board or peripheral UART ports available on the cape?

    Please give some more information of what you are trying to do.

     

    BTW shabaz has written a really nice "Getting started" article last year. Please refer that as well. BeagleBone AI (BB-AI) - Getting Started

     

    Regards,

    Aswin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhome
    0 bhome over 5 years ago in reply to aswinvenu

    Thank you, sir,

                           I am able to read analog pins and run blink led code using Cloud9, now I start configuring UART for transmission and reception of data. but capemgr directory is missing in /sys/devices directory please help me on the same.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aswinvenu
    0 aswinvenu over 5 years ago in reply to bhome

    Did you enable the cape peripherals on the uboot config file?

    If no please enable that.

    go to vi /boot/uboot/uEnv.txt

    and enable the peripherals u want.

    cape_enable=capemgr.enable_partno=BB-UART1,BB-UART2,BB-UART4, BB-UART5

    Reboot the system and look for the new serial tty devices.

    ls -l /dev/ttyO*

     

    Let me know if this worked.

     

    Regards,

    Aswin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • bhome
    0 bhome over 5 years ago in reply to aswinvenu

    Yes sir,

                     i have tried with option but i am not getting cape_enable=capemgr.enable_partno=BB-UART1,BB-UART2,BB-UART4, BB-UART5  this in /boot/uboot/uEnv.txt.

    my uEnv.txt file looks like as below,

    Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0

     

     

    uname_r=4.14.108-ti-r135

    #uuid=

    dtb=am5729-beagleboneai-custom.dtb

    cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet

     

     

    #In the event of edid real failures, uncomment this next line:

    #cmdline=coherent_pool=1M net.ifnames=0 rng_core.default_quality=100 quiet video=HDMI-A-1:1024x768@60e

     

     

    ##enable Generic eMMC Flasher:

    #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3-no-eeprom.sh

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhome
    0 bhome over 5 years ago in reply to bhome

    Also i am getting some errors at below point while updating board using BeagleBone AI Survival Guide | element14 | Vision Thing

    Install BoneScript and setup a pin for use:

    cd /usr/local/lib⏎
    sudo npm install --unsafe-perm bonescript@0.7.4-beta1⏎
    node -pe "require('bonescript').bone.getPinObject('p9.15').ai.gpio"   (this sets up the pin in /sys/class/gpio)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aswinvenu
    0 aswinvenu over 5 years ago in reply to bhome

    Can you add this line to the end of the file ?

    cape_enable=capemgr.enable_partno=BB-UART1,BB-UART2,BB-UART4,

    and try??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhome
    0 bhome over 5 years ago in reply to aswinvenu

    Hi, I have added above line in uEnv.txt file save it and reboot the system, and have got the result on bash window as below,

     

    debian@beaglebone:/var/lib/cloud9$ ls -l /dev/ttyO*

    lrwxrwxrwx 1 root root 5 Jun 10 05:05 /dev/ttyO0 -> ttyS0

    lrwxrwxrwx 1 root root 5 Jun 10 05:05 /dev/ttyO5 -> ttyS5

    debian@beaglebone:/var/lib/cloud9$

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aswinvenu
    0 aswinvenu over 5 years ago in reply to bhome

    Hi Mahesh,

    Which means that serial O0 and O5 are enabled. Can you write some python script to test the echo feature ?

    Short the RX and TX pins using a jumper wire. Send and receive characters on the same UART.

    Regards,

    Aswin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • bhome
    0 bhome over 5 years ago in reply to aswinvenu

    Hi Aswin,

                   I have shorted RX and TX of UART5 which pin no. P9.11 and P9.13. and test on minicom, but I am not getting any echo when I have typed on keyboard. one more question that serialO5 is UART5 or anything else.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • aswinvenu
    0 aswinvenu over 5 years ago in reply to bhome

    Interesting! I think you have to change the pin musing in the device tree file.

    Follow this:

    https://github.com/beagleboard/beaglebone-ai/issues/37

    Also please confirm the pin mapping using "show-pins" command.

     

    Regards,

    Aswin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
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