parttool.py crashes when retrieving partition info
Posted: Thu Mar 05, 2020 10:29 am
Using parttool.py from esp-idf v4.0 tag (commit hash f9cb434eeb90be4f34893a278d0a70a8b21e4ca2), the following error appears when attempting to retrieve partition info:
This error occurs when a valid partition name is given, nothing is returned otherwise.
Code: Select all
$ parttool.py --partition-table-file partition_table.csv get_partition_info --partition-name ota_data
Traceback (most recent call last):
File "/home/xavier/esp-idf/components/partition_table/parttool.py", line 346, in <module>
main()
File "/home/xavier/esp-idf/components/partition_table/parttool.py", line 339, in main
op(**common_args)
File "/home/xavier/esp-idf/components/partition_table/parttool.py", line 208, in _get_partition_info
for i in info:
TypeError: 'NoneType' object is not iterable