Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for a new hardware target; the P8(b) smartwatch. It is derived from the work by @tt1pjm and @ildar at https://github.com/ildar/pinetime-mcuboot-bootloader .
By default, the original Pinetime configuration is used and built. For the user, nothing changes except for an additional optional scripts parameter for
scripts/nrf52/build-boot.sh
(see README), and the location of the compiled binary.The P8 watch differs from the Pinetime in a few minor points:
libs/pinetime_boot/syscfg.yml
)Instead of the low frequency crystal, the internal RC oscillator is now used. This enables support of all hardware variants. Because no Bluetooth (which would depend on precise timings) is required, the RC clock is left uncalibrated.
In addition, I updated the dependencies
mynewt-core
andmcu-tools
to their recent versions.mynewt-core
contains a patch by me (apache/mynewt-core#2798), which adds support for a SPI flash chip found in some P8b watches. The bootloader is configured to accepta list of various SPI flash chips. This list should be extended in the future as more P8 variants are discovered and tested.any SPI flash chip.This PR has been tested on a P8b smartwatch (cst716-6c.5 / sc7a20) and a Pinetime dev kit (cst816s-0.1 / bma421).
Let me know what you think. I am working on a port of InfiniTime itself as well in parallel (InfiniTimeOrg/InfiniTime#1050).