Avatar for yngv126399

yngv126399

Member since Mar 2021 • Last active Sep 2021
  • 5 conversations
  • 59 comments

Most recent activity

  • in Porting to new Devices
    Avatar for yngv126399

    @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.

  • in Porting to new Devices
    Avatar for yngv126399

    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.

  • in Porting to new Devices
    Avatar for yngv126399

    I'm not an EE, so sorry for the newbie questions: but how do I set a pin high in a build? Looks like pinetime has a button enable pin to set so the button pin itself works. can I do that in the board file?

    Super newbie: is P0.01 map to D1 in Espruino? Are the pins mapped 1:1?

    Thanks!

  • in Porting to new Devices
    Avatar for yngv126399

    I am glad you guys are here to reality check me. I had built using DFU_UPDATE_BUILD=1 which yielded a much smaller hex (really app_hex) file. Removed that define... now have a real .hex file. Now Pinetime is visible... thank you!

  • in Porting to new Devices
    Avatar for yngv126399

    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?

  • in Tutorials
    Avatar for yngv126399

    Got it working on another linux instance, but hope to fix this eventually. Thanks all!

  • in Tutorials
    Avatar for yngv126399

    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...

  • in Tutorials
    Avatar for yngv126399

    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/setu­p.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/75351eeaaaec8e3f45e3e0f4bd0858aada­06e815a8dde70e47fcb63ae63d/nrfutil-6.1.2­.tar.gz#sha256=1786013611dc43057231808da­2e1d469c26cd4debc3e2468db021b3fdd0ddb5f (from https://pypi.org/simple/nrfutil/)
      Running setup.py (path:/tmp/pip-build-X12V_8/nrfutil/setu­p.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/ba­secommand.py", line 122, in main
        status = self.run(options, args)
      File "/usr/lib/python2.7/dist-packages/pip/co­mmands/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/re­q.py", line 1230, in prepare_files
        req_to_install.run_egg_info()
      File "/usr/lib/python2.7/dist-packages/pip/re­q.py", line 326, in run_egg_info
        command_desc='python setup.py egg_info')
      File "/usr/lib/python2.7/dist-packages/pip/ut­il.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/suppo­rt"
    BUG_REPORT_URL="https://bugs.debian.org/­"
    

    Any help appreciated!

  • in News
    Avatar for yngv126399

    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!

Actions