-
And here is the log when I connect with openocd:
Open On-Chip Debugger 0.11.0+dev-00515-g1ad6ed38b (2021-12-02-15:52) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html DEPRECATED! use 'adapter driver' not 'interface' DEPRECATED! use 'bcm2835gpio peripheral_base' not 'bcm2835gpio_peripheral_base' DEPRECATED! use 'bcm2835gpio speed_coeffs' not 'bcm2835gpio_speed_coeffs' DEPRECATED! use 'bcm2835gpio swd_nums' not 'bcm2835gpio_swd_nums' DEPRECATED! use 'adapter speed' not 'adapter_khz' Info : BCM2835 GPIO JTAG/SWD bitbang driver Info : clock speed 1004 kHz Info : SWD DPIDR 0x2ba01477 Info : nrf52840.cpu: Cortex-M4 r0p1 processor detected Info : nrf52840.cpu: target has 6 breakpoints, 4 watchpoints Info : starting gdb server for nrf52840.cpu on 3333 Info : Listening on port 3333 for gdb connections Error: Wrong parity detected Error: Wrong parity detected Info : SWD DPIDR 0x2ba01477 Info : SWD DPIDR 0x2ba01477 Info : SWD DPIDR 0x2ba01477 Error: Wrong parity detected Error: Wrong parity detected Info : SWD DPIDR 0x3ba01476 Error: Wrong parity detected Info : SWD DPIDR 0x2ba0146f Error: Wrong parity detected Error: Could not find MEM-AP to control the core Info : SWD DPIDR 0x2ba01477 Error: Target not examined, reset NOT asserted! Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections > targets TargetName Type Endian TapName State -- ------------------ ---------- ------ ------------------ ------------ 0* nrf52840.cpu cortex_m little nrf52840.cpu halted > flash banks #0 : nrf52840.flash (nrf5) at 0x00000000, size 0x00000000, buswidth 1, chipwidth 1 #1 : nrf52840.uicr (nrf5) at 0x10001000, size 0x00000000, buswidth 1, chipwidth 1
--> No idea why it tells me. that there are 6 breakpoints and 4 watchpoints...
-
Hi @Gordon,
I'm now connected via SWD and my RPI. I can successfully read registers, and the target shows me "nrf52840.cpu, cortex_m". So I think the connection should be fine right?
I tried to read the flash into a file via
flash read_bank 0 bank0.bin
, but I only get the message "Couldn't read CONFIGID register"
Do you know how I can now read the flash such that I can provide the hex file to you?
For writing I will then use "nrf5 mass_erase" followed by "flash write_image YOUR_HEX_FILE" right?Thanks a lot,
David -
-
@Gordon one more question - where do I find the hexfiles for banglejs2 - I would guess I need one for the bootloader and one for the system right? I found the binaries here (https://www.espruino.com/Download) but I think those are only for loading via the WebIDE right?
Thanks a lot, David
-
Really interesting @Fteacher,
but in my case, the Bangle not shows up as a Bluetooth device and I can not connect to it with any device... not sure if its the same problem - nevertheless, I will report here again after I hve written a new Bangle.js image onto my device.
Cheers, David
-
-
Hi @Gordon,
Right now, if it's not a hardware failure (which seems amazingly unlikely)
I honestly also don't think that it's a hardware failure - BLE i part of nRF52840 right? So probably the whole Bangle won't work right?
It depends how willing to get deep into this you are, but you could wire up an SWD connection
Sure I'm definitely interested to get deeper into this :D Unfortunately, I don't have an nRF52DK in my equipment - but a Raspberry Pi :) So I will try to connect the RPI to my BangleJS and read all of flash memory. I don't have too much experience with this - but I used AVR ISP for a while and I would guess the procedure is the same right?
I connect my RaspberryPI with Gnd, SWDCLK and SWDIO and then use OpenOCD to read the flash or write a totally clean image on the nRF52DK right?
-> I hopefully have time this WE to do this...
Best,
David -
-
Hello,
I followed this guide to reset without loading code. If I do this, then the mac etc. is shown, but "-> Bluetooth" is not shown... also in this mode I can't find the device via Bluetooth (not sure if this should be possible). I also found that if I disable LBE in the settings, "->NULL" is shown instead of "->Bluetooth".
Do you remember doing anything before it broke? Installing a specific app or changing any settings? Or even doing something physical to the watch?
Unfortunately not - it would be good I guess if an app or so caused this - but I definitely know that it worked yesterday evening, and stopped working this morning. But today I installed nothing and also didn't change any settings of my Bangle - it was "only" on my wrist and connected to Gadgetbridge. I don't think that any physical thing changed - The whole day I'm sitting in lockdown in front of my PC ^^ - I'm also really careful that its not getting wet etc. and I usually don't wear my Bangle during night.
If I can somehow help you with debugging via USB (if this is possible), flash the device etc. let me know - I'm happy if I can help you a bit :) I also have some electronic equipment such as an oscilloscope (its quite old but it still works) etc. in case this could help...
David
-
Thanks for your answer.
I already tried that, but Gadgetbridge is definitely not connected. Gadgetbridge tries to connect (connecting) but it can never connect (this definitely worked before, I also u"FILESsed disconnect via longpress to start programming). So I uninstalled Gadgetbridge and disabled Bluetooth on my smartphone. Still, I can not connect with my Laptop (this device worked before, I used it for programming). I also tried the opposite: Disable Bluetooth on my laptop and tried to connect with my smartphone (Android) using both, gadgetbridge and the chrome browser. I even wlked a few 100m away from where I am because I thought that something else is connected or so.
Note also that the bluetooth icon is shown in gray - so I don't think that something is connected right? Also if a device is connected, Settings->BLE->Whitelist->AddDevice should show me the currently connected device, right? But it tells me that "Connect device to add to whitelist" so I'm relatively sure that no device is connected...
I'm really not sure what I should do now...
Thanks, David
[edit] I also disabled the whitelist in the settings to ensure that devices can connect [/edit]
[edit2] Note that my Puck.js is working fine :) [/edit2] -
-
-
Hello,
I hope someone (@Gordon) can help me: My BangleJs worked totally fine for a few days. I was able to program it via the WebIDE and I also got messages using the Android+Messages app + Gadgetbridge on my smartphone. Unfortunately, this morning, Bluetooth stopped working. The device can not be located, neither with my smartphone nor with my laptop - both worked fine before.
I also ensured that nothing else is connected and I tried things mentioned in this post (http://forum.espruino.com/conversations/370259/?offset=25#comment16286014). Unfortunately, nothing helped for me and it's not connectable at all. I can not even find the device / MAC, also nRf Connect shows nothing... I also ensured that (1) Is connectable and (2) BLE is ON (3) Programmable is ON and I also checked via whitelisting if a device is currently connected. I also tried to reset the setting, but this also didn't work...
Not sure if its a useful information, but when my BangleJs boots I can see the message "-> Bluetooth"...I also enabled Debug but got not really more information about this problem.
I really hope that you can help me because without Bluetooth I can barely use this otherwise really cool device...
Cheers, David
-
Hello,
I'm currently working on Settings where each user can specify the information that should be displayed (select for each of the three lines individually).
Unfortunately, the Bluetooth of my BangleJs stopped working and I can no more connect via the WebIDE. I tried already many things and ensured that nothing else is connected etc. So I first have to figure this out before I can continue working on LCARS ...
BR David
-
-
Hi all,
I wonder if the same happens for other BangleJS2 - I get the following error message if I call reset() within the Web IDE:
>reset() =undefined ____ _ | __|___ ___ ___ _ _|_|___ ___ | __|_ -| . | _| | | | | . | |____|___| _|_| |___|_|_|_|___| |_| espruino.com 2v10.219 (c) 2021 G.Williams Uncaught Error: Function not found! at line 12 col 667 in .boot0 ...oad('welcome.app.js')})}})()(function(){var settings=require("Storage"...
Currently, I simply ignore this message as everything seem to work fine...
Thanks a lot,
David
Ok so executing dump_image gives me