PineTime display and micropython
#12
(01-22-2020, 09:00 PM)Memiks Wrote:
(01-22-2020, 12:24 PM)tomthetaffer Wrote: Would it be possible for you to give us a brief Would it be possible for me to flash this to a Pinetime via a Raspberry Pi?
I'm very eager to get started with learning this, and just need a bit of guidance on how to start with Wasp-Os

I am able to compile bootloader and micropython to PineTime.
I will flash them this week end and come back next week to give you some guidance.

Memiks.

Flashing the bootloader was a bit of a pain for me. I used some STLink devices I had lying around... one reprogrammed as a black magic probe in order to disable the flash protection and the other as a real STLink because I couldn't get the BMP hex programmer to work.

Whoever gets there first the steps are roughly speaking:

1. Clone the wasp-os repo
2. make submodules softdevice
3. make BOARD=pinetime all
4. Use an SWD programmer to disable the flash protection (this is important... until this is done the debugger can't enumerate all the devices)
5. Use an SWD programmer to install bootloader.hex to the PineTime
6. The bootloader will show up in Bluetooth as either AdaDFU or PineDFU (depending on version). Use nRFConnect for Android to connect to PineDFU, click the DFU button and send over micropython.zip (note that you may have to go into settings in nRFConnect and reduce the packet count from 10 to 4).
7. Use a NUS client to connect to PineTime (Serial Bluetooth Terminal for Andoid works for me, as does pynus on Linux if I keep the GNOME bluetooth scanner window open)

So steps #4 and #5 are the tricky bits to document because they are different for each SWD programmer. However steps #4 and #5 are not specific for wasp-os... they are the same for all PineTime devices so any tutorial you can find on SWD should be applicable here (I noticed some new forum topics about RPi SWD were posted yesterday).

PS I have a rewritten ST7789 driver and have code to draw the Pine logo working on my desk. I'll try to get that checked in for you before the weekend.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye


Messages In This Thread
PineTime display and micropython - by danielt - 01-19-2020, 04:11 AM
RE: PineTime display and micropython - by Memiks - 01-19-2020, 06:05 PM
RE: PineTime display and micropython - by danielt - 01-20-2020, 03:49 AM
RE: PineTime display and micropython - by Memiks - 01-20-2020, 06:41 PM
RE: PineTime display and micropython - by danielt - 01-21-2020, 03:41 AM
RE: PineTime display and micropython - by lupyuen - 01-20-2020, 09:26 PM
RE: PineTime display and micropython - by danielt - 01-21-2020, 04:25 PM
RE: PineTime display and micropython - by Memiks - 01-22-2020, 09:00 PM
RE: PineTime display and micropython - by danielt - 01-23-2020, 04:07 AM
RE: PineTime display and micropython - by danielt - 01-23-2020, 09:11 AM
RE: PineTime display and micropython - by Mpoint - 04-27-2021, 08:14 PM
RE: PineTime display and micropython - by danielt - 04-28-2021, 03:42 AM
RE: PineTime display and micropython - by Mpoint - 04-30-2021, 10:58 PM
RE: PineTime display and micropython - by danielt - 05-07-2021, 12:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinetime - Kids with special needs hidara 0 621 06-11-2024, 10:42 PM
Last Post: hidara
  Develop a new firmware for PineTime belushi 2 2,121 09-25-2023, 12:32 PM
Last Post: ccchan234
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 936 08-20-2023, 05:17 AM
Last Post: Luno
  Zephyr Backlight Examples for PineTime lcj 0 1,133 05-06-2023, 02:54 PM
Last Post: lcj
  Zephyr is ready for pinetime jandy 1 2,777 05-06-2023, 02:15 PM
Last Post: lcj
  Send a message from Android to pinetime via BLE razrosman 0 1,321 11-05-2022, 08:24 AM
Last Post: razrosman
  PineTime Stuck in DFU Mode Eesha Barua 1 2,721 07-25-2022, 09:17 PM
Last Post: heyhewmike
  Idle tracking with PineTime: how versatile it is? schaman 1 2,225 07-13-2022, 12:50 AM
Last Post: wibble
  PineTime implemented with partial of pebble API jandy 0 1,933 03-20-2022, 08:58 PM
Last Post: jandy
  "Pine64 USB JTAG Adapter + OpenOCD + PineTime" should it work? ITCactus 4 5,094 03-02-2022, 05:58 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)