element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • More
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • More
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • More
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • More
  • 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
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design Bluetooth issue with 1DX Murata module
  • Forums
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Avnet Boards Forums requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 10 replies
  • Answers 1 answer
  • Subscribers 42 subscribers
  • Views 491 views
  • Users 0 members are here
  • bluetooth
  • zedboard
  • wi-fi
  • lbee5kl1dx
  • 1dx pmod
  • 1dx
  • murata
Related

Bluetooth issue with 1DX Murata module

3d_srv
3d_srv over 1 year ago

Hello everybody,

 

I'm trying to enable Wi-Fi & Bluetooth connectivity to the ZedBoard, using the 1DX Wi-Fi/BT module (LBEE5KL1DX-883)

A complete tutorial has already been done here: Adding Wi-Fi and Bluetooth Connectivity to the ZedBoard using the Murata 1DX Pmod

 

I succeeded in enabling Wi-Fi, but I'm facing a persistent issue when I try to enable Bluetooth.

I'm using the Harware design provided here (Reference designs section): https://www.avnet.com/wps/portal/us/products/avnet-boards/avnet-board-families/zedboard/

 

 

Here is the script I run to enable Bluetooth:

 

And here is the issue (bluetooth LED is turned ON when the script is launched):

 

Is somebody able to know where I should go to fix this issue concerning hciattach?

 

Regards

  • Reply
  • Cancel
  • Cancel

Top Replies

  • bhfletcher
    bhfletcher over 1 year ago +2

    Looking at your block diagram, you are using a PL-based, AXI-uart16550 for your Bluetooth UART interface. However, assuming these old comments are accurate, you are pointing things to the PS-based UART0…

  • bhfletcher
    bhfletcher over 1 year ago in reply to 3d_srv +1

    Hopefully some of the other software experts can chime in. From what I can tell from your hardware block diagram, you are using a PL-based UART to connect to the Bluetooth. If the PL-based TTYS* device…

  • 3d_srv
    3d_srv over 1 year ago in reply to bhfletcher +1 verified

    Update:

     

    It's working, and it was exactly what I thought : if you want ttyS0 to appear you have to make sure the UART IP block is recognized. The problem is that it's not documented at all:

     

    UART…

  • bhfletcher
    0 bhfletcher over 1 year ago

    Looking at your block diagram, you are using a PL-based, AXI-uart16550 for your Bluetooth UART interface. However, assuming these old comments are accurate, you are pointing things to the PS-based UART0:

     

    I suggest you look at /dev/tty* and see what you actually have there.

     

    Bryan

    • Cancel
    • Up +2 Down
    • Reply
    • Verify Answer
    • Cancel
  • 3d_srv
    0 3d_srv over 1 year ago in reply to bhfletcher

     

    here is the list for /dev/tty. I guess it is initialising PS uart.


    Here is the patch for hciattach command. It is placed in /project-spec/recipe-connectivity/bluez5/bluez5/hciattach-reset-delay-bluez-5.41.patch

    Is this patch in the right folder in order to be taken into account?

     

    Could you please help me to understand the issue?

     

    Thanks

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • bhfletcher
    0 bhfletcher over 1 year ago in reply to 3d_srv

    Hopefully some of the other software experts can chime in. From what I can tell from your hardware block diagram, you are using a PL-based UART to connect to the Bluetooth. If the PL-based TTYS* device is not showing up in your /dev folder, then I'm guessing that is a devicetree issue, but again, that's not my area of expertise. If you are trying to use the PS-based UART to connect to the Bluetooth, then you need to change your block design.

     

    Bryan

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Cancel
  • 3d_srv
    0 3d_srv over 1 year ago in reply to bhfletcher

    So my problem is coming from the UART 16550 block which is not recognized and should be as /dev/ttyS0, isn't it?

     

    It seems that this block raised recent problems:

    https://forums.xilinx.com/t5/Embedded-Linux/Uart-16550-IP-not-showing-up-in-Petalinux/td-p/1187552

     

    I will check if "device tree based probing for 8250 ports" is enabled on the kernel config and I will give an update.

     

    Thanks for your help!

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • 3d_srv
    0 3d_srv over 1 year ago in reply to bhfletcher

    Update:

     

    It's working, and it was exactly what I thought : if you want ttyS0 to appear you have to make sure the UART IP block is recognized. The problem is that it's not documented at all:

     

    UART 16550 IP block needs some options available with petalinux-config -c kernel:

     

    - 8250/16550 and compatible serial support

         - Support 8250_core.* kernel options

         - DMA support for 16550 compatible UART controllers

     

    - Devicetree base probing for 8250 ports

     

    - Cadence (Xilinx Zynq) UART support

    - Cadence UART console support

     

    And then the hciattach function does not return any time out, and Bluetooth pairing works fine.

    Thank you bhfletcher for your precious help!

    • Cancel
    • Up +1 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • bhfletcher
    0 bhfletcher over 1 year ago in reply to 3d_srv

    That is great news! Thank you 3d_srv for sharing these valuable findings with the community!

     

    For anyone else that is interested in experimenting with the Murata 1DX Wi-Fi, this is the same radio that is native on the AES-MINIZED-7Z007-G MiniZed. Or you have the option of adding the AES-PMOD-MUR-1DX-G Pmod to any Pmod-capable board.

     

    Bryan

     

    Murata 1DX PmodMurata 1DX Pmod

    MiniZed with Murata 1DX RadioMiniZed with Murata 1DX Radio

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • zwabbit
    0 zwabbit 10 months ago

    Hey Lotfi, did you need to do anything special or different from the instructions on the guide you linked to get wifi working? I've gone through it with the 2020.2 petalinux tools and when the OS attempts to load the driver, I get:

     

    Direct firmware load for brcm/brcmfmac43430-sdio.bin failed with error -2

     

    The top of the guide has some remark about update for petalinux 2017.4, but it doesn't actually say anything about what if anything different we're supposed to do.

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • 3d_srv
    0 3d_srv 10 months ago in reply to zwabbit

    Hello,

     

    Nothing different has been done for Wi-Fi.

    Be careful with the firmware filenames and paths when you copy them into the rootfs:

     

    Wi-Fi --> /lib/firmware/brcm/

                                                 --> brcmfmac43430-sdio.bin

                                                 --> brcmfmac43430-sdio.txt

                                                 --> brcmfmac43430-sdio.xlnx,zynq-zed.txt (this one is the filename for the zedboard, try to copy the above .txt file and change the name)

     

    boot with the ZedBoard, and try to raise the wlan0 interface with "ifup wlan0"

    If it works , you should be able to see your interface with "ifconfig"

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • zwabbit
    0 zwabbit 10 months ago in reply to 3d_srv

    So, followup question. How did you get ahold of the firmware images in the first place?

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
  • 3d_srv
    0 3d_srv 10 months ago in reply to zwabbit

    You will find the latest 1DX Murata firmware here: https://github.com/murata-wireless

    • Cancel
    • Up 0 Down
    • Reply
    • Verify Answer
    • Cancel
Element14

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 © 2022 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube