Sony's Developer World forum

    • Home
    • Forum guidelines

    Upcoming maintenance 

     

    Dear Customers and Partners.

    This website will be undergoing scheduled maintenance on June 14, 2023. Please be aware there may be disruption to the developer portal website and associated services during the scheduled maintenance period.

    This upgrade is essential to ensure the continued performance, reliability, and security of Developer World.

    We apologize for any inconvenience.

     

     

    Edge Impulse firmware update

    Spresense
    4
    6
    1454
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Matha 1 last edited by

      Hello!

      Since I haven't heard from Edge Impulse since posting an issue at their site with Edge Impulse firmware update for Spresense via Ubuntu terminal, please indulge the same post here:

      Trying to flash firmware after downloading zip archive sony-spresense.

      The output is:

      $ ./flash_linux.sh
      Checking Python dependencies...
      Checking Python dependencies OK
      
      Flashing board... 
      
      Using device /dev/ttyUSB0
      >>> Install files ...
      install -b 921600
      Install /home/reza/Downloads/IoT/Spresense/sony-spresense/edge_impulse_firmware.spk
      |0%-----------------------------50%------------------------------100%|
      Traceback (most recent call last):
        File "/home/reza/Downloads/IoT/Spresense/sony-spresense/flash_writer.py", line 716, in <module>
          sys.exit(main())
        File "/home/reza/Downloads/IoT/Spresense/sony-spresense/flash_writer.py", line 684, in main
          writer.install_files(ConfigArgs.PACKAGE_NAME, "install")
        File "/home/reza/Downloads/IoT/Spresense/sony-spresense/flash_writer.py", line 592, in install_files
          modem.send(bin)
        File "/home/reza/Downloads/IoT/Spresense/sony-spresense/xmodem.py", line 532, in send
          if isinstance(callback, collections.Callable):
      AttributeError: module 'collections' has no attribute 'Callable'
      

      The working folder has:

      $ ls -l
      total 476
      -rw-rw-r-- 1 reza reza    981 Jul 12 21:45 '=2.7.0'
      -rw-rw-r-- 1 reza reza    231 Jul 12 21:45 '=3.4'
      -rw-r--r-- 1 reza reza 410880 Apr 13 20:48  edge_impulse_firmware.spk
      -rwxr-xr-x 1 reza reza    999 Mar  9 21:26  flash_linux.sh
      -rwxr-xr-x 1 reza reza    999 Mar  9 21:26  flash_mac.command
      -rw-r--r-- 1 reza reza    654 Mar  9 21:26  flash_windows.bat
      -rwxr-xr-x 1 reza reza  23232 Mar  9 21:26  flash_writer.py
      drwxrwxr-x 2 reza reza   4096 Jul 12 21:43  __pycache__
      -rw-r--r-- 1 reza reza  22076 Mar  9 21:26  xmodem.py
      

      Using instructions for Spresense at web site.

      Would appreciate some guidance on resolving this anomaly. In a separate project, I did successfully flash the Himax board using Edge Impulse instructions. I use that board for object detection demonstrations. I would like to repeat the exercise using Spresense. Unless there are specific steps or libraries that I have missed/skipped, I am not sure how to resolve the anomaly. All suggestions are welcome.

      Thanks.

      Kind regards.

      C 1 Reply Last reply Reply Quote
      • C
        CamilaSouza DeveloperWorld @Matha 1 last edited by

        Hey, @Matha-1

        This might have something to do with the Python version you are using..
        What is the version you are using?

        M 1 Reply Last reply Reply Quote
        • M
          Matha 1 @CamilaSouza last edited by

          @CamilaSouza That was the general consensus from several other persons too.

          The original attempt was with v3.10 and subsequently I tried v3.6 - each failed with a different error message. Haven't had time to inspect the EI code (or perhaps it is beyond my expertise).

          The suggestion to lower the rate was tried too without success.

          Since there are other projects where I can apply the Spresense hardware (and Edge Impulse works fine for me with other boards), I'm going to deviate from my original plan and get the LTE extension board to do an alternate project.

          Sorry for the late response. Thanks for your support as usual.

          Kind regards.

          D 1 Reply Last reply Reply Quote
          • D
            DevMarcial @Matha 1 last edited by

            @Matha-1
            The issue was fixed on September 30th. See the latest release.

            See Issue #3.

            C 1 Reply Last reply Reply Quote
            • C
              CamilaSouza DeveloperWorld @DevMarcial last edited by

              @DevMarcial

              Thanks for the info!

              1 Reply Last reply Reply Quote
              • HayaZahra
                HayaZahra last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote
                • First post
                  Last post
                Developer World
                Copyright © 2021 Sony Group Corporation. All rights reserved.
                • Contact us
                • Legal