Giter Club home page Giter Club logo

esp-bootloader-plus's Introduction

esp bootloader plus

Description

This version runs fine on my ESP32S3 board. If it does not work for you, check out the next section.

My Steps of Adding Support for ESP32S3

  1. Follow the instructions from README to add the custom bootloader to your project.
  2. Build the project directly
    • It's supposed to fail since your project is based on ESP32S3. Keep a record of the error message for later use.
  3. Make a copy of ./esp-xz/ld/esp32c3 and name it as ./esp-xz/ld/esp32s3
  4. Modify ./esp-xz/CMakeLists.txt so it will use the corresponding linker.lf when the project target is ESP32S3
if(BOOTLOADER_BUILD)
        if (CONFIG_IDF_TARGET_ESP32C2 OR CONFIG_IDF_TARGET_ESP32C3 OR CONFIG_IDF_TARGET_ESP32S3)
                target_linker_script(${COMPONENT_LIB} INTERFACE "ld/${CONFIG_IDF_TARGET}/linker.lf")
        endif()
endif()
  1. Modify ./esp-xz/ld/esp32s3/linker.lf according to the error message showed in step 2
    • Adjust the org for iram_loader1_seg
    • e.g. My error message contains something like section .iram_loader.text LMA [00000000403cc700,00000000403cf8b6] overlaps section.iram.text LMA [00000000403c9700,00000000403ccc0b]
      • So I adjusted the org value from 0x403DA000 to 0x403ccc0d to avoid overlapping
      • Build the project again and keep adjusting until there's no more error
  2. Now the custom bootloader should be good to go on your ESP32S3 board

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.