Add P8 smartwatch configuration#10
Open
StarGate01 wants to merge 1 commit into
Open
Conversation
Author
|
Hey @JF002 , from what I saw you are maintaining this repository? This PR should be considered part of InfiniTimeOrg/InfiniTime#1050 . |
Author
|
Ideally, any SPI chip should be accepted, because manufacturers often swap them without changing the hardware ID. |
Author
|
This PR now uses This enables the use of many SPI chips without having to know and hardcode their respective JEDEC IDs beforehand. |
* Split into pinetime (default) and p8 target * Change LFCLK to LFRC to support devices without LF crystal * Support various SPI flash chips by ignoring JEDEC IDs * Use recent mynewt-core and mcu-tools
Author
|
This PR now uses the upsteam version again, since my PR apache/mynewt-core#2858 was merged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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-coreandmcu-toolsto their recent versions.mynewt-corecontains 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).