esp32-s2 ota update sample code?

MarkusR
Posts: 9
Joined: Fri Dec 11, 2020 2:38 am

esp32-s2 ota update sample code?

Postby MarkusR » Tue Oct 05, 2021 6:47 am

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?

raj480
Posts: 2
Joined: Thu Feb 24, 2022 7:01 am

Re: esp32-s2 ota update sample code?

Postby raj480 » Thu Feb 24, 2022 8:33 am

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

darkgiuseppe
Posts: 26
Joined: Fri Mar 11, 2022 3:57 pm

Re: esp32-s2 ota update sample code?

Postby darkgiuseppe » Tue Mar 29, 2022 6:29 pm

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 21 guests