Avatar for user148332

user148332

Member since Aug 2022 • Last active Aug 2023
  • 2 conversations
  • 8 comments

Most recent activity

  • in General
    Avatar for user148332

    And for anyone else I got it working locally with:

    npm install -g http-server
    http-server --cors ./

  • in General
    Avatar for user148332

    Found it:

    • using the https url I am seeing a CORS error in the javascript console.
    • using the file: url I am seeing "Not allowed to load local resource" error in the javascript console.
  • in General
    Avatar for user148332

    I have just moved from the Chrome Web App to using https://www.espruino.com/ide/ and I can't load my custom modules.

    I have added to "Settings > Communications > Module URL" however on upload the modules are not found and the console reports:

    Loading modules loadModule(QMC5883L) ERROR: getURL("https://www.espruino.com/modules/QMC5883­L.min.js") error :
    HTTP 404 ERROR: getURL("https://www.espruino.com/modules/QMC5883­L.js")
    error : HTTP 404 ERROR:
    getURL("file:///Users/will/working/espru­ino/modules/QMC5883L.min.js")
    error [object ProgressEvent] ERROR:
    getURL("file:///Users/will/working/espru­ino/modules/QMC5883L.js")
    error [object ProgressEvent] WARNING: [notify_warn] Module QMC5883L
    not found

    I have also tried from an https:// address and get the same error. The URL, both file: and https:, are working from another tab in the same brower (Chrome on MacOS).

    Anyone know what I am doing wrong?

  • in Other Boards
    Avatar for user148332

    I have a build working based of the NRF52840DK.py and changing the console to bluetooth.

    Any thoughts or points on how to get the console going on the built in USB as a serial device?

    I have tried the 'EV_USBSERIAL' without any luck, is that working on any of the other nRF52840 boards?

  • in Bangle.js
    Avatar for user148332

    That worked, thanks for the help.

  • in Bangle.js
    Avatar for user148332

    @fanoush, the peek did print 21 however flashing it with PUCKJS or MDBET42Q didn't help.
    Do you know where it is being reconfigured back as a reset pin? (I am happy to hack and build my own binary to figure it out).

  • in Bangle.js
    Avatar for user148332

    I tried the IDE commands...

    >require("Storage").eraseAll()
    =undefined
    >require("Storage").write("hello","World­")
    FW addr 0x00000000 fail
    Status 255
    FW addr 0x00000020 fail
    Status 255
    Uncaught InternalError: Timeout on jshFlashWrite
     at line 1 col 41
    require("Storage").write("hello","World"­)
                                            ^
    >require("Storage").read("hello")
    =undefined
    > 
    

    It was working when it when away, I'll try totally flattening the battery.

    Thanks for the help.

  • in Bangle.js
    Avatar for user148332

    I have an old BangleJS 1 that I am trying to use again. I installed the latest firmware 2v15 and tried to installed the default apps.

    It is happy having the time set, refreshing the installed app list (none) but it seem to be timing out installing the first default app (bootloader).

    From the browser console...

    <BLE> Device Name:       Bangle.js 7c0f
    puck.js:410 <BLE> Device ID:         VPRhxE6xGa1cqWh73qotbA==
    puck.js:410 <BLE> Connected
    comms.js:204 <COMMS> Ctrl-C gave ""
    comms.js:250 <COMMS> getDeviceInfo {currentTime: 1660693185000, version: '2v14', id: 'BANGLEJS', apps: Array(0)}
    ui.js:86 <TOAST>[warning] You're using an old Bangle.js firmware (2v14) and 2v15 is available (<a href="http://www.espruino.com/ChangeLog"­ target="_blank">see changes</a>). You can update <a href="https://www.espruino.com/Bangle.js­#firmware-updates" target="_blank">with the instructions here</a>
    index.js:828 Current device time is Wed Aug 17 2022 09:39:45 GMT+1000 (Australian Eastern Standard Time)
    index.js:834 SETTINGS.settime=true and >2 seconds out - updating time
    comms.js:146 <COMMS> uploadApp: .boot0, .bootcde, bootupdate.js, boot.info
    comms.js:41 <COMMS> reset
    comms.js:43 <COMMS> reset: got "\u001b[?7l\r\n ____                 _ \r\n|  __|___ ___ ___ _ _|_|___ ___ \r\n|  __|_ -| . |  _| | | |   | . |\r\n|____|___|  _|_| |___|_|_|_|___|\r\n         |_| espruino.com\r\n 2v14 (c) 2021 G.Williams\r\n\r\n>"
    comms.js:49 <COMMS> reset: rebooted - sending commands to clear out any boot code
    comms.js:52 <COMMS> reset: complete.
    comms.js:18 <COMMS> showMessage "Uploading\nboot..."
    comms.js:29 <COMMS> getProgressCmd START
    comms.js:171 <COMMS> Upload .boot0 => "// Initially this runs and rewrites itself\neval(require('Storage').read('bo­otupdate.js'));\n"
    comms.js:29 <COMMS> getProgressCmd 1%
    comms.js:80 <COMMS> Response:  ""
    comms.js:93 <COMMS> Blank line received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    comms.js:97 <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    comms.js:97 <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    comms.js:97 <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    comms.js:97 <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    comms.js:97 <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    

    ... for a while then ...

    <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  undefined
    comms.js:97 <COMMS> No response received - ignoring...
    comms.js:80 <COMMS> Response:  "FW addr 0x00000000 fail\r"
    banglejs.com/:1 Uncaught (in promise) Unexpected response "FW addr 0x00000000 fail"
    

    I have also tried ti with 2v10 and 2v14 (same problem installing the apps).

    Any ideas?

Actions