karawin / KaRadio32_4

KaRadio32 for ESP-IDF 4.4
36 stars 12 forks source link

Issue with flashing Karadio on TTGO-TM-ESP32 #16

Open kang2k10 opened 4 months ago

kang2k10 commented 4 months ago

Снимок экрана 2024-06-03 163826 After press Start, Esp32 Flash Download Tool crashing with error

test offset :  65536 0x10000
case ok
test offset :  1900544 0x1d0000
case ok
test offset :  32768 0x8000
case ok
test offset :  4096 0x1000
case ok
test offset :  3809280 0x3a2000
case ok
Traceback (most recent call last):
  File "download_process.py", line 447, in OnButton_StartButton
  File "download_process.py", line 425, in start_func
  File "download_process.py", line 662, in flash_config
IndexError: index out of range

If i uncheck ttgotm.bin, flashing is done.

this error is because size ttgotm.bin is zerro

If i run nvs_partition.bat, i have next error:

LilyGO/TTGO-TM-ESP32 board
=================================================
input: ttgotm.csv
output: ./build/ttgotm.bin
Traceback (most recent call last):
  File "D:\KaRadio32_4\boards\nvs_partition_gen.py", line 831, in <module>
    main()
  File "D:\KaRadio32_4\boards\nvs_partition_gen.py", line 826, in main
    nvs_part_gen(input_filename, output_filename, part_size, is_key_gen, is_encrypt_data, key_file, version_no)
  File "D:\KaRadio32_4\boards\nvs_partition_gen.py", line 737, in nvs_part_gen
    write_entry(nvs_obj, row["key"], row["type"], row["encoding"], row["value"])
  File "D:\KaRadio32_4\boards\nvs_partition_gen.py", line 630, in write_entry
    nvs_instance.write_entry(key, value, encoding)
  File "D:\KaRadio32_4\boards\nvs_partition_gen.py", line 549, in write_entry
    encoding = encoding.lower()
               ^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'lower'
error  1 on the generation  for ttgotm.csv