user148332
Member since Aug 2022 • Last active Aug 2023Most recent activity
-
-
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/QMC5883L.min.js") error :
HTTP 404 ERROR: getURL("https://www.espruino.com/modules/QMC5883L.js")
error : HTTP 404 ERROR:
getURL("file:///Users/will/working/espruino/modules/QMC5883L.min.js")
error [object ProgressEvent] ERROR:
getURL("file:///Users/will/working/espruino/modules/QMC5883L.js")
error [object ProgressEvent] WARNING: [notify_warn] Module QMC5883L
not foundI 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?
-
-
- 8 comments
- 1,186 views
-
-
@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). -
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.
-
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('bootupdate.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?
And for anyone else I got it working locally with:
npm install -g http-server
http-server --cors ./