You are reading a single comment by @JDowns and its replies. Click here to read the full conversation.
  • I'm evaluating Puck.js for a project that would require modifying existing custom firmware with jswrap. To get started I figured I would start with the basic steps of re-building the libraries.

    After following the instructions within /master/README_Building.md and installing BASH under Windows 10 I can successfully build for Espruino, but I am running into problems for cross compilation for Puck.js.

    sudo apt-get update
    sudo pip install nrfutil
    sudo apt-get install -y \
      lib32z1 lib32ncurses5
    wget https://launchpad.net/gcc-arm-embedded/5­.0/5-2016-q3-update/+download/gcc-arm-no­ne-eabi-5_4-2016q3-20160926-linux.tar.bz­2
    tar xjf gcc-arm-none-eabi-5_4-2016q3-20160926-li­nux.tar.bz2
    sudo mv gcc-arm-none-eabi-5_4-2016q3-20160926 /usr/local
    export PATH=/usr/local/gcc-arm-none-eabi-5_4-20­16q3/bin:$PATH
    cd ~/source/repos/github/espruino/Espruino
    make clean && DFU_UPDATE_BUILD=1 BOARD=PUCKJS RELEASE=1 make
    ls -l *puckjs*
    

    First I assume line 8 should read since that is the folder that is created from the prior step:
    sudo mv gcc-arm-none-eabi-5_4-2016q3 /usr/local

    The error I'm encountering during the build process:

    #@#:~/source/repos/github/espruino/Espru­ino$ make clean && DFU_UPDATE_BUILD=1 BOARD=PUCKJS RELEASE=1 make
    Cleaning targets
    Generating platform configs
    Generating pin info
    Generating JS wrappers
    WRAPPERSOURCES = src/jswrap_array.c src/jswrap_arraybuffer.c src/jswrap_dataview.c src/jswrap_date.c src/jswrap_error.c src/jswrap_espruino.c src/jswrap_flash.c src/jswrap_functions.c src/jswrap_interactive.c src/jswrap_io.c src/jswrap_json.c src/jswrap_modules.c src/jswrap_pin.c src/jswrap_number.c src/jswrap_object.c src/jswrap_onewire.c src/jswrap_pipe.c src/jswrap_process.c src/jswrap_promise.c src/jswrap_serial.c src/jswrap_spi_i2c.c src/jswrap_stream.c src/jswrap_string.c src/jswrap_waveform.c libs/math/jswrap_math.c libs/graphics/jswrap_graphics.c libs/network/jswrap_net.c libs/network/http/jswrap_http.c libs/network/js/jswrap_jsnetwork.c libs/bluetooth/jswrap_bluetooth.c libs/puckjs/jswrap_puck.c libs/crypto/jswrap_crypto.c libs/neopixel/jswrap_neopixel.c
    DEFINES = -DGIT_COMMIT=101dff8c97e2e12fdb90ad129a4­bdfb7a7dc11a6 -DNO_ASSERT -DRELEASE -DBUILDNUMBER="163" -DHAL_NFC_ENGINEERING_BC_FTPAN_WORKAROUN­D=1 -DUSE_BOOTLOADER -DUSE_DEBUGGER -DUSE_TAB_COMPLETE -DUSE_HEATSHRINK -DUSE_MATH -DUSE_GRAPHICS -DUSE_NET -DBLUETOOTH -DUSE_CRYPTO -DUSE_NEOPIXEL -DUSE_NFC -DNFC_HAL_ENABLED=1 -DSWI_DISABLE0 -DSOFTDEVICE_PRESENT -DNRF52 -DCONFIG_GPIO_AS_PINRESET -DS132 -DBLE_STACK_SUPPORT_REQD -DNRF_SD_BLE_API_VERSION=3 -DPUCKJS -DNRF52832 -DARM -DLINK_TIME_OPTIMISATION -DEMBEDDED
    CC libs/compression/heatshrink/heatshrink_e­ncoder.o
    /usr/local/gcc-arm-none-eabi-5_4-2016q3/­bin/arm-none-eabi-gcc: 1: /usr/local/gcc-arm-none-eabi-5_4-2016q3/­bin/arm-none-eabi-gcc: Syntax error: word unexpected (expecting ")")
    make: *** [libs/compression/heatshrink/heatshrink_­encoder.o] Error 2
    make: *** Waiting for unfinished jobs....
    make: *** wait: No child processes.  Stop.
    

    Any help would be appreciated.

    Regards

About

Avatar for JDowns @JDowns started