wasp-os: MicroPython for PineTime!
#30
(05-27-2020, 03:02 PM)VMMainFrame Wrote: I entered the commands you gave me, it failed on "os.mount(flash,'/flash')" with OSError: 1.  Attached is the screen from Serial Bluetooth Terminal and a picture of the inside of the watch.

Thanks for all the detail. It helps a lot, especially because this isn't what I was expecting.

You might be able to fix it my formatting the external flash. Normally this happens automatically when there is no filesystem but it doesn't seem to be working for you because you are getting the "wrong" error message. Of course the wrong error message is not expected so they could still be something else causing us trouble... but either way we won't know until we try!


The following sequence of commands is pretty long and might not be fun to type via the Android keyboard. Howver if these commands run without error then they will probably fix the problem (e.g. get it booting properly with manual help):


Code:
from watch import *
flash = FLASH(spi, (Pin('NOR_CS', Pin.OUT, value=1),))
import os
os.VfsLfs2.mkfs(flash)
os.mount(flash,'/flash')
f = open('/flash/main.py', 'w')
f.write('''\
import wasp
wasp.system.run()
''')
f.close()

Good luck!

(05-28-2020, 01:59 AM)lupyuen Wrote: Hi Daniel: wasp-os is really amazing, now that I have seen the code inside [emoji3]

I'm now documenting my attempt to run wasp-os on Mynewt. Maybe this will take off, maybe it won't. But either way it's a fascinating educational look inside wasp-os [emoji3]

I'm quite pleased with how wasp-os is turning out so far althogh I must concede that the most amazing bits I have inherited from MicroPython!

Anyhow I'll be very interested to see how wasp-os on MyNewt comes together. I'd definitely like to see it running on top of a FOSS BLE stack at some point and MyNewt is an interesting way to do that. The number that will really matter is the amount of free memory once wasp-os is running. Micropython systems often live or die based on whether there is enough spare RAM. I'm hopeful that NimBLE (perhaps tuned for a reduced feature set) will have less overhead.

PS On the subject of multi-threading for comms. Micropython has an special execution state that is a little bit like a softirq handler in Linux. In terms of multi-threading I am planning (eventually) to try running wasp-os from that execution context. wasp-os apps are event driven in order to make that possible. Such an approach should leave the regular execution state available to handle BLE comms and/or the REPL.
PineTime: wasp-os and MicroPython, Pinebook Pro:  Debian Bullseye


Messages In This Thread
wasp-os: MicroPython for PineTime! - by danielt - 02-04-2020, 01:43 PM
RE: wasp-os: MicroPython for PineTime! - by mulm - 02-22-2020, 09:31 AM
RE: wasp-os: MicroPython for PineTime! - by mulm - 02-22-2020, 10:45 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 03-06-2020, 04:02 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 04-13-2020, 09:46 PM
RE: wasp-os: MicroPython for PineTime! - by tllim - 04-20-2020, 11:47 AM
RE: wasp-os: MicroPython for PineTime! - by danielt - 05-28-2020, 02:41 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 05-28-2020, 01:59 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 07-15-2020, 07:01 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 06-03-2020, 05:38 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-15-2020, 07:08 PM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-16-2020, 02:43 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 07-16-2020, 03:53 AM
wasp-os: MicroPython for PineTime! - by lupyuen - 08-02-2020, 03:55 AM
RE: wasp-os: MicroPython for PineTime! - by Igor7 - 10-11-2020, 07:27 AM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-15-2020, 06:39 PM
RE: wasp-os: MicroPython for PineTime! - by 33YN2 - 10-24-2020, 01:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Develop a new firmware for PineTime belushi 2 1,282 09-25-2023, 12:32 PM
Last Post: ccchan234
  Bluetooth BLE-MIDI-controller app for PineTime / InfiniTime Luno 0 501 08-20-2023, 05:17 AM
Last Post: Luno
  Zephyr Backlight Examples for PineTime lcj 0 691 05-06-2023, 02:54 PM
Last Post: lcj
  Zephyr is ready for pinetime jandy 1 2,075 05-06-2023, 02:15 PM
Last Post: lcj
  Send a message from Android to pinetime via BLE razrosman 0 905 11-05-2022, 08:24 AM
Last Post: razrosman
  PineTime Stuck in DFU Mode Eesha Barua 1 2,000 07-25-2022, 09:17 PM
Last Post: heyhewmike
  Idle tracking with PineTime: how versatile it is? schaman 1 1,614 07-13-2022, 12:50 AM
Last Post: wibble
  PineTime implemented with partial of pebble API jandy 0 1,535 03-20-2022, 08:58 PM
Last Post: jandy
  "Pine64 USB JTAG Adapter + OpenOCD + PineTime" should it work? ITCactus 4 3,876 03-02-2022, 05:58 AM
Last Post: wibble
  Zephyr based Pinetime jandy 4 4,634 11-11-2021, 05:53 AM
Last Post: jandy

Forum Jump:


Users browsing this thread: 2 Guest(s)