Giter VIP home page Giter VIP logo

Comments (2)

pyjamasam avatar pyjamasam commented on August 18, 2024

Yes unfortunately the arduino IDE doesn't upload the required SPIFFs.

There are two that need to be created and uploaded.

The best bet is to start out with the initialflash.bin file from the releases section on github and flash that to the entire chip (its a full 4MB flash image). This will setup all the partitions and all required stuff.

Then after that you can flash a new firmware from the arduino IDE if you want.

from canserver.

IndyJoeA avatar IndyJoeA commented on August 18, 2024

Thanks, I tried that and even with the initialflash.bin file loaded first, Arduino still overwrites all the flash contents with and uses its own default partitions. However I found a workaround. If you turn on verbose upload output in Arduino's settings, it will give you the command being sent to esptool.exe. I removed all the entries at the end except for the .bin file, and it only uploaded my new code to the application partition and left everything else intact. I'm posting it below in case it helps anybody else out:

C:\Users\<yourusername>\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\2.6.1\esptool.exe --chip esp32 --port COM3 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x10000 C:\Users\<yourusername>\AppData\Local\Temp\arduino_build_<yourbuildnumber>/CANserver.ino.bin

from canserver.

Related Issues (13)

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.