PlatformIO Community

macOS, VS + plaformio extension for Greenvawes GAPUINO GAP8 dev. board


#1

Hello,

I’ve installed Visual Studio Code 1.3.0, then the PlatformIO extension(Home 2.0.0 - Core 3.6.3).
After installation I imported the example project “190115-162614-gapuino-pulp-os-hello-world”.

The development board is seen by VS (seen in the Devices tab).
The Platforms tab shows RISC-V GAP

The compilation is going fine, but the code cannot be loaded to the target. Here is a copy of the messages in the Terninal tab:

> Executing task in folder 190115-162614-gapuino-pulp-os-hello-world: platformio run --target upload <

Processing gapuino (platform: riscv_gap; board: gapuino; framework: pulp-os)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https ://docs.platformio.org/page/boards/riscv_gap/gapuino.html
PLATFORM: RISC-V GAP > GAPUINO GAP8 development board
HARDWARE: 250MHz 8MB RAM (64MB Flash)
DEBUG: CURRENT(ftdi) ON-BOARD(ftdi)
Library Dependency Finder -> http ://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 0 compatible libraries
Scanning dependencies...
No dependencies
Checking size .pioenvs/gapuino/firmware.elf
Memory Usage -> http ://bit.ly/pio-memory-usage
DATA:    [          ]   0.0% (used 3764 bytes from 8388608 bytes)
PROGRAM: [          ]   0.0% (used 16660 bytes from 67108864 bytes)
Configuring upload protocol...
AVAILABLE: ftdi
CURRENT: upload_protocol = ftdi
Uploading .pioenvs/gapuino/firmware.elf

Traceback (most recent call last):
File "/Users/lva/.platformio/packages/tool-pulp_tools/bin/plpbridge", line 497, in <module>
bridge = db.get_bridge(config=config, verbose=args.verbose, binaries=binaries)
File "/Users/lva/.platformio/packages/tool-pulp_tools/python/bridge/debug_bridge.py", line 45, in get_bridge
return bridge_class(config=config, binaries=binaries, verbose=verbose)
File "/Users/lva/.platformio/packages/tool-pulp_tools/python/bridge/chips/gap.py", line 271, in __init__
super(gap_debug_bridge, self).__init__(config=config, binaries=binaries, verbose=verbose)
File "/Users/lva/.platformio/packages/tool-pulp_tools/python/bridge/default_debug_bridge.py", line 179, in __init__
self.module = ctypes.CDLL(fullpath)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 365, in __init__
self._handle = _dlopen(self._name, mode)
OSError: dlopen(/Users/lva/.platformio/packages/tool-pulp_tools/python/bridge/libpulpdebugbridge.so, 6): Library not loaded: @rpath/libftdi1.2.dylib
Referenced from: /Users/lva/.platformio/packages/tool-pulp_tools/python/bridge/libpulpdebugbridge.so
Reason: image not found

*** [upload] Error 1
=============================================================================== [ERROR] Took 0.94 seconds ===============================================================================
The terminal process terminated with exit code: 1

My system is Mojave 10.14.2 (18C54)


#2