logo elektroda
logo elektroda
X
logo elektroda

[Solved] How to transfer an Arduino project from ESP32 to ESP32-S3 in Visual Studio Code - board error

denis789 246 9
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 21530719
    denis789
    Level 10  
    Hello.
    I have a finished project on an Arduino ESP32, I have uploaded it via Visual Studio Code and would like to install it on a newer ESP32-S3. How to flip it as it throws me a board error.
    Photo attached
    Please help ;) .
    Screenshot showing Arduino project compilation in Visual Studio Code; a fatal error indicates the wrong chip selected for ESP32-S3.
    .
    AI: What exactly is the error that appears when trying to upload a project to the ESP32-S3? Can you paste the content of the message or describe what is displayed? .
    Fatal error chip
    AI: What board do you have selected in the Arduino/VS Code settings when trying to compile and upload the project? Did you specifically select the ESP32-S3 model? .
    ESP32-S3
    Do you have a problem with Arduino? Ask question. Visit our forum Arduino.
  • ADVERTISEMENT
  • #2 21530732
    JacekCz
    Level 42  
    denis789 wrote:
    ready project on arduino esp32


    So binary only ?
    No matter what corrections need to be made - you need to leave the source form
  • ADVERTISEMENT
  • #3 21530741
    denis789
    Level 10  
    I'll maybe send the draft to the post office and you can see for yourself, ok?
  • #4 21530921
    khoam
    Level 42  
    denis789 wrote:
    I have a finished project on an arduino esp32 uploaded via Visual Studio Code and would like to install it on the newer esp32-S3 .
    .
    What does the file platform.ini for this project look like? Not in the form of a mobile phone photo.
  • ADVERTISEMENT
  • #5 21531030
    JacekCz
    Level 42  
    khoam wrote:
    Not in the form of a cellphone photo.



    Another orthodox who doesn't like cellphone code photos ....
    ;)

    Added after 2 [minutes]:

    denis789 wrote:
    I'll maybe post this project and you'll see for yourself, ok?
    .

    I saw for myself that the sources are there. So what?
    And what, I have to get exactly this module module , put up the configuration etc.... 200PLN / hour, plus costs
  • #6 21531122
    khoam
    Level 42  
    denis789 wrote:
    ESP32-S3
    .

    The uploaded platform.ini file defines a board with ESP32, not ESP32-S3:
    Code: Ini
    Log in, to see the code
    .
    It should be, for example, one of the following:
    Comparison table of ESP32-S3 boards with their names and PlatformIO board identifiers. .

    For a full list of supported tiles, please refer to the official PlatformIO documentation:
    https://docs.platformio.org/en/latest/boards/index.html
  • Helpful post
    #7 21531303
    DJ_KLIMA
    Level 24  
    This should import itself, Platformio/quick access / import Arduino project (you select the board / module), then add the libraries to the Platformio mechanism, or drop them traditionally into the include / lib directory, set the extra option for the project in platformio.ini.
  • ADVERTISEMENT
  • #8 21531512
    denis789
    Level 10  
    And that's what I meant, I'll see in the evening if it goes like that. Thanks for the hint.
  • #9 21539234
    denis789
    Level 10  
    Everything OK, works as it should :) .
    Thank you for your help
  • #10 21539242
    denis789
    Level 10  
    All according to DJKlima instructions ;)
    I added the entry
    [env:esp32-s3-devkitc-1]
    platform = espressif32
    board = esp32-s3-devkitc-1
    It downloaded the rest by itself.
    Thanks again ;) .

Topic summary

The discussion addresses the issue of transferring an Arduino project from an ESP32 to an ESP32-S3 using Visual Studio Code with PlatformIO. The main problem was a board error during upload caused by incorrect board configuration in the platform.ini file, which specified the ESP32 instead of the ESP32-S3. The solution involved updating the platform.ini to include the correct board entry for the ESP32-S3, such as [env:esp32-s3-devkitc-1] with platform = espressif32 and board = esp32-s3-devkitc-1. PlatformIO then automatically downloaded the necessary files and libraries. It was also recommended to import the Arduino project properly into PlatformIO, select the correct board, and manage libraries via PlatformIO’s mechanisms or manually in the include/lib directories. After these adjustments, the project compiled and uploaded successfully to the ESP32-S3.
Summary generated by the language model.
ADVERTISEMENT