wasp-os: MicroPython for PineTime!
#61
(08-05-2020, 05:16 PM).lupyuen Wrote: Hmmm not sure why PineTime Updater would cause that to the Pi... Remember to connect/disconnect PineTime to Pi only when the Pi power is off.

It is probably also a good idea to have resistors in series between the boards on the SWDIO and SWCLK lines. Not only does this help absorb small differences in the reference voltages on the two devices but, more importantly, there have been a reports on the forum (and via other channels) of pad drivers blowing up when using the bcm2835spi driver for RPi (which IIUC deliberately permits both devices trying to drive SWDIO at the same time in order to meet the protocol timings). Sadly I have never been able to get a sufficiently clear bug report to be 100% sure that we are seeing physical damage from using directly connected wires but I certainly would never connect these devices without resisters inline.

Of course, if you have a PineTime dev kit and it is still running the stock firmware then I'd strongly recommend updating over-the-air using Bluetooth rather than trying to hook up an RPi.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#62
Managed to get myself a Colmi P8. I've successfully used daflasher to transfer the initial bootloader, but I have a quick question.

Do I need to use "make -j `nproc` BOARD=pinetime all" or does this need to be changed to something else?
Are there any other changes I need to make before I flash Wasp-os onto the P8?

Edit: It needed to be "make -j `nproc` BOARD=p8 all"

I've managed to flash the wasp-os bootloader onto the p8, but when I try to flash Micropython.zip unfortunately the watch reboots but stays on the bootloader. I don't seem to have any errors from the nrf transfer sadly
#63
My issue was resolved and I'm now walking around with a wasp-watch on. Awesome work Daniel!
#64
(08-30-2020, 09:22 AM)tomthetaffer Wrote: My issue was resolved and I'm now walking around with a wasp-watch on. Awesome work Daniel!
Hi Tom. Was the fix compiling wasp-os with the right board? I'm having the same issue but I did compile it with the correct board. Thanks!

Sent from my ONEPLUS A6013 using Tapatalk
#65
(08-02-2020, 04:52 AM)wibble Wrote: That should do the trick. See also https://github.com/lupyuen/pinetime-updater for noob-friendly flashing. I think the 'Download from URL' option should work with the URL for the file built by the github action, but I haven't tried it yet.

(09-16-2020, 08:15 PM)thethoughtpolice Wrote:
(08-30-2020, 09:22 AM)tomthetaffer Wrote: My issue was resolved and I'm now walking around with a wasp-watch on. Awesome work Daniel!
Hi Tom.  Was the fix compiling wasp-os with the right board?  I'm having the same issue but I did compile it with the correct board. Thanks!

Sent from my ONEPLUS A6013 using Tapatalk
Hey there

The resolution for my issue can be found here - https://github.com/daniel-thompson/wasp-os/issues/69
#66
(09-17-2020, 01:39 AM)tomthetaffer Wrote:
(08-02-2020, 04:52 AM)wibble Wrote: That should do the trick. See also https://github.com/lupyuen/pinetime-updater for noob-friendly flashing. I think the 'Download from URL' option should work with the URL for the file built by the github action, but I haven't tried it yet.

(09-16-2020, 08:15 PM)thethoughtpolice Wrote:
(08-30-2020, 09:22 AM)tomthetaffer Wrote: My issue was resolved and I'm now walking around with a wasp-watch on. Awesome work Daniel!
Hi Tom.  Was the fix compiling wasp-os with the right board?  I'm having the same issue but I did compile it with the correct board. Thanks!

Sent from my ONEPLUS A6013 using Tapatalk
Hey there

The resolution for my issue can be found here - https://github.com/daniel-thompson/wasp-os/issues/69
That did the trick. I now have wasp-os running on pine time and the p8. Thanks Tom and Daniel![Image: 3ee99d5491e9972d396de805dc0f4e10.jpg]

Sent from my ONEPLUS A6013 using Tapatalk
#67
Hi, Daniel! Thank you. You have done a great job. I started making my first application for wasp-os and ran into several problems. I run the application as described in the documentation
tools/wasptool \\
        --exec myapp.py \\
        --eval "wasp.system.register(MyApp())"
then do it again, several shortcuts appear on the watch. How to remove app? And is it possible reboot the watch?

Also, I don't understand how to debug the application.
#68
(10-11-2020, 07:27 AM)Igor7 Wrote: Hi, Daniel! Thank you. You have done a great job. I started making my first application for wasp-os and ran into several problems. I run the application as described in the documentation
tools/wasptool \\
        --exec myapp.py \\
        --eval "wasp.system.register(MyApp())"
then do it again, several shortcuts appear on the watch. How to remove app? And is it possible reboot the watch?

Also, I don't understand how to debug the application.

Long press (5 seconds) on the power button reboots the watch and removes applications that have not been permanently enabled.

For debugging, firstly be aware that any uncaught exception provokes the crash handler. This will display a bomb icon and then show the stack trace in a pager before switching back to the default application (the digital clock unless you have changed the default). Providing clear indication of exceptions means most of the rest of the debugging can be done with simple tools such as drawing on the screen or using the print() funciton.

Personally I do most of the initial debugging on the simulator and rely on the print() function as needed. By the time I test on a real device most of the basic problems are fixed anyway so I remove any remaining print() calls and rely on the crash handler for things I didn't think of. Note that print() statements do work on the device as well but they can cause some interesting problems if your console program doesn't exit cleanly so they are always stripped out of any application shipped with my repo..
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye
#69
Is it possible to flash this on a new pinetime that comes with infinitime yet?

Further, when i was trying to update my old pinetime with a new waspos update, NRF said it flashed succesfully, but then the watch didn't boot to anything. Do i need to update the waspos bootloader as well now? Is that even possible to do with BLE since i took it upon myself a while back to glue shut the case?

EDIT: I think my old watch is bricked for some reason. It wont progress past the bootloader despite the fact i tried a old build of waspos.
#70
(10-15-2020, 06:39 PM)Aberts10 Wrote: Is it possible to flash this on a new pinetime that comes with infinitime yet?

Further, when i was trying to update my old pinetime with a new waspos update, NRF said it flashed succesfully, but then the watch didn't boot to anything. Do i need to update the waspos bootloader as well now? Is that even possible to do with BLE since i took it upon myself a while back to glue shut the case?

EDIT: I think my old watch is bricked for some reason. It wont progress past the bootloader despite the fact i tried a old build of waspos.


It will be possible to reflash from infinitime but I haven't spent enough time on it yet owing to some (self inflicted) problems with my development hardware. To be honest all the building blocks to install was-os are definitely there but I'm less sure whether the components required to un-install it again (one-way installers are a little anti-social when both firmwares are re-distributable).


Anyhow a watch that runs the wasp-os bootloader is very unlikely to be bricked. Note also that trying an old build of wasp-os after running the latest version will require you to run the battery flat (newer wasp-os implement some power saving tricks that confuse older releases). The best thing to do is to build from the latest master branch and follow the troubleshooting guide: https://wasp-os.readthedocs.io/en/latest...leshooting
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems with pinetime watch face simulator Elements 0 144 08-18-2021, 03:05 PM
Last Post: Elements
  PineTime display and micropython danielt 17 8,291 05-07-2021, 12:15 PM
Last Post: danielt
  Using Pine64 to install Wasp-os on PineTime Mpoint 1 814 04-30-2021, 02:39 AM
Last Post: danielt
  Star Trek computer themed wasp-os on PineTime graynada 13 8,512 12-14-2020, 07:10 PM
Last Post: tllim
  Update bootlogo and pinetime-app with OTA/DFU lookin 3 2,007 11-25-2020, 04:51 PM
Last Post: lookin
  PineTime Simulation Feature gjoyet 3 1,624 11-15-2020, 11:42 AM
Last Post: gjoyet
  Pinetime and P8 Integration testing framework maiden 7 3,857 10-23-2020, 03:25 PM
Last Post: maiden
  Article: Create Your Own PineTime Watch Face in Rust... And Publish on crates.io lupyuen 2 2,109 10-18-2020, 09:24 PM
Last Post: lupyuen
  Article: Bluetooth Time Sync and LVGL on PineTime Mynewt lupyuen 0 1,069 10-15-2020, 05:51 PM
Last Post: lupyuen
  Remote PineTime for flashing and testing firmware remotely lupyuen 5 2,704 10-06-2020, 12:03 AM
Last Post: lupyuen

Forum Jump:


Users browsing this thread: 1 Guest(s)