Page 1 of 1

Can we disable Flash erase function?

Posted: Mon Mar 03, 2025 1:14 pm
by Dakshk
Hello,
I am working on ESP32c3 dev kit and wondering that if flash erase can be disabled or not. I found sources and according to them we can disable flash erase by disabling UART download mode, but if I do not want to disable this feature can I explicitly disable only the erase functionality?

Thank You

Re: Can we disable Flash erase function?

Posted: Mon Mar 03, 2025 1:49 pm
by MicroController
Flash memory must be erased before new data can be written to it, so ...

Re: Can we disable Flash erase function?

Posted: Mon Mar 03, 2025 11:46 pm
by Sprite
Why specifically would you want to disable such a specific function?

Re: Can we disable Flash erase function?

Posted: Wed Mar 05, 2025 7:55 am
by Dakshk
I want to use UART for other communication purposes and along with it not allow anyone to erase it through UART using commands, so I was wondering if I can disable that particular command.

Re: Can we disable Flash erase function?

Posted: Wed Mar 05, 2025 11:52 pm
by Sprite
Why not use different pins to connect your peripheral to? On bootup, you can have the settings as-is, maybe with txd and rxd connected to a debug header inside the device or something. When your app starts up, it re-initializes the UART but connects it to pins where your actual peripheral lives.