Trouble flashing LoRa32 V2.1_1.6 (Paxcountrer) with new code
-
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.
I even shorted IO0 with ground to enter flash mode but nothing works. How do I flash a new program using the Arduino IDE?
-
@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 instructionsAlso 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