Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Tensorflow Lite MicroPython support - I cannot use Pycom modules?

    Scheduled Pinned Locked Moved Firmware
    22 Posts 2 Posters 133 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • robert-hhR Offline
      robert-hh @Adnan Sabovic 0
      last edited by robert-hh

      @Adnan-Sabovic-0 Like I answered in the Micropython forum: A reliable approach is performing a flash full erase using:

      esptool.py --port /dev/ttyUSB0 --chip esp32 erase_flash

      And the reinstall the firmware. That should fix the flash layout.

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Adnan Sabovic 0 @robert-hh
        last edited by

        @robert-hh I did what you wrote here but again same issue. I performed a flash full erase and then installed again firmware and uploaded it on my board but again same error.

        robert-hhR 1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @Adnan Sabovic 0
          last edited by

          @Adnan-Sabovic-0 That's strange. After a full erase everything should come up straight again.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            Adnan Sabovic 0 @robert-hh
            last edited by

            @robert-hh I really don't know. I tried everything but this is really hard to enable to work. Based on their suggestion on this link (https://github.com/mocleiri/tensorflow-micropython-examples/blob/main/examples/person_detection/README.md) the microlite-spiram-16m-esp32-firmware should be used with esp32. After error I thought it's quite heavy for my board and then tried a lighter version but again not possible to run anything on the board. For the lighter version of firmware I got this:

            Rebooting...
            ets Jun  8 2016 00:22:57
            
            rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
            configsip: 0, SPIWP:0xee
            clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
            mode:DIO, clock div:2
            load:0x3fff0030,len:4604
            ho 0 tail 12 room 4
            load:0x40078000,len:13872
            load:0x40080400,len:3356
            entry 0x4008061c
            E (847) psram: PSRAM ID read error: 0xffffffff
            E (847) spiram: SPI RAM enabled but initialization failed. Bailing out.
            E (10) spiram: SPI RAM not initialized
            
            
            robert-hhR 1 Reply Last reply Reply Quote 0
            • robert-hhR Offline
              robert-hh @Adnan Sabovic 0
              last edited by

              @Adnan-Sabovic-0 If 16m in the firmware name indicates 16MByte flash, then the firmware is wrong. FiPy has 8MB flash. So you need the matching firmware version.

              A 1 Reply Last reply Reply Quote 0
              • A Offline
                Adnan Sabovic 0 @robert-hh
                last edited by

                @robert-hh I am not using FiPy right now. I ordered esp32-WROOM-32 to test as you suggested me to use pure MicroPython code (based on esp32). Because of that, I tried with 16MB firmware. With FiPy it works with "lighter" firmware but I want to test camera which is based on what I observed easier to do with esp32 board.

                robert-hhR 1 Reply Last reply Reply Quote 0
                • robert-hhR Offline
                  robert-hh @Adnan Sabovic 0
                  last edited by

                  @Adnan-Sabovic-0 The WROOM-32 module has 4 MB Flash and no SPIRAM. So you have to use the MICROLITE version.

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    Adnan Sabovic 0 @robert-hh
                    last edited by

                    @robert-hh I just checked that, but are there any products with 8/16 MB Flash and SPIRAM as well. I also saw that they use esp32 cam. Is there classic esp32 cam with additional MB module and integrated camera is enough to support the proposed firmware (MICROLITE SPIRAM CAM)?

                    robert-hhR 1 Reply Last reply Reply Quote 0
                    • robert-hhR Offline
                      robert-hh @Adnan Sabovic 0
                      last edited by

                      @Adnan-Sabovic-0 The must be hundreds of different ESP32 modules available. You have to Search. The first which I found was a esp32-CAM module, with 4 MB flash and 4 MB SPIRAM + camera.

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Adnan Sabovic 0 @robert-hh
                        last edited by

                        @robert-hh Yes, indeed. Sit and search :)

                        Thanks for help!

                        robert-hhR 1 Reply Last reply Reply Quote 0
                        • robert-hhR Offline
                          robert-hh @Adnan Sabovic 0
                          last edited by

                          @Adnan-Sabovic-0 I have a few links here, don'rt know if it helps:
                          https://www.berrybase.de/dev.-boards/esp8266-esp32-d1-mini/boards/esp32-cam-development-board-inkl.-ov2640-kameramodul?sPartner=g_shopping&msclkid=ff9ff1f60f271b5e66f793976b4cf5eb
                          https://de.banggood.com/ESP32-CAM-WiFi-+-bluetooth-Camera-Module-Development-Board-ESP32-With-Camera-Module-OV2640-Geekcreit-for-Arduino-products-that-work-with-official-Arduino-boards-p-1394679.html?gmcCountry=DE&currency=EUR&cur_warehouse=CZ&createTmp=1&utm_source=bing_pa&utm_medium=cpc_eu&utm_content=dcr&utm_campaign=dcr-co-bpla-deg-all-pc-0903&ad_id=&msclkid=35036f519f6318bf8aa30d30fb087491

                          A 1 Reply Last reply Reply Quote 0
                          • A Offline
                            Adnan Sabovic 0 @robert-hh
                            last edited by

                            @robert-hh I decided to not use esp32 cam as it can only operate at voltage above 4V, which is not useful for my setup. I have a question related to ESP32-WROVER-IE(16MB) chip. On which expansion board I should attach it and flash? This chip offers 16MB Flash and 8MB SPIRAM, somehing that I need for my project, but still no available boards on which this chip is attached.

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • 1
                            • 2
                            • 1 / 2
                            • First post
                              Last post

                            Pycom on Twitter

                            Pycom