05-26-2020, 02:37 AM
(05-24-2020, 03:40 PM)VMMainFrame Wrote: The documentation is impressive. I decided to replace JF002's FreeRTOS code on my Pinetime with your code, using the bootloader.hex and micropython.zip files from wasp-os-0.2.tar.gz file on your web page. I flashed the bootloader.hex with a STLINK and that went well, the Pine64 logo appeared along with a Bluetooth icon, and arrow and the word start. I then used nRF Connect to send the micropython.zip file over Bluetooth to the watch. It was slow but it completed.
However, I do not get the time on the screen, I just get a black screen. It does not respond to the button or screen taps. If I hold down the button for 10 seconds or so the bootloader screen appears. If I press the button the screen goes black and stays that way.
Any thoughts on what I am doing wrong?
Does the watch reappear in nRF Connect when the screen is black (if you launch a scan it should appear as PineTime rather than PineDFU but the MAC address will be the same)?
If the watch scans via BLE then we should be able to debug it by connecting via the Nordic UART Service (you can use an Android program called Serial Bluetooth Terminal for this). If you send an empty command the watch should respond with a python prompt (">>> ").
The best way to debug is to do a special "debugging" reboot: Long press to return to bootloader, wait for 5 seconds, press the button to start wasp-os but keep it held down until the screen goes black for a second or so (e.g. release it a little bit after the Pine64 logo disappears for good). This will look pretty much the same (a black display after the Pine64 logo disappears) but it bypass the watch startup files which means we can get more useful debug information.
To access the debug information then run the following commands via the Nordic UART Service:
Code:
import wasp
wasp.system.run(no_except=False)
Let me know how it goes!
BTW @JF002's firmware also works with the wasp-bootloader (IIRC you have to make the .zip file by hand)... you can switch back and forth with OTA updates ;-) .