StarGate01 / p8b-infinitime

Run InfiniTime & Bootloader on the P8 smartwatch
MIT License
20 stars 2 forks source link

Flashing infinitime onto storage via swd #4

Closed 0x0000ff closed 1 year ago

0x0000ff commented 2 years ago

I can't seem to get it installed with the ota method. Can I flash mcuboot and Infinitime binaries onto the flash via SWD onto the storage?

Thanks, 0x0000ff

StarGate01 commented 2 years ago

You can flash your watch via SWD, but you have to open it and connect a JLink or OpenOCD compatible adapter. See https://wiki.pine64.org/wiki/Reprogramming_the_PineTime for more info. Once you have opened the watch and connected to the SWD port, you can flash either the wasp-os bootloader.hex (and then follow the OTA instructions) or a compiled development version of InfiniTime. Also, note that the SWD port is flipped on the P8 compared to the Pinetime.

This leaves your watch unsealed against water etc, and you have to be very careful to not puncture the battery while opening the watch.

What are you having issues with concering the OTA method?

0x0000ff commented 2 years ago

I'm stuck on the wasp-os bootloader. It doesn't seem to accept the images sent from NRFconnect on my phone. I think I'll go ahead with flashing with swd and see what happens. Thanks for your reply.

StarGate01 commented 2 years ago

NRFconnect is known to cause issues in its newer versions. Please verify that you can connect and keep a connection before starting the DFU.

You could try some settings and alternatives:

Remember to flash reloader-factory.zip first to convert the wasp-os bootloader to the mcuboot one.

Edit: What is the model of you watch? I.e. MOY-something .

0x0000ff commented 2 years ago

I'm sorry, I never wrote it down before flashing. I opened it yesterday though and took a picture of what was printed on the motherboad. motherboard - if that helps. IMG_20220626_213622. My watch is at home now and i'm at work. I can get the IC serial numbers when I get back if that helps.

StarGate01 commented 2 years ago

No worries. You can try to correlate the chips to https://github.com/StarGate01/p8b-infinitime/blob/master/HardwareVariants.md if you want to. Happy flashing!