Notifications
Clear all

[Solved] PlatformIO "No Device found" Problem

 

(@qassam-farhat)
Active Member
Joined: 3 years ago
Posts: 3
Topic starter  

Hello everybody, 

I'm trying to go through the RVfpga labs and have installed the software following the instructions in the latest version of the getting started guide. I want to upload the rvfpganexys.bit bitstream file into an FPGA board (Nexys 4) using PlatformIO IDE on both Linux and Windows, but I get the same error message on both systems: 

"Error: no device found

Error: unable to open ftdi device with vid 0403, pid 6010, description 'Digilent USB Device", serial '*' at bus location '*' "

Although the device gets detected normally and they work well when programmed with vivado tool, and the drivers are installed. 

Is there any suggestion that can help resolve this problem? 

please have a look at this screenshot:

 

error platformio

Thank you in advance 🙂

 

Qassam 

 

中文翻译:

我正在尝试浏览 RVfpga 实验室,并按照最新版本的入门指南中的说明安装了软件。 我想在 Linux 和 Windows 上使用 PlatformIO IDE 将 rvfpganexys.bit 比特流文件上传到 FPGA 板 (Nexys 4),但我在两个系统上都收到相同的错误消息:
 

"Error: no device found

Error: unable to open ftdi device with vid 0403, pid 6010, description 'Digilent USB Device", serial '*' at bus location '*' "

 
尽管设备被正常检测到,并且在使用 vivado 工具编程并且安装了驱动程序时运行良好。
 
有什么建议可以帮助解决这个问题吗?
 
请看一下这个屏幕截图:
error platformio
This topic was modified 1 year ago by Jingyang Liu

   
Quote
dchaver
(@dchaver)
Member Admin
Joined: 4 years ago
Posts: 95
 

Hi Qassam,

 

First, let me ask some questions:

- You're using a Nexys 4 DDR board, right? You mention Nexys 4 in your post, which is the same board without the DDR memory and which does not work with the provided bitstream (we have a bitstream for this board if you need it).

- Which Windows and Ubuntu version are you using?

- Which Vivado version are you using?

- Which VSCode and PlatformIO versions are you using?

 

Now, let me give you some hints to see if these are enough, or let me know if they are not and you need further help.

- In Ubuntu you should do the "Nexys A7 cable drivers installation" using the script "install_drivers" as explained in pages 10 and 11 of the GSG. Have you done this?

- In Windows the drivers used by Vivado and those used by PlatformIO are different. Appendix B explains how to install the drivers used by PlatformIO using Zadig. Have you done this? Appendix E explains how to revert the drivers back to the ones used by Vivado if this is necessary.

 

Let me know if you can solve your problems with these instructions or if you need anything else.

Best regards

Dani

 

中文翻译:

首先,让我问一些问题:
 
- 您使用的是 Nexys 4 DDR 板,对吧? 您在帖子中提到了 Nexys 4,这是同一块板,没有 DDR 内存,并且不能与提供的比特流一起使用(如果您需要,我们有该板的比特流)。
 
- 您使用的是哪个 Windows 和 Ubuntu 版本?
 
- 您使用的是哪个 Vivado 版本?
 
- 您使用的是哪个 VSCode 和 PlatformIO 版本?
 
 
 
现在,让我给您一些提示,看看这些是否足够,或者让我知道是否还不够并且您需要进一步的帮助。
 
- 在 Ubuntu 中,您应该使用脚本“install_drivers”进行“Nexys A7 电缆驱动程序安装”,如 GSG 第 10 和 11 页中所述。 你做过这个吗?
 
- 在 Windows 中,Vivado 使用的驱动程序和 PlatformIO 使用的驱动程序不同。 附录 B 解释了如何使用 Zadig 安装 PlatformIO 使用的驱动程序。 你做过这个吗? 附录 E 解释了如何在必要时将驱动程序恢复为 Vivado 使用的驱动程序。
 
 
 
如果您可以按照这些说明解决问题或者您需要其他任何信息,请告诉我。

 

This post was modified 1 year ago by Jingyang Liu

   
ReplyQuote
(@qassam-farhat)
Active Member
Joined: 3 years ago
Posts: 3
Topic starter  

Hi Dani, 

Thank you very much for your reply.

Yes, you are right; the board is "Nexys4 DDR". I'm using Windows 10 Enterprise LTSC (X64) and Redhat Linux (RHEL) version 7.9. My installed PlatformIO IDE version is v3.1.1, I also installed VScode from the provided links in the GSG ( https://code.visualstudio.com/Download#) both for Linux (.rpm) and for windows (X64). My vivado is the recommended version (2019.2), and it works well for both systems (when rolling the the drivers back to FTDI in Windows).   

I followed the GSG steps more than one time and installed the drivers for both systems. However, the error message suggests the name of the USB as "Digilent USB device" which is different from the name device I see when setting the drivers, as shown in the screenshot for zadig, it shows "Digilent Adept USB Device", I'm not sure if this could be the cause of the problem?  I checked the device manager for the "hardware ids" and I assume they are correct (vid 0403, pid 6010). (please have a look at the provided screenshots). I also tried running the VScode in superuser mode, but nothing changed. 

中文翻译:

非常感谢您的回复。
 
是的你是对的; 该板是“Nexys4 DDR”。 我使用的是 Windows 10 Enterprise LTSC (X64) 和 Redhat Linux (RHEL) 版本 7.9。 我安装的 PlatformIO IDE 版本是 v3.1.1,我还从 GSG ( https://code.visualstudio.com/Download#) 中提供的链接安装了适用于 Linux (.rpm) 和 Windows (X64) 的 VScode。 我的 vivado 是推荐版本 (2019.2),它适用于两个系统(在 Windows 中将驱动程序回滚到 FTDI 时)。
 
我不止一次按照 GSG 步骤安装了两个系统的驱动程序。 但是,错误消息表明 USB 的名称为“Digilent USB device”,这与我在设置驱动程序时看到的名称设备不同,如 zadig 的屏幕截图所示,它显示“Digilent Adept USB Device”,我' 我不确定这是否是问题的原因? 我检查了设备管理器中的“硬件 ID”,我认为它们是正确的(vid 0403,pid 6010)。 (请查看提供的屏幕截图)。 我也尝试在超级用户模式下运行 VScode,但没有任何改变。
hardware ids
devices
zadig usb driver installed
digilent adept usb device properties

Thanks again,  

 

Qassam 

This post was modified 1 year ago by Jingyang Liu

   
ReplyQuote
dchaver
(@dchaver)
Member Admin
Joined: 4 years ago
Posts: 95
 

Hi Qassam,

Let's see if we can resolve the problem in an easy way:

PlatformIO uses the following two scripts for uploading the bitstream on the board and for debugging a program (you can find them in your user directory):

      ~/.platformio/packages/framework-wd-riscv-sdk/board/nexys_a7_eh1/swervolf_nexys_program.cfg

      ~/.platformio/packages/framework-wd-riscv-sdk/board/nexys_a7_eh1/swervolf_nexys_eh1_debug.cfg

You can try to change the name provided to the board in those two files:

      Change line: ftdi_device_desc "Digilent USB Device"     for line: ftdi_device_desc "Digilent Adept USB Device"

Let us know if this solution resolves your problem.

中文翻译:

让我们看看是否可以用简单的方法解决这个问题:
 
PlatformIO 使用以下两个脚本将比特流上传到板上并调试程序(您可以在用户目录中找到它们):
 
       〜/.platformio/packages/framework-wd-riscv-sdk/board/nexys_a7_eh1/swervolf_nexys_program.cfg
 
       〜/.platformio/packages/framework-wd-riscv-sdk/board/nexys_a7_eh1/swervolf_nexys_eh1_debug.cfg
 
您可以尝试更改这两个文件中提供给板的名称:
 
       将行: ftdi_device_desc "Digilent USB Device" 更改为行: ftdi_device_desc "Digilent Adept USB Device"
 
请告诉我们此解决方案是否可以解决您的问题。

Best regards

Dani

 

This post was modified 1 year ago by Jingyang Liu

   
ReplyQuote
(@qassam-farhat)
Active Member
Joined: 3 years ago
Posts: 3
Topic starter  

Hi Dani, 

Yes, that fixed the problem! 

Thank you so much 🙂 

problem resolved

Qassam 


   
ReplyQuote
dchaver
(@dchaver)
Member Admin
Joined: 4 years ago
Posts: 95
 

Great news,  Qassam! Let us know if you have any other issues. 

Best regards

Dani


   
ReplyQuote