Hello; I am trying to implement your introduction tutorial on the TTGO LoRa board using platform IO. I copied your code (sender) into platform IO and it compiles successfully but I cannot upload it to the board. It fails with an error message. “A fatal error occurred: This chip is ESP8266 not ESP32. Wrong –chip argument?”
In platform IO I selected the board version 1. Should I be using a different board version or is there something more basic wrong? My platformio.ini reads
platform = espressif32
board = ttgo-lora32-v1
framework = arduino
monitor_speed = 115200
upload_speed = 115200
lib_extra_dirs = ~/Documents/Arduino/libraries
lib_deps = LoRa
PlatformIO is identifying your board as an ESP8266 board.
Were you able to upload code to the board using Arduino IDE before (and with an ESP32 board selected)?
Make sure you don’t have any other boards connected to your computer that might be confusing PlatformIO.
I have not used the arduino IDE for a few months and have not tried to use it to load this code. I tried to install the esp32 boards manager into the arduino IDE but the download failed twice on me. I think this was due to my poor internet connection. I will try that again tomorrow. I noticed that the specific board TTGO-LoRa-oled is not in the list of boards supported. In your tutorial the instructions for the arduino with the TTGOboard specified the generic ESP32 board. DO-IT-ESP32-DEVKIT-V1. I could try selecting that board in platformio. Otherwise no progress yet.
The installation will fail if you don’t have a proper internet connection.
Try selecting that board (DOIT-ESP32-DEVKIT-V1) in PlatformIO and in Arduino IDE and see if you succeed in uploading the code in any of the IDEs.
Then, let me know the results.
Well, I think I have tracked down my problem to a bad micro usb connector on one of the TTGO boards. I have managed to upload both the send and receive sketches to both boards and verify that they work. However, the upload process is completely hit or miss. regardless of which IDE I use. So, thanks for your assistance. I will replace the bad board and try again later.