PineTime display and micropython
#11
(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.
  Reply
#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
  Reply
#13
Thank you very much.
That Pinetime logo looks great.

I just spotted someone post something useful on the pinetime discord chat - https://github.com/rabbithat/NRF52840_Mi...TA_Updates
Not sure if that's an use to you.
  Reply
#14
Looks like it could be the basis of file transfer code... I've not got solid plan but I think it would interesting to make the spinor flash into a filesystem in order to store large assets that don't fit in the MCU flash. If that turns out to be a good plan it would be nice to have something that could transfer files to/from the system OTA.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
Heart wasp-os: MicroPython for PineTime! danielt 33 2,473 Yesterday, 08:43 PM
Last Post: VMMainFrame
  Article: Wireless Firmware Update In Action on PineTime lupyuen 0 49 05-20-2020, 06:03 AM
Last Post: lupyuen
  MCUBoot Bootloader for PineTime lupyuen 2 288 05-18-2020, 04:23 PM
Last Post: lupyuen
  Simplified boot flasher for PineTime via PI jlukanc 0 39 05-15-2020, 04:38 PM
Last Post: jlukanc
  PineTime Hypnos endian-albin 0 98 05-10-2020, 02:28 AM
Last Post: endian-albin
  CHIP-8 Retro Game Emulator for PineTime lupyuen 7 499 04-15-2020, 12:19 PM
Last Post: seclorum
  wasp-bootloader: a robust SoftDevice bootloader for PineTime danielt 3 517 04-14-2020, 05:31 AM
Last Post: danielt
  Pinetime backlight current. TT-392 2 234 03-11-2020, 09:57 AM
Last Post: TT-392
  Create PineTime Watch Apps with Visual Rust lupyuen 0 174 02-19-2020, 02:50 AM
Last Post: lupyuen
  Live Debug of RIOT-OS on PineTime lupyuen 3 295 02-11-2020, 06:33 AM
Last Post: wibble

Forum Jump:


Users browsing this thread: 1 Guest(s)