Comments (6)
How is it possible if there is package dependency? https://github.com/sipeed/platform-gd32v/blob/master/platform.json#L72
from platform-gd32v.
This is a 100% reproducable though on Ubuntu 20 for me though.
rm -rf ~/.platformio/packages/tool-dfuutil/
git clone https://github.com/sipeed/platform-gd32v.git
cd platform-gd32v/examples/longan-nano-blink/
echo "upload_protocol = dfu" >> platformio.ini
pio run
gives
Processing sipeed-longan-nano (platform: gd32v; framework: gd32vf103-sdk; board: sipeed-longan-nano)
--------------------------------------------------------------------------------
Platform Manager: Installing gd32v
Platform Manager: gd32v @ 1.2.0 has been installed!
Tool Manager: Installing framework-gd32vf103-sdk @ ~1.0.0
Tool Manager: framework-gd32vf103-sdk @ 1.0.0 has been installed!
Tool Manager: Installing toolchain-gd32v @ ~9.2.0
Unpacking [####################################] 100% 08
Tool Manager: toolchain-gd32v @ 9.2.0 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/gd32v/sipeed-longan-nano.html
PLATFORM: GigaDevice GD32V (1.2.0) > Sipeed Longan Nano
HARDWARE: GD32VF103CBT6 108MHz, 32KB RAM, 128KB Flash
DEBUG: Current (altera-usb-blaster) External (altera-usb-blaster, gd-link, jlink, rv-link, sipeed-rv-debugger, um232h)
PACKAGES:
- framework-gd32vf103-sdk 1.0.0
- toolchain-gd32v 9.2.0
LDF: Library Dependency Finder -> http://bit.ly/configure-pio-ldf
..
Checking size .pio/build/sipeed-longan-nano/firmware.elf
Adding dfu suffix to firmware.bin
sh: 1: bin/dfu-suffix: not found
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 7.0% (used 2310 bytes from 32768 bytes)
Flash: [= ] 5.0% (used 6572 bytes from 131072 bytes)
*** [.pio/build/sipeed-longan-nano/firmware.bin] Error 127
Here the build process uses tool-dfuutil
. See
platform-gd32v/builder/main.py
Lines 151 to 161 in d312b94
But the installation of that is only triggered for me when I do a pio run -t upload
:
$ pio run -t upload
Processing sipeed-longan-nano (platform: gd32v; framework: gd32vf103-sdk; board: sipeed-longan-nano)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Tool Manager: Installing tool-gd32vflash @ ~0.1.0
Tool Manager: tool-gd32vflash @ 0.1.0 has been installed!
Tool Manager: Installing tool-dfuutil @ ~1.9.200310
Tool Manager: tool-dfuutil @ 1.9.200310 has been installed!
so there's just a problem when this package is installed, I think.
from platform-gd32v.
No idea how this is possible but this is also reproducible on one of the Debian Unstable systems here. One works, another does not, getting this "tool-dfuutil not found" bug.
from platform-gd32v.
ubuntu 20.04 (long time support) i have the same error.
How to reproduce
- Install ubuntu 20.04.1 from iso by usb flash
- install platformIO on vscode
- create new project and try to build
...error
Adding dfu suffix to firmware.bin
sh: 1: bin/dfu-suffix: not found
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [= ] 7.3% (used 2380 bytes from 32768 bytes)
Flash: [= ] 10.9% (used 14294 bytes from 131072 bytes)
*** [.pio/build/sipeed-longan-nano/firmware.bin] Error 127
update: After upload, I look on try upload without build firmware and installation missing packages. I think this action should be before the build.
from platform-gd32v.
Same problem here with ubuntu 20.04 but pio run -t upload
worked.
from platform-gd32v.
Resolved in https://github.com/sipeed/platform-gd32v/releases/tag/v1.2.1
from platform-gd32v.
Related Issues (20)
- Download and no effect! HOT 1
- undefined reference usbd_*** HOT 5
- Check out our demo
- gd32v v1.1.1 breaks RV-LINK debugging HOT 3
- Example programs don't run when using dfu download HOT 24
- Arduino doesn't include "Serial" object
- How to compile programs for sipeed lognan nano standalone HOT 1
- [Feature Request] GD32F130G6U6 support HOT 4
- Problem with building "Error: illegal operands `addi sp,sp,-20*(1<<2)-20*FPREGBYTES'" HOT 1
- Three color LED flashing HOT 1
- UnknownPackageError triggered on Ubuntu 16 i686 HOT 1
- dfu-util Error: 74 -- please update dfu-util HOT 3
- Support Sipeed RV-Debugger Lite debug probe HOT 3
- [Feature Request]: Please add support for sipeed RV Debugger plus BL702 for upload and debugging
- How to setup a development environment for rust in Win10 + WSL2 + VSCode for Longan nano GD32 Risc-V development board
- Doesn't show external crystal clock's status in RCU_CTL register.
- Update SDK HOT 1
- Uploading with Sipeed RV-Debugger Plus gets stuck HOT 1
- Platformio can't install platform HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform-gd32v.