You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2020/03/28 09:21:33 UTC

[GitHub] [mynewt-core] caspermeijn commented on a change in pull request #2253: bsp/pinetime: Add bsp for PineTime smartwatch

caspermeijn commented on a change in pull request #2253: bsp/pinetime: Add bsp for PineTime smartwatch
URL: https://github.com/apache/mynewt-core/pull/2253#discussion_r399640633
 
 

 ##########
 File path: hw/bsp/pinetime/README.md
 ##########
 @@ -0,0 +1,56 @@
+<!--
+#
+#   Copyright 2020 Casper Meijn <ca...@meijn.net>
+#
+#   Licensed under the Apache License, Version 2.0 (the "License");
+#   you may not use this file except in compliance with the License.
+#   You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#   Unless required by applicable law or agreed to in writing, software
+#   distributed under the License is distributed on an "AS IS" BASIS,
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#   See the License for the specific language governing permissions and
+#   limitations under the License.
+#
+-->
+
+# mynewt bsp for PineTime
+
+## Overview
+
+This is a board support package for the Pine64 PineTime smartwatch. See [device wiki](https://wiki.pine64.org/index.php/PineTime) for documentation. See [store](https://store.pine64.org/?product=pinetime-dev-kit) for buying a dev kit.
+
+## Status
+
+Currently the status is: incomplete.
+
+Available drivers:
+
+- Only pin defenitions are available
+
+## Usage
+
+The bsp is configured to use openocd and a ST-LINK programmer. Connect your device to the ST-LINK and it to your computer. Then run the following commando to start make the LCD backlight blink:
+
+```bash
+newt new blinky-pinetime
+cd blinky-pinetime
+newt sync
+
+newt target create boot-pinetime
+newt target set boot-pinetime \
+    app=@mcuboot/boot/mynewt \
+    bsp=@apache-mynewt-core/hw/bsp/pinetime \
+    build_profile=optimized
+newt build boot-pinetime
+newt load boot-pinetime
+
+newt target create blinky-pinetime
+newt target set blinky-pinetime \
+    app=apps/blinky \
+    bsp=@apache-mynewt-core/hw/bsp/pinetime \
+    build_profile=debug
+newt run blinky-pinetime 0
+```
 
 Review comment:
   I am not a natural writer, but I like the idea of a blinky tutorial. The [nRF52](https://mynewt.apache.org/latest/tutorials/blinky/nRF52.html) tutorial helped me a lot, so I will try to create a page like that.
   
   However I would like to document the status of the BSP, as not drivers are available yet. Do you have ideas on how to do that?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services