-
-
@fanoush Hello again... I'm interested in using the 2MB flash as "Storage" for the F07. Will I have to build that in via board file, or can I set that up in JS code? I realize I'll have to do some magic switching since it shares SPI with the accelerometer. Is this straightforward or am I asking for trouble? LMK when you can, thanks (as usual)!
-
I'll gladly thank @fanoush for all his work in this project, and have many times. I wear his code on my wrist every day (currently an F07)! I was thanking YOU @Robin for your empathy in my situation. I am currently chatting with ATC1441 to see if anything can be done further, or if I simply have a $35 beacon now. It's difficult to get this far and have to give up.
And a very huge THANK YOU to @Gordon and all other contributors here... I haven't had this much fun in tech in a long time (yes, a bit of pain and frustration too... all part of the process).
@Gordon, have you had anyone else express desire for a ROUND watch Espruino (I mean truly round, not Bangle 1: square in a round frame)? I could (easily) be in the minority, but having a more dressy Espruino has appeal. Just curious...
-
Thank you @Robin! I've only invested a little time so far, as I assumed that sample code I had would work! I have Espruino running fine: buzzer and button work (probably touch panel and accel too!) since it's a pinout identical to P8! So close....
The real work now begins... digesting the nuances of the ST7789.
-
That's what I tried (both Arduino & Espruino) with similar results. I was hoping the effect may have been something that looked familiar to you, to help me look in the right spot. I was assuming that this code WAS from the original firmware, but ATC mentioned he wasn't certain as there are two versions of the watch.
It was a long shot... thanks anyway.
@Gordon Thank you for that input.. that makes sense. I've tried toggling all the undocumented pins with no luck; it may be a setting in the init as well.
If I get it, I'll share.
-
-
I guess this is really for @fanoush, but I'll welcome any input.
I've flashed Espruino to an SN80 (nrf52832, DaFit, 240x240 round ST7899). The pinouts are identical to the P8, so I used a prebuilt P8 (fanoush's espruino_2v08.5_p8_SDK12_SD30_SPIFLASH.zip) I used ATC's init code, replacing the default in the ST7789 Espruino module. I'm getting odd results. In the video, I start at reset(), then load the driver (sets up SPI, runs the init) then draw "Espruino" after 2 secs, then a white rectangle (full screen) after 2 seconds. you can see the draws happening, but everything is a vertical line. And more, in the still picture, you can see what happens after a minute, the screen dims in a doughnut shape! I have the ST7789V datasheet, so I'm prepared to do some homework, but any direction would be greatly appeciated!
(I checked in with ATC and he doesn't remember what he did exactly... there are two versions of the hardware so he's not sure if he's mixed them up. I also tried his code in ATCwatch and get the same result).
thanks to anyone for any help!
-
-
-
@fanoush Ha, ha.. I was wondering if it could be done by the board file alone.. and now you've answered that! Going to try that, thanks.
-
I'd post this in a new question, but can't seem to find the new post button ???
Is there any way to set a pin high in the board definition file. The pinetime's main button (D13) will only work if D15 is pulled high. I can do this in code and it's fine, but I'd like it set up before we enter .boot code so it can trap button press early.
-
-
-
I've just tried to build a minimal Espruino with only the BTN defined and used OpenOCD to flash to Pinetime. I'm not seeing anything in the Espruino web IDE. I did an nrf mass_erase to clear out Infinitime, then built both the bootloader (BOOTLOADER=1) and the board fw, programmed the bootloader (hex file) and board fw (first hex file, then bin file from zip). Am I missing a step?
-
-
-
I'm sure it's me, but I get the following error :
jv@Emp:~/Espruino$ source scripts/provision.sh PUCKJS Provision BOARDNAME = PUCKJS Provision FAMILY = NRF52 ===== NRF52 Installing nrfutil Downloading/unpacking nrfutil Downloading nrfutil-6.1.2.tar.gz (844kB): 844kB downloaded Running setup.py (path:/tmp/pip-build-X12V_8/nrfutil/setup.py) egg_info for package nrfutil /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zipfile' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console' warnings.warn(msg) error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers Complete output from command python setup.py egg_info: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zipfile' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console' warnings.warn(msg) error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers ---------------------------------------- Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-X12V_8/nrfutil Storing debug log for failure in /root/.pip/pip.log ===== ARM arm-none-eabi-gcc installed
and the contents of pip.log:
Downloading from URL https://files.pythonhosted.org/packages/dd/f9/75351eeaaaec8e3f45e3e0f4bd0858aada06e815a8dde70e47fcb63ae63d/nrfutil-6.1.2.tar.gz#sha256=1786013611dc43057231808da2e1d469c26cd4debc3e2468db021b3fdd0ddb5f (from https://pypi.org/simple/nrfutil/) Running setup.py (path:/tmp/pip-build-X12V_8/nrfutil/setup.py) egg_info for package nrfutil /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zipfile' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console' warnings.warn(msg) error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers Complete output from command python setup.py egg_info: /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'zipfile' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'console' warnings.warn(msg) error in nrfutil setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers ---------------------------------------- Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-X12V_8/nrfutil Exception information: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status = self.run(options, args) File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 290, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1230, in prepare_files req_to_install.run_egg_info() File "/usr/lib/python2.7/dist-packages/pip/req.py", line 326, in run_egg_info command_desc='python setup.py egg_info') File "/usr/lib/python2.7/dist-packages/pip/util.py", line 716, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-X12V_8/nrfutil
My system:
cat /proc/version Linux version 3.16.0 (mockbuild@builder7.eng.sw.ru) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-39) (GCC) ) #1 SMP Tue Jun 9 12:58:54 MSK 2020 jv@Emp:~/Espruino$ cat /etc/*-release PRETTY_NAME="Debian GNU/Linux 8 (jessie)" NAME="Debian GNU/Linux" VERSION_ID="8" VERSION="8 (jessie)" ID=debian HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/"
Any help appreciated!
-
I just flashed my Bangle 1 the other day and two things I noted. 1) I got the Storage corrupt message, and it wiped out my Storage (nothing I couldn't rebuild, but...) and 2) I am now occasionally getting the ERR_CONN message, which doesn't seem to affect anything, and I can't yet reproduce it on demand.
Other than that, things are good... and thanks for all the new features!
-
@Gordon Received mine in Canada yesterday, thank you! Already playing around with watch faces, trying out some code i have for the DK08 face, and logging the niggles. Very nice work on this, many thanks to the whole team...
-
@fanoush I'm starting to work with the BMA222E and just loading your SPI code onto the right side of the IDE, and pushing it standalone onto the F07, to RAM. Everytime I send the code, it runs fine, but then disconnects (not sure if it reboots). This doesn't happen with watches where I have ample setInterval()s running. Is there a way to prevent it from "falling off the cliff"?
-
You're right, it never died, just zombied. I was able to reload your fw several times, and I even tried jeffmer's DK08, but both must load .boot0 (even with button down), but i was always able to let it run down and get back to DFU, so great failsafe there. And the F07's are running well.. my original with the weak screen turns out to be the perfect bedside clock (flashes the time for 2 seconds every 15 seconds, so the battery lasts for days) and the other is a good regular-dress accessory (I've actually turned down the brightness on this one... if I long press it goes to 100% for 10 seconds for outside reading). But I think the DK08 will be my daily now, I am really getting into the always-on concept; just in time for Bangle2!
I will continue to dig into the nrf52 series and learn what I can. I'd like to help out the espruino project eventually. I have an Adafruit Clue which I want to use as my test platform for building/tweaking espruino (have to get in and solder those SWD pads), and a C16 52840 watch that atc1441 has cautioned me is not easy to open, but I have to break a few eggs to learn.
-
You did it!!! I uploaded and held the button when it went to 95%, gave it about ten seconds, and it showed up in IDE... went and checked and yes I had written the code to .boot0; deleted it and E.reboot()... came up just fine. Restored my code from Friday too.
Thank you again! I appreciate your deep knowledge here and what you've done to make these watches USABLE. If you ever want a watchface, let me know, I'll gladly make one for you.
-
-
As nice a brick as it is, I'll gladly wait for a little test! Can't get to it today anyway. You're ahead of me there, I was going to make a generic build, block the .boot0 code and try that just to erase the file from flash. However, since I've never done that, id have to do it with a test board myself (an opened P8b still running stock). would take me a while to get comfortable there! So, thank you for the build!
You reverse engineered @Gordon's remark! Brilliant!! That board looks VERY interesting indeed. It's resisting my attempts to Google more info though... and we don't want to get Gordon in any trouble, so I'll shut up now. But intriguing....