Can we disable Flash erase function?

Dakshk
Posts: 23
Joined: Tue May 21, 2024 11:02 am

Can we disable Flash erase function?

Postby Dakshk » Mon Mar 03, 2025 1:14 pm

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

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Can we disable Flash erase function?

Postby MicroController » Mon Mar 03, 2025 1:49 pm

Flash memory must be erased before new data can be written to it, so ...

Sprite
Espressif staff
Espressif staff
Posts: 10593
Joined: Thu Nov 26, 2015 4:08 am

Re: Can we disable Flash erase function?

Postby Sprite » Mon Mar 03, 2025 11:46 pm

Why specifically would you want to disable such a specific function?

Dakshk
Posts: 23
Joined: Tue May 21, 2024 11:02 am

Re: Can we disable Flash erase function?

Postby Dakshk » Wed Mar 05, 2025 7:55 am

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.

Sprite
Espressif staff
Espressif staff
Posts: 10593
Joined: Thu Nov 26, 2015 4:08 am

Re: Can we disable Flash erase function?

Postby Sprite » Wed Mar 05, 2025 11:52 pm

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.

Who is online

Users browsing this forum: Google [Bot], PerplexityBot, Qwantbot and 9 guests