Platformio
用于开发硬件板子的开发程序. 将C++或者汇编语言编译, 然后烧录到硬件板子中.
这个是Computer Architecture课程的project需要用到的内容, 目前已经遗忘
how to use platformio
使用pip或者scripts下载:
e.g. pip:
pip install platformio然后, 运行platformio:
python -m platformio home然后可以在主文件夹下找到一个隐藏文件夹: ~/.platformio
如果不想通过longan nano进行开发, 可能会需要往这个文件夹中添加一些拓展
and also, you may wan’t to use penv/bin/pio to develop, such as:
pio homePermission problem
# UDEV Rules for Arduino UNO R4 boards
#
# This will allow reflashing with DFU-util without using sudo
#
# This file must be placed in:
#
# /etc/udev/rules.d
#
# After this file is installed, physically unplug and reconnect the device.
#
# Arduino UNO R4
# --------------
#
SUBSYSTEMS=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", GROUP="plugdev", MODE="0666"
SUBSYSTEMS=="usb_device", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", GROUP="plugdev", MODE="0666"
#
# If you share your linux system with other users, or just don't like the
# idea of write permission for everybody, you can replace MODE:="0666" with
# OWNER:="yourusername" to create the device owned by you, or with
# GROUP:="somegroupname" and mange access using standard unix groups.
#使用上面的脚本,并保存到/etc/udev/rules.d/<name:platformio-sudo>.rules这里面
这个脚本中,两个地址是运行./dfu-util --list中,Cannot open ...的时候显示的地址。如:
dfu-util: Cannot open DFU device 28e9:0189