Hi,
I'm getting following error message when trying to use the ota update functionality (or basically when starting the server for the firmware):
python simple_ota_example/example_test.py
['ESP32']
Traceback (most recent call last):
File "simple_ota_example/example_test.py", line 118, in <module>
def test_examples_protocol_simple_ota_example(env, extra_data):
File "/Users/markus/devel/esp32/esp-idf/tools/ci/python_packages/ttfw_idf/__init__.py", line 151, in test
return test_func_generator(func, app, target, ci_target, module, execution_time, level, erase_nvs, **kwargs)
File "/Users/markus/devel/esp32/esp-idf/tools/ci/python_packages/ttfw_idf/__init__.py", line 117, in test_func_generator
test_target = local_test_check(target)
File "/Users/markus/devel/esp32/esp-idf/tools/ci/python_packages/ttfw_idf/__init__.py", line 85, in local_test_check
raise ValueError('IDF_TARGET set to {}, not in decorator target value'.format(idf_target))
ValueError: IDF_TARGET set to ESP32S2, not in decorator target value
any idea how to fix that?
esp32-s2 ota update sample code?
Re: esp32-s2 ota update sample code?
I am trying it on esp32, I am also facing same issue.
C:\Users\rrajk\esp\Espressif\frameworks\esp-idf-v4.4\examples\system\ota\simple_ota_example>python example_test.py build 8070
Traceback (most recent call last):
File "example_test.py", line 225, in <module>
def test_examples_protocol_simple_ota_example_with_flash_encryption_wifi(env, extra_data):
File "C:/Users/rrajk/esp/Espressif/frameworks/esp-idf-v4.4/tools/ci/python_packages\ttfw_idf\__init__.py", line 157, in test
return test_func_generator(func, app, target, ci_target, module, execution_time, level, erase_nvs, **kwargs)
File "C:/Users/rrajk/esp/Espressif/frameworks/esp-idf-v4.4/tools/ci/python_packages\ttfw_idf\__init__.py", line 123, in test_func_generator
test_target = local_test_check(target)
File "C:/Users/rrajk/esp/Espressif/frameworks/esp-idf-v4.4/tools/ci/python_packages\ttfw_idf\__init__.py", line 89, in local_test_check
raise ValueError('IDF_TARGET set to {}, not in decorator target value'.format(idf_target))
ValueError: IDF_TARGET set to ESP32, not in decorator target value
C:\Users\rrajk\esp\Espressif\frameworks\esp-idf-v4.4\examples\system\ota\simple_ota_example>python example_test.py build 8070
Traceback (most recent call last):
File "example_test.py", line 225, in <module>
def test_examples_protocol_simple_ota_example_with_flash_encryption_wifi(env, extra_data):
File "C:/Users/rrajk/esp/Espressif/frameworks/esp-idf-v4.4/tools/ci/python_packages\ttfw_idf\__init__.py", line 157, in test
return test_func_generator(func, app, target, ci_target, module, execution_time, level, erase_nvs, **kwargs)
File "C:/Users/rrajk/esp/Espressif/frameworks/esp-idf-v4.4/tools/ci/python_packages\ttfw_idf\__init__.py", line 123, in test_func_generator
test_target = local_test_check(target)
File "C:/Users/rrajk/esp/Espressif/frameworks/esp-idf-v4.4/tools/ci/python_packages\ttfw_idf\__init__.py", line 89, in local_test_check
raise ValueError('IDF_TARGET set to {}, not in decorator target value'.format(idf_target))
ValueError: IDF_TARGET set to ESP32, not in decorator target value
-
- Posts: 26
- Joined: Fri Mar 11, 2022 3:57 pm
Re: esp32-s2 ota update sample code?
I am by no means an expert on OTA but I found the section for learnesp32.com to be extensive enough and might be worth your time and money. It is what I used to get up to speed with esp32-s3 and with the ble portion of the chip.
Who is online
Users browsing this forum: No registered users and 60 guests