Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Trouble flashing LoRa32 V2.1_1.6 (Paxcountrer) with new code

    Technical Discussion
    2
    2
    539
    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.
    • C
      crisant last edited by

      I recently got a LILYGO LoRa32 V2.1_1.6 that ships with the Paxcounter firmware. I tried uploading a new empty Arduino program onto the device but I'm unable to do so.

      alt text

      I even shorted IO0 with ground to enter flash mode but nothing works. How do I flash a new program using the Arduino IDE?

      teastain2 1 Reply Last reply Reply Quote 0
      • teastain2
        teastain2 @crisant last edited by teastain2

        @crisant Right away I don't recommend the blank Arduino IDE "New Sketch" without something for it to do, such as a delay(100);.
        People have found that they cannot connect afterwards because of the short scan time not allowing any other activity!
        I made this sketch to test that the board is working by printing to the serial port:

        //words preceded by "//"" are comments and are not executed
        bool ticktock; //declare ticktock as a boolean flag
        
        void setup() {          //runs once on start up
        Serial.begin (115200); //open the serial port for USB cable
        }
        
        void loop() {         //runs in circles!
        ticktock = !ticktock; //every pass through reverse the flag
          if (ticktock) {     //test current value of the ticktock flag
            Serial.println("tick");  
          } else {             //prints one or the other to the USB port
            Serial.println("tock");
          }
        delay (1000);           //wait for a second and run again!
        }
        

        I went to their GitHub repository for uploading instructions and they are different than a normal ESP32
        https://github.com/LilyGO/ESP32-Paxcounter#uploading
        so try following their ESP32 with LORA instructions

        Also when you pull down the board type menu in Arduino IDE where you select your board type, there is also the available ports.
        Check to see that the USBmodem is stable.
        Sometimes when I get the Failed Uploading error I have to reboot my computer. This has been a "bug" I have faced for years.
        -Terry

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors