Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse Application Information from a ESP32-C6 image (ESPTOOL-970) #1039

Closed
mzakharocsc opened this issue Dec 4, 2024 · 1 comment

Comments

@mzakharocsc
Copy link

Operating System

Xbuntu 22.04

Esptool Version

v4.8.1

Python Version

Python 3.10

Full Esptool Command Line that Was Run

esptool.py image_info --version 2 fw.bin

Esptool Output

ESP32-C6 image header
=====================
Image version: 1
Entry point: 0x40800258
Segments: 7
Flash size: 8MB
Flash freq: 80m
Flash mode: DIO

ESP32-C6 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: 13 (ESP32-C6)
Minimal chip revision: v0.0, (legacy min_rev = 0)
Maximal chip revision: v0.99

Segments information
====================
Segment   Length   Load addr   File offs  Memory types
-------  -------  ----------  ----------  ------------
['IROM']
      0  0x86a14  0x421a0020  0x00000018  IROM
['DRAM', 'BYTE_ACCESSIBLE', 'IRAM']
      1  0x095dc  0x40800000  0x00086a34  DRAM, BYTE_ACCESSIBLE, IRAM
['IROM']
      2  0x198268  0x42000020  0x00090018  IROM
['DRAM', 'BYTE_ACCESSIBLE', 'IRAM']
      3  0x12a78  0x408095dc  0x00228288  DRAM, BYTE_ACCESSIBLE, IRAM
['DRAM', 'BYTE_ACCESSIBLE', 'IRAM']
      4  0x03fb4  0x4081c060  0x0023ad08  DRAM, BYTE_ACCESSIBLE, IRAM
['RTC_IRAM', 'RTC_DRAM']
      5  0x00020  0x50000000  0x0023ecc4  RTC_IRAM, RTC_DRAM
['RTC_IRAM', 'RTC_DRAM']
      6  0x00008  0x50000020  0x0023ecec  RTC_IRAM, RTC_DRAM

ESP32-C6 image footer
=====================
Checksum: 0xeb (valid)
Validation hash: ead439409b0196190e8f14987102d104bfc347726069a2115f32456b09de3895 (valid)
0xabcd5432

What is the Expected Behaviour?

Application information to be the last section of the report.

More Information

The tool is looking for DROM segment for application information, when the image header resides in the first IROM segment in the ESP32-C6 image.

Other Steps to Reproduce

No response

@github-actions github-actions bot changed the title Unable to parse Application Information from a ESP32-C6 image Unable to parse Application Information from a ESP32-C6 image (ESPTOOL-970) Dec 4, 2024
@Dzarda7
Copy link
Contributor

Dzarda7 commented Dec 6, 2024

Hi @mzakharocsc, thanks for noticing this. You are not entirely right, because DROM and IROM segments share the same address space for newer chips, so the data are still in DROM, only the address is incorrect. Will fix that as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants