Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Testing of PineTime Preload Firmware

Testing of PineTime Preload Firmware

UPDATE 30 Jul 2020: If you wish to flash the latest MCUBoot Bootloader and FreeRTOS Firmware to your PineTime, please use PineTime Updater instead

To test the new PineTime Firmware that will be factory-loaded into new PineTime watches, please use Raspberry Pi, ST Link or JLink to flash these two files...

  1. MCUBoot Bootloader: Flash at address 0x0

    https://github.com/lupyuen/pinetime-rust-mynewt/releases/download/v4.1.7/mynewt_nosemi.elf.bin

  2. FreeRTOS Firmware: Flash at address 0x8000

    https://github.com/JF002/Pinetime/releases/download/0.7.1/pinetime-mcuboot-app.img

Flash PineTime with Raspberry Pi

UPDATE 30 Jul 2020: If you wish to flash the latest MCUBoot Bootloader and FreeRTOS Firmware to your PineTime, please use PineTime Updater instead

If we're flashing with Raspberry Pi...

  1. Connect PineTime to Pi using these instructions: "Connect PineTime to Raspberry Pi"

    https://github.com/lupyuen/visual-embedded-rust/blob/master/README.md#connect-pinetime-to-raspberry-pi

  2. Remove flash protection: "Remove PineTime Flash Protection"

    https://github.com/lupyuen/visual-embedded-rust/blob/master/README.md#remove-pinetime-flash-protection

  3. Flash the MCUBoot Bootloader: "Flash MCUBoot Bootloader"

    https://lupyuen.github.io/pinetime-rust-mynewt/articles/mcuboot#flash-mcuboot-bootloader

    Before flashing, update ~/pinetime/pinetime-rust-mynewt/scripts/nrf52/flash-boot.ocd with the full path of the downloaded MCUBoot Bootloader.

  4. Finally flash the FreeRTOS Firmware: "Flash Application Firmware"

    https://lupyuen.github.io/pinetime-rust-mynewt/articles/mcuboot#flash-application-firmware

    Before flashing, update ~/pinetime/pinetime-rust-mynewt/scripts/nrf52/flash-app.ocd with the full path of the downloaded FreeRTOS Firmware.

PineTime should automatically restart with the new MCUBoot Bootloader and FreeRTOS Firmware.

We should see a watch face with an incorrect time.

Sync PineTime Date/Time with nRF Connect

  1. Download the nRF Connect mobile app on Android and iOS to test the date/time sync with PineTime...

    https://www.nordicsemi.com/Software-and-tools/Development-Tools/nRF-Connect-for-mobile

  2. In nRF Connect, browse for the Pinetime-JF device and tap Connect

  3. Tap on MenuConfigure GATT ServerAdd Service

  4. Set Server Configuration to Current Time Service

  5. Tap OK

PineTime should automatically sync the date and time.

Update PineTime Firmware with nRF Connect

  1. On your Android or iOS phone, download ONE of the following FreeRTOS Firmware versions...

    Version 0.6.2: https://github.com/JF002/Pinetime/releases/download/0.6.2/pinetime-app-dfu.zip

    Version 0.7.0: https://github.com/JF002/Pinetime/releases/download/0.7.0/pinetime-app-dfu.zip

    For iOS, download with Safari and select Open WithnRF Connect

  2. In the nRF Connect mobile app, connect to PineTime

  3. Tap the DFU circular icon at top right

  4. Select Distribution Packet (ZIP)

  5. Select the downloaded ZIP file. Wait for the upload to be completed.

  6. PineTime should reboot and run the new firmware

  7. Tap the screen, select Soft Version or 🛈 (i)

  8. Check that the version number matches the firmware version that we have downloaded earlier: 0.6.2 or 0.7.0

PineTime Boot Logo

(The boot logo is missing, we'll provide instructions shortly for flashing the boot logo)

Thank you for testing! 😀

Testing done so far...

Feature Device Result Remarks
Time Sync Android Pixel 4XL OK
Time Sync iPhone 6 Fail Because iOS Bluetooth MAC Addresses are randomised? Will fix in next release
Firmware Downgrade Android Pixel 4XL OK 0.7.0 to 0.6.2
Firmware Downgrade iPhone 6 OK 0.7.0 to 0.6.2
Firmware Upgrade Android Pixel 4XL OK 0.6.2 to 0.7.0
Firmware Upgrade iPhone 6 OK 0.6.2 to 0.7.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.