jeffmer / WatchApps

Support to run Bangle/Espruino Apps on P8, ROCK and Magic3 Smart Watches
MIT License
18 stars 10 forks source link

Using firmare on a GW32 with openocd connected to SWD #8

Open androidonis opened 4 months ago

androidonis commented 4 months ago

Great thanks for providing support for those smartwatches. I own a GW32 and now want to go Espruino with this. Since the watch had screws, it was easy for me to contact swd with openocd. Unfortunately the firmware here seems to be made for a bootloader and DFU (nRFconnect). In nRFconnect I see that my GW32 watch shows a DFU service. Can I use this directly? or is this the wrong bootloader? Should I do mass erase and flash some specific bootloader? If I want to use the most recent Espruino, what files beside the banglejs.py file need modification?

jeffmer commented 4 months ago

Hi, I think the DFU for the GW32 is signed which is why you need to use SWD and OpenOCD. I spam afraid I do not have a full hex but it’s easy enough to generate one, although I think you might need my version of Espruino which is not up to date.

PS fanoush _ see Espruino forum is the bootloader expert