chaosnature
New Member
- Joined
- Sep 15, 2022
- Messages
- 511
How to Flash Atom S3 with EspHome - HA
I struggled with flashing Esp32 S3 Atom lite with the (Sleeper85) project I was actively involved for the Rs485/CAN battery Comm conversion
- unlike flashing the Esp32 dev kit chip, it's not as straightforward.
but I finally found a way around it.
Project Link:
esphome-jk-bms-can/config/config_atom-s3-lite-esp32-s3.yaml at main · Sleeper85/esphome-jk-bms-can
Contribute to Sleeper85/esphome-jk-bms-can development by creating an account on GitHub.
![1714935744563.png 1714935744563.png](https://diysolarforum.com/data/attachments/213/213541-c0f5ac5bff9cfb471ffd2e9fdfe9bb60.jpg)
1. Make sure the GPIO is correct or else you will end up with a loop which you can only get out of by pressing and holding down the reset button and reflashing.
![1715436543891.png 1715436543891.png](https://diysolarforum.com/data/attachments/214/214690-3a7003024d5751d4caaafbc22e21654c.jpg)
2. Do the usual unplugging and replugging to detect the Atom S3 chip Comm port
![1714935864045.png 1714935864045.png](https://diysolarforum.com/data/attachments/213/213542-6c9bdfa270e1ed1c38331d7e10e071e7.jpg)
3. Connect to the port via the url on the below screenshot ( https://web.esphome.io/?dashboard_install )
![1714935966652.png 1714935966652.png](https://diysolarforum.com/data/attachments/213/213543-fd4e99293905c6f55d58be9bf3b2ac7f.jpg)
4. Prepare For First Use to obtain the IP address issued by your DHCP.
![1714936043096.png 1714936043096.png](https://diysolarforum.com/data/attachments/213/213544-a92edfca2a4a35c0fefba3518586683e.jpg)
Join it to your preferred Wifi network
![1714936178437.png 1714936178437.png](https://diysolarforum.com/data/attachments/213/213546-8f189a092a57f904583d1647e0482b94.jpg)
Now you have your Ip - you should be able to browse and get the above EspHome Web page.
On this page as a test if you have already downloaded the .bin file you can upload it and flash it - it should flash successfully and you will see the below log information after successful flash.
![1714936441073.png 1714936441073.png](https://diysolarforum.com/data/attachments/213/213547-5a3be5b181f18c2e999fc2fe6e0e52db.jpg)
a.
Do Adoption (and Copy New yaml into the new file) - If not already adopted (and change the name to desried name) Rememeber to delete any old yaml after copying the codes into the newlly adopted yaml
![1715435705423.png 1715435705423.png](https://diysolarforum.com/data/attachments/214/214688-9b86276e01f681184430fec0ba3647f7.jpg)
b.
5. Edit your yaml code and set the wireless section as below screenshot
![1714936549414.png 1714936549414.png](https://diysolarforum.com/data/attachments/213/213548-7f0b742db60620074817fa879a25f727.jpg)
Optional
- Enable Web
- Set Friendly name
![1714936793062.png 1714936793062.png](https://diysolarforum.com/data/attachments/213/213551-f970aa494d4cc1d3f66570c7d7561fbe.jpg)
6. Now flash over wireless.
![1714936600741.png 1714936600741.png](https://diysolarforum.com/data/attachments/213/213549-4398ae5fde17b370d514b77e7e8cc83f.jpg)
Again - Your confirmation is the below log screen
![1714937638383.png 1714937638383.png](https://diysolarforum.com/data/attachments/213/213557-0f269f7e3902c58df866af4f49d20fab.jpg)
7. Do not unplug your Atom chip throughout this process - Now do the normal Integration
![1714936946807.png 1714936946807.png](https://diysolarforum.com/data/attachments/213/213552-046eaa5c000fe6796c817a9c8f15e864.jpg)
8. Now Browse over to Config/EspHome/xxx.yaml file and rename (to name chosen) the yalm from esphome-web-6c42c4.yaml to jk-bms-ble-can-s3.yaml
![1714937255171.png 1714937255171.png](https://diysolarforum.com/data/attachments/213/213555-5c4bfb070e2aac44a50fd6a8f585b721.jpg)
Now you can safely unplug the Atom chip and reflug without losing the flashed data.
Hope you find this useful - took me weeks to finally figure this out.
You can also download the .bin file - sure you already know this
![1714937659612.png 1714937659612.png](https://diysolarforum.com/data/attachments/213/213558-234ccaac5c8938800f3301fbd68babd7.jpg)
Last edited: