Connection issue to WiPy 3.0r



  • Hi,

    I was uploading many files to WiPy board using PySense board (more than 1000 files). During uploading, it suddenly prompted me the upload fails. Then, the COM3 connection was not responding.

    Then, I reset the board and after that I am not able to connect to the board using COM3 and also Wi-Fi. When I try to connect using Atom it just prompts the below message and nothing happens:

    Autoconnect: Found a PyCom board on USB
    Autoconnect: Connecting on COM3...

    I also tried to use PuTTY to connect to COM3 and the new terminal pops up, but it is not responding.

    How can I access to the board and delete all files or rest factory the board?

    Thanks



  • @momentaj When using the pycom uploader 1.15.2, you have tghe option to erase the device on uploading a new firmware image.



  • I tried to do that but it there is no change. Here are the steps which I did:
    1- Connecting P12 to the 3.3v pin.
    2- Attaching USB cable to the PySense board while the pins are connected.
    3- Holding the pins connected for more than 3 seconds.

    Atom shows this message and I am not able to type in it:

    Autoconnect: Found a PyCom board on USB
    Autoconnect: Connecting on COM3...
    ets Jun  8 2016 00:22:57
    
    rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0x00
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:QIO, clock div:1
    load:0x3fff0008,len:4
    load:0x3fff000c,len:148
    load:0x40078000,len:11876
    ho 0 tail 12 room 4
    load:0x40080000,len:268
    entry 0x40080034
    Autoconnect: Previous board is not available anymore
    

    Then, I disconnected the USB and connect it again and it prompts:

    Autoconnect: Found a PyCom board on USB
    Autoconnect: Connecting on COM3...
    

    Am I doing something wrong?

    Note: as it is shown in the pin layout here, I tried connecting 3rd and 8th top-right pins.

    Thanks



  • @momentaj said in Connection issue to WiPy 3.0r:

    @paul-thornton I have many libraries to use and all of the are Python files.

    Sounds much too huge for an esp32. I guess that you have to use every trick to run your stuff.

    • Switch off compression for USB transfer.

    • figured out unused files and don't copy them

    • precompile the libs and make the important ones frozen

    • use this string something feature, so you strings will be located in flash and used by reference

    • if they are too large for the internal flash, place some on an SD card

    • merge some files, so you don't waste that many blocks.

    • shorten all names (class, methods, properties and variables)

    • think small and redesign (do you really need all this stuff in this detail)

    • think big and redesing (add a unix machine with a few GByte as a coproc)



  • @paul-thornton I have many libraries to use and all of the are Python files.



  • Hello.

    You can put the board into a "Safe Boot" mode by connection P12 to the 3.3v pin and reset the board. It will stop any code in main.py or boot.py from executing.

    Afterwhich you should be able to connect to the board and run

    import uos
    uos.mkfs("/flash") 
    

    To clear the flash filesystem back to empty.
    That said. 1k files sounds excessive. Are they all code?



Pycom on Twitter