ESP_igrr wrote: ↑Mon Jul 24, 2023 9:06 pm
Sorry, still can't understand what is the "image version" you are mentioning. Could you explain what is the difference between "app version" and "image version"?
(As far as esp-idf is concerned, there is only "app version". Hence I am confused about the term "image version".)
Regarding automation: I would actually recommend to not use version.txt at all, and use Git tags for versioning the app. If version.txt doesn't exist, ESP-IDF determines the version of your app using "git describe" command. This is compatible with most Git workflows, as well as release processes in Github, Gitlab, etc., which rely on Git tags.
Could you explain what is the difference between "app version" and "image version" ?
I don't know either, I thought it was the same thing, maybe it can just update the apps, without changing the rest of the image.
Inside this appear: "Image version: 1" and "App version: 1.0.0"
Code: Select all
PS C:\esp32-Proj\WSS_SERVER_AND_UI_INTEGRATION_S3_12-12-2022> C:\.espressif\python_env\idf5.1_py3.11_env\Scripts\python.exe C:\esp-idf\components\esptool_py\esptool\esptool.py image_info --version 2 build/wss_server.bin
esptool.py v4.6.2
File size: 1409984 (bytes)
Detected image type: ESP32-S3
ESP32-S3 image header
=====================
Image version: 1
Entry point: 0x40379804
Segments: 5
Flash size: 32MB
Flash freq: 80m
Flash mode: DOUT
ESP32-S3 extended image header
==============================
WP pin: 0xee (disabled)
Flash pins drive settings: clk_drv: 0x0, q_drv: 0x0, d_drv: 0x0, cs0_drv: 0x0, hd_drv: 0x0, wp_drv: 0x0
Chip ID: 9 (ESP32-S3)
Minimal chip revision: v0.0, (legacy min_rev = 0)
Maximal chip revision: v0.99
Segments information
====================
Segment Length Load addr File offs Memory types
------- ------- ---------- ---------- ------------
1 0x870ec 0x3c0c0020 0x00000018 DROM
2 0x05444 0x3fc9cb00 0x0008710c BYTE_ACCESSIBLE, MEM_INTERNAL, DRAM
3 0x03ab8 0x40378000 0x0008c558 MEM_INTERNAL, IRAM
4 0xb73c8 0x42000020 0x00090018 IROM
5 0x10fa8 0x4037bab8 0x001473e8 MEM_INTERNAL, IRAM
ESP32-S3 image footer
=====================
Checksum: 0xb4 (valid)
Validation hash: 9f00abaf2fed6410b881d5c20e43a433f2889f84177eb8f9b649b22ce5912643 (valid)
Application information
=======================
Project name: wss_server
App version: 1.0.0
Compile time: Jul 23 2023 01:00:11
ELF file SHA256: ef703b110f814aff749388f8f3f44c1d6f4357de1972fc6fb59698db2dfde8a2
ESP-IDF: v5.1
Secure version: 0
ESP_igrr wrote: ↑Mon Jul 24, 2023 9:06 pm
Regarding automation: I would actually recommend to not use version.txt at all, and use Git tags for versioning the app. If version.txt doesn't exist, ESP-IDF determines the version of your app using "git describe" command. This is compatible with most Git workflows, as well as release processes in Github, Gitlab, etc., which rely on Git tags.
Thank's for the suggestion, but if i use git describe inside my project folder, doesn't work.
Sorry for my ignorance, but i don't know how to work with git and versioning yet.
Code: Select all
C:\esp32-Proj\WSS_SERVER_AND_UI_INTEGRATION_S3_12-12-2022>git describe
fatal: not a git repository (or any of the parent directories): .git