Giter Club home page Giter Club logo

Comments (6)

ivankravets avatar ivankravets commented on June 8, 2024

How is it possible if there is package dependency? https://github.com/sipeed/platform-gd32v/blob/master/platform.json#L72

from platform-gd32v.

maxgerhardt avatar maxgerhardt commented on June 8, 2024

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

# Add special DFU header to the binary image
env.AddPostAction(
join("$BUILD_DIR", "${PROGNAME}.bin"),
env.VerboseAction(
" ".join([
join(platform.get_package_dir(
"tool-dfuutil") or "", "bin", "dfu-suffix"),
"-v %s" % vid,
"-p %s" % pid,
"-d 0xffff", "-a", "$TARGET"
]), "Adding dfu suffix to ${PROGNAME}.bin"))

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.

Code7R avatar Code7R commented on June 8, 2024

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.

jershell avatar jershell commented on June 8, 2024

ubuntu 20.04 (long time support) i have the same error.
How to reproduce

  1. Install ubuntu 20.04.1 from iso by usb flash
  2. install platformIO on vscode
  3. 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.

racerxdl avatar racerxdl commented on June 8, 2024

Same problem here with ubuntu 20.04 but pio run -t upload worked.

from platform-gd32v.

ivankravets avatar ivankravets commented on June 8, 2024

Resolved in https://github.com/sipeed/platform-gd32v/releases/tag/v1.2.1

from platform-gd32v.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.