-
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!
-
Sorry to bug you again... I've tried all day letting it run down, rebooting to DFU, trying your FW, then jeffmer's.. they copy over, then nrfConnect tries to reload DfuTarg (seems to keep the name), it can't make a connection. Then it disappears from any BT. Could a recursive include have written over the SDK or soft device? Should I try reloading SD?
-
@fanoush I'm very surprised, but it's still bricked! It did power down in 2 days; I plugged it in, got the buzz, held the button > 3 secs and looked for a connection on the IDE. Nothing; reset BT, reloaded IDE; nothing. OK, so I let it power down again overnight. This AM, plugged it in, buzz, press button, buzz, LET GO.. and sure enough it went to DFU; reflashed espruino_2v08.5_DK08_SDK12 via nrfConnect, went to 100%, then disappeared (still plugged in to power). nrfConnect, DaFlasher can't see it at all, and of course the IDE can't see it. Perhaps I overwrote something very important in UICR? or the SDK itself? It seems to load the FW fine, so some of the soft device is working... don't know why it just disappears!! Did I miss a step somewhere? I'm stuck in SDK12, so I can't flash any other FW...
-
@fanoush Yes, I can be a little dramatic; was pretty sure it wasn't truly bricked... I'm letting it die, and I'm hoping it should just boot to normal (I don't think your fw runs '.boot0' automatically).. but otherwise, I have your other out; so thank you for the many escape hatches.
Burns me up to think that one tenth of a second of mental loss can lead to .. what... FOUR WEEKS of recovery? This watch lasts forever!! I actually had it for four weeks before I flashed it and the battery read 44%!!!
At this point, the SMA Q3 will arrive before the DK08 is ready! Crazy...
-
Before I even took a moment to thank you, I bought one! A bit pricey indeed, but you guys deserve it; a lot of work put into making this idiot (i.e., me) proof; yes more to come, and being an idiot, I'll be glad to share how I've managed to break it with you.
BTW: yes, I'm desperate (just bricked a DK08*), but i think another good reason to buy this at this price is to support you. You're doing great work for a community and making IoT an easier step for those starting out.
- lesson for all: never write "eval(require('Storage').read('myfile.js'));' then save it to Storage as 'myfile.js'.... meant to save to RAM...
- lesson for all: never write "eval(require('Storage').read('myfile.js'));' then save it to Storage as 'myfile.js'.... meant to save to RAM...
-
@fanoush Hey man, I'm finally getting around to flashing the DK08, and because I am capable of ruining everything easily, Just want to verify that I follow your instructions on your github site for DK08... so I do NOT need to load ATC's bootloader first... correct? Just upload the minimal F07 espruino, modify the UICR, update the bootloader, load up the full firmware. ?
only other question.. ST7301 driver for Espruino. Does that exist anywhere?
-
Any one have luck with the P8 / accel? I'm able to get x,y,z from it, but as for step counts, or setting the interrupt I'm lost. I've got datasheet for 423 (allegedly the same as 421...??) and sample C code from several sources, but I can't seem to get anything useful. Looks like µPython got it working, and I'm following the logic, but no luck!
-
you can double check here, but it looks like you just call
require("iTracker").setGPSOn(false, callback);
to turn it off. -
-
-
I can't answer officially (I'm not an official), but you should read this.
-
-
If I'm not posting in the right place, please LMK. I have jeffmer's P8 firmware (2v09.343) running on my P8. Things are looking good, but the ACCEL doesn't seem active (ACCEL.read() ={ ax: 0, ay: 0, az: 0 }). I tried to ACCEL.init() but still doesn't give any readings. Watch won't wakeup on raise. Anything I can try before declaring my accelerometer to be DOA?
-
I like the idea of relative heights/widths (DroidScript does this for Android: 1.0 = full width/height, so use 0.5 for half etc) as it should adjust to other screen sizes automatically. Also if fonts were (somehow) density-agnostic (like device independent pixels) so if I load font_small it's 4x6 on lower resolutions and 6x8 on higher.
I also like the layout manager approach: I'm guessing "v" is vertical here, so top -down is simple, then nesting an "h" inside the first "v" element gives you a grid, and you could have anchors like "ne", "n", "nw" to align to corners, top, bottom (in an abbreviated format)
also it would be nice if the Layout automagically knew to redraw when it's content changed so you wouldn't have to .clear() .update() ... just .render(). That last one may call g.flip() as needed too?
now mapping 12-bit colors down to 3-bit... ouch.
May be a good idea for someone with LOTS of time on their hands to go through the bangle apps and try to lay them out using these rules, see how complex it gets, see where the majority tend to pattern.
-
-
If you're not needing a spare, I'd be up for a DK08 (while waiting for the Q3 to be finalized). I was wondering if you have any interest in the full Android smartwatches that run the MT6739? I have a Thor 4 Plus with an OLED 1.3" round screen that's gathering dust. A different beast to tackle I'm sure, but I'll bet Espruino would scream on it... (I know, a lot of work to port it).
Anyway, LMK how much you'd like for a DK08.
-
tried that... same exact error. This is on a linux instance i rent (liveinhost.com). BTW on Windows, I used manual method and got espruino built as a local executable on my WSL, but cross compile example failed! I went to my linux instance thinking it was a cleaner solution...