Support required to Flash in ESP32-S2-mini via controller

dhineshdhamodar.
Posts: 9
Joined: Mon Nov 20, 2023 4:03 am

Re: Support required to Flash in ESP32-S2-mini via controller

Postby dhineshdhamodar. » Wed Dec 06, 2023 5:04 am

ESP_Sprite wrote:
Thu Nov 23, 2023 3:11 am
Note that there are two bootloaders: the first stage lives in ROM and cannot be flashed ever, the 2nd stage lives in the SPI flash and you generally flash that automatically along with your application.
Hi ESP_sprite,
Thank you for giving this information. If you don't mind, Could please some more information regarding the BOOTLOADER FLASHING STAGES on ROM and SPI FLASH.
And I need your support as well on bellow mentioned queries;
I can able to see, there are two different function available; flash_binary(); and load_ram_binary(); By using these function call for flashing to ESP32, which way of function I have to follow?
And currently I'm using flash_binary(); function, but I'm not getting proper output because in middle of process ESP32 BOOT PIN automatically fluctuating to HIGH & LOW.

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Support required to Flash in ESP32-S2-mini via controller

Postby lbernstone » Wed Dec 06, 2023 9:47 pm

flash_binary writes a partition to the flash, just like esptool write_flash would do. Here is the example, and how to use it in code.
load_ram_binary loads a file directly into the target's memory. You could use this on a device without flash, or to start a more complicated bootloader process. Here's the example, which would send over a small binary (less than 250k).

dhineshdhamodar.
Posts: 9
Joined: Mon Nov 20, 2023 4:03 am

Re: Support required to Flash in ESP32-S2-mini via controller

Postby dhineshdhamodar. » Thu Dec 14, 2023 5:11 am

Hi have a great day!

In flashing steps, Currently I have crossed SPI PRAMETERS steps. Now I'm working on flash begin step, I stuck up here, because of I can't able find the proper value of bin size and address.
Could please support me for find out the respective value and completing the remaining steps.


Thanks in Advance

dhineshdhamodar.
Posts: 9
Joined: Mon Nov 20, 2023 4:03 am

Re: Support required to Flash in ESP32-S2-mini via controller

Postby dhineshdhamodar. » Wed Dec 20, 2023 10:55 am

Hi Buddy,

I have attached my received capture, there I was highlighted particular area of data's, which I was receiving particular data in my all of receiving frame. Because of these data only, I suspect these data's only the reason Wi-Fi MCU not waking up after the MD5 verification step.
Here I couldn't understand the reason, why these data consecutively repeating in every frames ?
Help me out from this ! and share some procedure to avoid unwanted data repetition.
Attachments
Capture1.JPG
Capture1.JPG (59 KiB) Viewed 56645 times
Capture.JPG
Capture.JPG (42.7 KiB) Viewed 56648 times

dhineshdhamodar.
Posts: 9
Joined: Mon Nov 20, 2023 4:03 am

Re: Support required to Flash in ESP32-S2-mini via controller

Postby dhineshdhamodar. » Fri Dec 22, 2023 10:38 am

Dear all,

have a great day!

Here I attached a document of communication data between MCU and ESP32-S2-MINI

In that document, Communication data present until "Loader Flash Begin cmd",

And I implemented upto "Loader Flash Data cmd", After finish the flashing process ESP32 is not waking up, Instead ESP32 is consecutively Resetting.

I couldn't understand the backed process of this, Does anyone aware this. Please help me out.
Attachments
captur data.txt
(4.69 KiB) Downloaded 2590 times

Who is online

Users browsing this forum: No registered users and 61 guests