• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

PlatformIO and TTGO LoRa32 SX1276 OLED

Q&A Forum › PlatformIO and TTGO LoRa32 SX1276 OLED
0 Vote Up Vote Down
RICHARD HODGES asked 4 years ago
7 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Can you describe your question?
Regards,
Sara

0 Vote Up Vote Down
RICHARD HODGES answered 4 years ago

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 

[env:ttgo-lora32-v1]
platform = espressif32
board = ttgo-lora32-v1
framework = arduino
monitor_speed = 115200
upload_speed = 115200
lib_extra_dirs = ~/Documents/Arduino/libraries
lib_deps = LoRa

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
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.
Regards,
Sara

0 Vote Up Vote Down
RICHARD HODGES answered 4 years ago

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.
Thanks,  

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
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.
Regards,
Sara

0 Vote Up Vote Down
RICHARD HODGES answered 4 years ago

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.
Rick

0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Ok, Rick.
Thanks for the follow-up.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.