Well, we need a tool here, not a toy.
So, use PlatformIO, not Arduino IDE.
But, of course, you can taylor all the source files and libs by hand to your Arduino IDE and flash the ESP32 this way. That should work, but requires some work. With PlatformIO it’s less than 10 clicks.
The LoRa chip on board answers with different version than Lmic expects from a Semtech SX1276/1272 chip.
RegVersion: Version code of the chip. Bits 7-4 give the full revision number;
bits 3-0 give the metal mask revision number. Default value: 0x22
The default value is checked by Lmic in radio.c line 694 / 696.
There is no answer from the chip seen by Lmic, causing radio.c to stop. This could be caused by a different wiring of the SPI interface (MISO/MOSI/SCLK) of your TTGO v2.1 boards.
This looks like a broken SPI connection between the LoRa chip and ESP32 cpu.
Perhaps they really soldered the LoRa chip 180 degrees rotated? That would mean that they don’t test the boards, or test it using a software which has no error handling on the internal SPI interface, just “fire & forget” the commands to the LoRa chip…
You could validate correct or wrong orientation of the HPD13A LoRa chip on board by tracing it’s GND pins with a multimeter. It has 3 GND pins, see here:
On the photo it can be seen that the HPD LoRa module is not rotated.
There are gaps in the soldering of the shield. On one (pin row) side there is only one gap. This is also the side with a marker dent on top (not visible because covered by the label). This should be on the same side as the SD card slot. (The shield soldering on the other side of the HPD module has 2 gaps.)
Just checked mine, I have no LoRa sticker at all, so I guess that doesn’t matter too much
I don’t have any marking on the PCB either (so it is like the one of @Verkehrsrot) and PAXCounter runs fine – Except I can’t get it working on battery, but that’s another story…
not working on battery Does not power on, or does the paxcounter software crash?
(The latter one could be caused by brownout detection, i disabled it for TTGO v2.1, because on my board sample it works without since Espressif 1.0.1)
To be honest I haven’t tried any other sketch, apart from different versions of the PAX counter – At this point in time I am new to ESP32, I have more confidence in the PAX Counter than whatever I could write
If you have some experience with Arduino already you can try some of the basic sketches like blink.ino. They work just as wel on the ESP32 as they do on an original Arduino Uno (or other Atmel MCU’s).