添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
相关文章推荐
行走的弓箭  ·  电子书籍_·  5 月前    · 
坚韧的日光灯  ·  Python ...·  1 年前    · 

This message keeps showing up, when trying to upload the code to an Arduino Nano board:
Warning! Please install 99-platformio-udev.rules and check that your board’s PID and VID are listed in the rules.
https://raw.githubusercontent.com/platformio/platformio/develop/scripts/99-platformio-udev.rules

I followed the installation guide, but it does not make any difference. I have tried to place the “/99-platformio-udev.rules” file in “/etc/udev/rules.d/” and also tried “/lib/udev/rules.d/”, but it did not make any difference

My OS is Linux Mint 173, x64

Hope somebody have a solution :slight_smile:

Best regards, Brian

I get the same error. :slightly_frowning_face:

Warning! Your /etc/udev/rules.d/99-platformio-udev.rules are outdated. Please update or reinstall them.
Mode details: Redirecting...

I use Linux Disco dingo and installed the files .
Hope somebody have a solution!
Thank you!

I’m puzzled: I get the same warnings, the user is in dialout / plugdev and the system has been rebooted multiple times since installing the rules. Also, flashing works without a problem, just the message coming up anyway.

The file in .platformio/penv/lib/python2.7/site-packages/platformio/builder/tools/pioupload.py doesn’t look like that mentioned in @ivankravets patch but it was so long ago that a lot might have changed since then. I’m using vscode and pio 3.6.7 for the record.

I thought I had because I recalled reading about it during installation and because flashing works but honestly… if I had, now it’s gone so the odds are not exactly in my favour :wink:

Thanks for pointing it out. I also have a couple of rule files that I installed for OpenOCD, it’s quite likely one of them is the reason flashing works.

Yes, I copied the file and restart multiple time but the result is the same. The program works correctly but I’m get always the warning.
How can I verify the correctly useradding in dialout and plugdev?
Thanks!

If you type groups at a terminal, it will tell you what groups your username is in.

pfeerick@ASUS-H55D-ubuntu:~$ groups
pfeerick adm dialout cdrom sudo dip plugdev lpadmin sambashare
              

I’ll just add that I’ve got the same issue (although I seem to think it only started within the last couple of weeks), but hadn’t bothered doing anything about it as everything is working fine. PlatformIO, version 3.6.7, and I reapplied the udev rules last week. Ubuntu 19.04 also FFIW. There is no /lib/udev/rules.d/99-platformio-udev.rules so there’s no conflicting versions.

Anyone still having trouble, can you try the command from the FAQ to update your udev rules … (note: this is the copy of the udev rules from the develop branch, not the master branch, so may actually cause an ‘outdated udev rules’ message if you don’t currently have one…).

curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/develop/scripts/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules

… again, and see if you are still having trouble. I’m still on PlatformIO 3.6.7, but the warning seems to have gone away? Also, if you are still have the warning… can you please check the wording… Is it saying to install it, or that it is outdated - there are two different warnings that can be triggered/shown.

@ivankravets I do have the PIO ver Core 3.6.7. Where do i get the udev.rules for that version from?

Thanks

If I’m reading the specific function that does the outdated udev rules check right, (so you’re getting the ‘outdated’ rules message, not the ‘please install’ message?), it seems like the comparison is being done against the copy of the udev rules included at .platformio/penv/lib/python2.7/site-packages/scripts/ in your home directory… i.e. Linux: ~/.platformio/penv/lib/python2.7/site-packages/scripts/ or Windows: %USERPROFILE%/.platformio/penv/lib/python2.7/site-packages/scripts/

You can also compare it to this version, which is the one for 3.6.7 (it’s from the master branch, not the develop branch), and can be installed like :

curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/master/scripts/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules