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

[v5.1][idf.py] coredump-info, partition[0], IndexError: list index out of range (IDFGH-10305) #11564

Closed
3 tasks done
chipweinberger opened this issue Jun 1, 2023 · 1 comment
Assignees
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF

Comments

@chipweinberger
Copy link
Contributor

chipweinberger commented Jun 1, 2023

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

IDF version.

release/v5.1

Operating System used.

MacOS

How did you build your project?

Command line with idf.py

Development Kit.

ESP32-S3

What is the expected behavior?

I should get the coredump.

Note: my partition table is not at the default location CONFIG_PARTITION_TABLE_OFFSET=0xf000, but idf.py does not have an argument to set its location?

What is the actual behavior?

Exception thrown.

Steps to reproduce.

Run idf.py coredump-info

It may be required to have your partition table at a non-default location.

Debug Logs.

charlesweinberger@Chips-Macbook-Pro-2 jamcorder_app % idf.py coredump-info
Executing action: coredump-info
Serial port /dev/cu.usbserial-10
Connecting....
Detecting chip type... ESP32-S3
Failed to load core dump: parttool script execution failed with error 1, failed command was: '/Volumes/User/MBP-Google-Drive/jamcorder/firmware/.espressif/python_env/idf5.1_py3.11_env/bin/python /Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/partition_table/parttool.py --port /dev/cu.usbserial-10 read_partition --partition-type data --partition-subtype coredump --output /var/folders/kc/8ph49dv51xg62gfz9z77dp9w0000gn/T/tmptn9m651q'

┌────── Additional information about the error: 
│   
│   esptool.py v4.5.1
│   Serial port /dev/cu.usbserial-10
│   Connecting....
│   Detecting chip type... ESP32-S3
│   Chip is ESP32-S3 (revision v0.1)
│   Features: WiFi, BLE
│   Crystal is 40MHz
│   MAC: 7c:df:a1:f3:bc:a4
│   Uploading stub...
│   Running stub...
│   Stub running...
│   3072 (100 %)
│   3072 (100 %)
│   Read 3072 bytes at 0x00008000 in 0.3 seconds (86.3 kbit/s)...
│   Hard resetting via RTS pin...
│   Running /Volumes/User/MBP-Google-Drive/jamcorder/firmware/.espressif/python_env/idf5.1_py3.11_env/bin/python /Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/esptool_py/esptool/esptool.py --port /dev/cu.usbserial-10 read_flash 32768 3072 /var/folders/kc/8ph49dv51xg62gfz9z77dp9w0000gn/T/tmpx4745eh4...
│   Traceback (most recent call last):
│     File "/Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/partition_table/parttool.py", line 358, in <module>
│       main()
│     File "/Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/partition_table/parttool.py", line 351, in main
│       op(**common_args)
│     File "/Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/partition_table/parttool.py", line 182, in _read_partition
│       target.read_partition(partition_id, output)
│     File "/Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/partition_table/parttool.py", line 158, in read_partition
│       partition = self.get_partition_info(partition_id)
│                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
│     File "/Volumes/User/MBP-Google-Drive/jamcorder/firmware/esp-idf/components/partition_table/parttool.py", line 140, in get_partition_info
│       partition = partition[0]
│                   ~~~~~~~~~^^^
│   IndexError: list index out of range

│   
└────── end of additional information about the error.
@chipweinberger chipweinberger added the Type: Bug bugs in IDF label Jun 1, 2023
@github-actions github-actions bot changed the title [idf.py] coredump-info, partition[0], IndexError: list index out of range [idf.py] coredump-info, partition[0], IndexError: list index out of range (IDFGH-10305) Jun 1, 2023
@espressif-bot espressif-bot added the Status: Opened Issue is new label Jun 1, 2023
@chipweinberger
Copy link
Contributor Author

Read 3072 bytes at 0x00008000 in 0.3 seconds (86.4 kbit/s)

It is reading the wrong location for that parition table...

@chipweinberger chipweinberger changed the title [idf.py] coredump-info, partition[0], IndexError: list index out of range (IDFGH-10305) [v5.1][idf.py] coredump-info, partition[0], IndexError: list index out of range (IDFGH-10305) Jun 1, 2023
@espressif-bot espressif-bot added Status: Selected for Development Issue is selected for development Status: In Progress Work is in progress and removed Status: Opened Issue is new Status: Selected for Development Issue is selected for development labels Jun 5, 2023
@espressif-bot espressif-bot added Status: Reviewing Issue is being reviewed and removed Status: In Progress Work is in progress labels Jun 20, 2023
@espressif-bot espressif-bot added Status: Done Issue is done internally Resolution: NA Issue resolution is unavailable and removed Status: Reviewing Issue is being reviewed labels Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: NA Issue resolution is unavailable Status: Done Issue is done internally Type: Bug bugs in IDF
Projects
None yet
Development

No branches or pull requests

3 participants