morris
47e4fe83ba
ci: enable build pytest ut and examples on esp32c2
2022-05-12 05:18:57 +00:00
Laukik Hase
1a7eac2d69
docs: Add section for server verification (esp_https_ota)
...
- Updated OTA example README
2022-04-29 09:50:06 +05:30
Mahavir Jain
021f545f0d
examples: add dependency on cert bundle configuration
...
Refactor examples to build with MBEDTLS_CERTIFICATE_BUNDLE disabled. Only examples
that can work with certificate bundle disabled have been modified here.
2022-04-06 05:10:43 +00:00
Shubham Kulkarni
779bcc8614
native_ota_example: Rename example_test.py to pytest_native_ota.py
...
Add type annotations
2022-03-28 03:51:21 +00:00
Shubham Kulkarni
68c246990c
native_ota_example: Change example_test to use pytest framework
2022-03-28 03:51:21 +00:00
Shubham Kulkarni
3e3cde2f9f
advanced_https_ota/example_test.py: Update redirect URL test to include two redirects
2022-03-24 06:23:17 +00:00
Harshit Malpani
cca208f71a
Check FW version at start of ota for encrypted binary
2022-03-23 11:09:48 +05:30
Mahavir Jain
c5d982b235
Merge branch 'bugfix/esp_https_ota_breaking_changes' into 'master'
...
esp_https_ota: Update esp_https_ota() to support OTA updates with encrypted images
See merge request espressif/esp-idf!17312
2022-03-14 18:15:52 +08:00
Harshit Malpani
c813de50ec
example: use decrypt_user_ctx in decryption callback
2022-03-11 18:05:40 +05:30
Harshit Malpani
de2f915092
esp_https_ota: Update esp_https_ota() to support OTA updates with encrypted images
2022-03-11 16:52:08 +05:30
Mahavir Jain
61c68b7f4d
Merge branch 'contrib/github_pr_8544' into 'master'
...
esp_https_ota: add user_ctx to decrypt_cb (GitHub PR)
Closes IDFGH-6924
See merge request espressif/esp-idf!17456
2022-03-11 15:43:38 +08:00
MacDue
e47419374c
esp_https_ota: add user_ctx to decrypt_cb
...
This makes the decryption layer easier to use in C++ wrappers,
or whenever you want to avoid a global
2022-03-10 12:02:42 +00:00
MacDue
f17a3491e5
examples/pre_encrypted_ota: update to esp_encrypted_img 2.x.x
2022-03-09 16:30:22 +00:00
MacDue
615e44f430
examples/pre_encrypted_ota: readme tweaks and link to component manager
2022-03-09 16:29:39 +00:00
Mahavir Jain
fbc9c729b2
esp_https_ota: rename config option for more clarity
2022-02-17 10:54:06 +05:30
Harshit Malpani
5a6dbaa487
feature: Pre Encrypted Binary for OTA updates
...
This feature enables using encrypted binaries for OTA updates
Closes https://github.com/espressif/esp-idf/issues/6172
2022-02-17 10:48:41 +05:30
Mahavir Jain
8400ff8607
examples/simple_ota: use certificate bundle in default configuration
...
- This allows to easily test example with different public servers
- Flash footprint impact is limited due to selection of only most common
certs from bundle.
2022-02-14 12:43:42 +05:30
Mahavir Jain
fbe4457a71
examples/ota: fix README for instructions on hosting image on github.com server
...
Ref: https://esp32.com/viewtopic.php?f=13&t=26076
2022-02-14 12:43:27 +05:30
Lu Ai Jun
75abbcdcdd
modify advanced ota checker line for nimble and bluedroid
2022-02-09 18:40:03 +08:00
Ivan Grokhotkov
7dac0abdff
examples: advanced_https_ota: make some globals static
2022-01-27 11:00:09 +07:00
Mahavir Jain
b149ff8dda
Merge branch 'bugfix/http_auto_redirect' into 'master'
...
esp_http_client: Added event for HTTP redirection
Closes IDFGH-6371
See merge request espressif/esp-idf!16753
2022-01-16 05:59:21 +00:00
Mahavir Jain
833f8bf6fb
Merge branch 'bugfix/check_chip_id_at_start_ota' into 'master'
...
esp_https_ota: fix for checking chip id at start of OTA
Closes IDF-1724
See merge request espressif/esp-idf!16739
2022-01-14 04:14:01 +00:00
Harshit Malpani
c0b796532b
esp_https_ota: fix for checking chip id at start of OTA
2022-01-13 15:20:26 +05:30
Harshit Malpani
1095ab0697
ci: re-enable s3 build for few examples
2022-01-12 17:46:42 +05:30
Laukik Hase
ca84d2d6c9
esp_http_client: Added event for HTTP redirect
...
- Allows users to manually intercept and process the HTTP redirection
when disable_auto_redirect (from the esp_http_client handle) is set to true
Closes https://github.com/espressif/esp-idf/issues/8029
2022-01-12 11:40:32 +05:30
Mahavir Jain
b208d832a3
Merge branch 'contrib/github_pr_8041' into 'master'
...
print Firmware Upgrade URL to help user debug (GitHub PR)
Closes IDFGH-6382
See merge request espressif/esp-idf!16387
2021-12-14 14:59:23 +00:00
Mahavir Jain
0054732991
Fix debug print to handle URL in internal testing scenarios as well
2021-12-14 14:29:02 +05:30
Harshit Malpani
66a8615c18
Fix for advanced_ota_redirect_url example failure in CI
2021-12-13 10:50:43 +05:30
Eric Fontaine
53b0263342
print Firmware Upgrade URL to help user debug
2021-12-08 12:09:42 -05:00
Harshit Malpani
b93d63b067
Fix 'address already in use' exception in OTA tests
...
We will stop the server instance at the end of each test case. This will solve the "address already in use" exception
2021-11-24 11:32:15 +08:00
Shubham Kulkarni
d959a35e28
advanced_https_ota: Move example tests on ethernet runners
...
Move BT tests to nightly run
2021-11-19 15:07:31 +05:30
Shubham Kulkarni
91ccac08f8
native_ota_example: Move all example tests to ethernet based runners
2021-11-19 15:07:31 +05:30
Shubham Kulkarni
40a72ef3cf
simple_ota_example: Move redundant and failing example_tests to nightly run
2021-11-19 15:07:31 +05:30
Roland Dobai
766aa57084
Build & config: Remove leftover files from the unsupported "make" build system
2021-11-11 15:32:36 +01:00
Roland Dobai
9c1d4f5b54
Build & config: Remove the "make" build system
...
The "make" build system was deprecated in v4.0 in favor of idf.py
(cmake). The remaining support is removed in v5.0.
2021-11-10 09:53:53 +01:00
Marek Fiala
ff18a96f7d
tools: replace _ with - in idf.py
...
Closes https://github.com/espressif/esp-idf/issues/5126
2021-10-13 17:30:38 +08:00
Jakob Hasse
81e9266204
[examples]: removed hyphens
...
Replaced hyphens with underscores in examples
project definition for all examples which had
hyphens in their project name. dpp-enrollee is
an exceptions because the name matches the
project directory name while the project
directory also contains hyphens.
2021-10-09 13:58:24 +08:00
KonstantinKondrashov
709abee65c
example_tests: Deletes usage esp32c3 ECO0 in CI (by default ECO3)
2021-09-24 13:55:07 +08:00
Fu Hanxi
923e862ed2
ci: temporarily disable s3 build for a few examples
2021-09-16 12:20:11 +08:00
Shubham Kulkarni
5eb1570a01
advanced_https_ota_example: Enable debug logs for partial HTTP download test
2021-08-20 09:35:40 +05:30
Shubham Kulkarni
3398ee2687
OTA examples: Updated server certificate
2021-07-13 13:14:32 +08:00
Konstantin Kondrashov
f339b3fc96
efuse(esp32): Deprecate esp_efuse_burn_new_values() & esp_efuse_write_random_key()
...
These functions were used only for esp32 in secure_boot and flash encryption.
Use idf efuse APIs instead of efuse regs.
2021-06-17 07:21:36 +08:00
Marius Vikhammer
b1aa9269fd
docs: updated link to partition table docs
2021-06-04 10:14:53 +08:00
Shubham Kulkarni
ab9e5d3ea4
advanced_https_ota: Remove check for CONFIG_BOOTLOADER_APP_ANTI_ROLLBACK for validating image.
...
Image should be validated even if CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE is enabled
2021-06-02 11:19:30 +00:00
a2800276
bdea007a37
Update README.md
...
Made some grammatical corrections and improved reading flow.
Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
Closes: https://github.com/espressif/esp-idf/pull/7050
2021-06-02 11:19:30 +00:00
KonstantinKondrashov
2e4b625f59
simple_ota_example: Adds sha256 check for app images
2021-05-05 22:18:40 +08:00
Shubham Kulkarni
691e30e659
advanced_https_ota: Add example test for OTA with OpenSSL server with binary file aligned to 289 byte boundary
2021-04-21 20:57:58 +05:30
Chinmay Chhajed
3eaf78d462
advanced_https_ota: Added BLE GATTS code.
...
`advanced_https_ota` can run a minimal BLE GATT server while
downloading OTA update. Both NimBLE and Bluedroid stack can be used
here by configuring relevant options in menuconfig.
Signed-off-by: Chinmay Chhajed <chinmay.chhajed@espressif.com>
2021-04-20 15:34:53 +05:30
Shubham Kulkarni
0a395134d4
Split example_tests with Example_WIFI tag group into Example_OTA and Example_Protocols
2021-04-15 04:00:06 +00:00
KonstantinKondrashov
af3cbe2888
simple_ota_example: Adds configs to test on_update_no_secure_boot option (RSA&ECDSA)
2021-04-13 11:28:13 +00:00
KonstantinKondrashov
ec4de4fe5c
example_tests: CI uses ECO0 for esp32c3 tests
2021-04-09 14:26:06 +08:00
Angus Gratton
2a6dd33d35
Merge branch 'feature/c3_flash_enc_tests' into 'master'
...
flash enc: add flash encryption unit and example test for C3
Closes IDF-2936
See merge request espressif/esp-idf!12774
2021-03-29 06:45:32 +00:00
Hao Ning
80da446be7
fix dead links directed to iot solution repo
...
resolve confilcts
modify a board name
rebase master
fix ota example link in readme
2021-03-26 15:19:10 +08:00
Marius Vikhammer
d3d145285d
flash enc: add flash encryption unit and example test for C3
2021-03-25 17:51:22 +08:00
yuanjm
07d784f7fe
examples: Add OTA bind specified interface example
...
Closes https://github.com/espressif/esp-idf/issues/6090
2021-03-10 02:19:29 +00:00
Mahavir Jain
f5f25d2b53
Merge branch 'bugfix/ota_docs_openssl_windows' into 'master'
...
examples: Document OTA examples with openssl on windows tips/issues
See merge request espressif/esp-idf!12372
2021-03-09 08:21:38 +00:00
David Cermak
7a020ea16f
examples: Document OTA examples with openssl on windows tips/issues
2021-03-04 08:05:25 +01:00
David Cermak
79d596bcdc
docs/ota: Allow example_test.py to run a custom https-server
2021-03-04 08:05:16 +01:00
Shubham Kulkarni
fb0beefefb
advanced_https_ota: Add example_test for partial HTTP download
2021-03-02 16:48:18 +05:30
Hassan DRAGA
b2eb199502
Update native_ota_example.c
...
* assert(update_partition) should be before trying to use update_partition in ESP_LOGI().
* if we show detailed description about the error ESP_ERR_OTA_VALIDATE_FAILED, why show it again using esp_err_to_name() ?
Merges https://github.com/espressif/esp-idf/pull/6623
Signed-off-by: Shubham Kulkarni <shubham.kulkarni@espressif.com>
2021-03-01 14:00:27 +00:00
Fu Hanxi
0146f258d7
style: format python files with isort and double-quote-string-fixer
2021-01-26 10:49:01 +08:00
yuanjm
7e17f64a2d
Make OTA example support keepalive
2021-01-22 06:56:28 +00:00
Aditya Patwardhan
a02be97fda
nvs_flash: Modify the default NVS initialization API with internal nvs encryption
...
handling (only when nvs encryption is enabled)
* NVS Encryption will now be turned on by default with flash encryption
* Updated the flash encryption example to shocase NVS encryption
along with information on how to configure and use NVS encryption
* Updated respective test case
* Added two partition tables for NVS encryption
i) Table 1- Single factory app, no OTA, encrypted NVS
ii) Table 2- Factory app, Two OTA, encrypted NVS
2021-01-20 11:12:14 +00:00
Shubham Kulkarni
4874f52d96
Update advanced_https_ota_example and native_ota_example to use esp_ota_abort in case of error
2020-12-03 14:49:55 +05:30
He Yin Ling
a908174c06
test: remove fake binary size check in example test:
...
the binary size check in example test was removed long time ago. Now we
have updated ttfw_idf to raise exception when performance standard is
not found. These fake performance check will be regarded as error.
Remove them now.
2020-11-24 17:53:33 +08:00
Chen Yu Dong
454edcc0a8
ci: all jobs use python3 by default
2020-11-19 03:27:58 +00:00
Shubham Kulkarni
cda61a87da
Update OTA example to demonstate anti_rollback feature
...
Add example_test for anti_rollback feature
2020-11-11 11:51:28 +00:00
Angus Gratton
66fb5a29bb
Whitespace: Automated whitespace fixes (large commit)
...
Apply the pre-commit hook whitespace fixes to all files in the repo.
(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
Shubham Kulkarni
76860cc939
example_test.py: In ota example_test, open file in binary mode to avoid UnicodeDecodeError
2020-10-10 06:18:30 +00:00
Shubham Kulkarni
b930f7a96d
simple_ota_example: Add example test with flash encryption enabled
2020-09-14 13:47:39 +00:00
Mahavir Jain
33d0024034
esp_https_ota: change erase to incremental during flash write
2020-09-04 12:05:06 +05:30
Shubham Kulkarni
78356d1336
advanced_https_ota_example: Demonstrate use of init_complete_callback to set custom headers
2020-08-29 09:05:52 +00:00
Shubham Kulkarni
7d3618a86c
Update OTA README to mention advanced_https_ota example and add reference to API documentation of esp_https_ota component
...
Closes: https://github.com/espressif/esp-idf/issues/5487
2020-08-29 09:05:52 +00:00
Mahavir Jain
5341688c7e
Merge branch 'feature/add_status_code_check' into 'master'
...
esp_https_ota: Add check for HTTP error codes
Closes IDFGH-3593
See merge request espressif/esp-idf!9486
2020-07-08 13:12:46 +08:00
Shubham Kulkarni
60fcf1bae6
Increase receive timeout in sdkconfig.ci to fix CI failures
2020-07-08 04:03:26 +00:00
Marius Vikhammer
a80cff924b
docs: fix broken links in example READMEs
2020-07-08 10:39:33 +08:00
morris
a4d0033c03
esp_rom: extract common GPIO apis into esp_rom_gpio.h
2020-07-07 11:40:19 +08:00
Mahavir Jain
c533674120
simple_ota_example: add SPIRAM enabled configuration
...
This commit adds one example test case for OTA with SPIRAM
enabled configuration. Additionally it also keeps
`SPIRAM_ALLOW_BSS_SEG_EXTERNAL_MEMORY` enabled to catch any issues
of sort "cache disabled but cached region accessed".
https://github.com/espressif/esp-idf/issues/5354
2020-06-12 05:45:02 +00:00
Shubham Kulkarni
c287ca1363
example_test.py: Update OTA example tests to make it compatible with python3
2020-06-09 11:58:35 +00:00
Shubham Kulkarni
b1e29232ea
example_test.py: Override SimpleHTTPRequestHandler to catch broken pipe exception
2020-05-05 14:07:51 +05:30
Ivan Grokhotkov
e94288da31
global: use '/usr/bin/env bash' instead of '/usr/bin/bash' in shebangs
...
Using the method from @cemeyer
(https://github.com/espressif/esp-idf/pull/3166 ):
find . -name \*.sh -exec sed -i "" -e 's|^#!.*bin/bash|#!/usr/bin/env bash|' {} +
Closes https://github.com/espressif/esp-idf/pull/3166 .
2020-04-03 01:10:02 +02:00
Roland Dobai
15884eccf2
Add multi-target support for performance tests
2020-03-09 13:41:56 +01:00
Shubham Kulkarni
4d40f94168
OTA: Add fix in case of URL redirection and a test case of URL redirection
...
Closes https://github.com/espressif/esp-idf/issues/4780
2020-02-24 16:53:27 +05:30
Shubham Kulkarni
ba31458347
OTA: Fixed OTA with chunked servers and added example_test with chunked server
2020-02-05 11:56:37 +05:30
David Cermak
3f10c4af06
OTA: enable example builds for esp32s2 target
...
Closes IDF-1035
2020-01-29 15:20:42 +01:00
KonstantinKondrashov
b49a657448
build: Add CONFIG_APP_PROJECT_VER to set the project version from Kconfig
2020-01-15 11:02:27 +00:00
Shubham Kulkarni
032a041395
Bugfix for failing OTA example
...
example_test.py is added to test advanced_https_ota_example and native ota_example.
Closes https://github.com/espressif/esp-idf/issues/4394
2019-12-31 14:18:16 +05:30
David Cermak
31b2702387
esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK()
...
esp_netif_init() returns standard esp_err_t error code (unlike tcpip_adapter init), so shall be checked for the return value
Also to make the initialization code more consistent.
2019-12-17 09:07:49 +01:00
He Yin Ling
c906e2afee
test: update example and unit tests with new import roles:
...
tiny_test_fw is a python package now. import it using normal way.
2019-12-07 10:34:54 +08:00
David Cermak
a49b934ef8
examples: protocol examples which use common connection component
...
updated to use esp_netif_init instead of tcpip_adapter in initialization code
2019-11-13 12:36:25 +01:00
Mahavir Jain
e1a6846ac3
examples/ota: disable WiFi power save mode for optimal performance
2019-11-04 12:15:19 +05:30
Mahavir Jain
917a406c0a
Logging improvements in OTA example and component
2019-11-04 12:15:19 +05:30
Mahavir Jain
de9549936d
examples: fix handle passed to esp_https_ota_is_complete_data_received
2019-11-04 12:15:19 +05:30
Angus Gratton
438d513a95
Merge branch 'master' into feature/esp32s2beta_merge
2019-09-16 16:18:48 +10:00
Michael (XIAO Xufeng)
63329b169b
ci: limit example test to ESP32s
2019-09-04 10:53:25 +10:00
liu zhifu
003a9872b7
esp_wifi: wifi support new event mechanism
...
1. WiFi support new event mechanism
2. Update examples to use new event mechanism
2019-08-20 09:39:51 +00:00
Angus Gratton
6990a7cd54
Merge branch 'master' into feature/esp32s2beta_update
2019-08-19 15:03:43 +10:00
Hrudaynath Dhabe
53e7beb95b
esp_https_ota: Added error checking functionalities.
...
Current implimentation of esp_http_ota does not perform any error-checking in the data writing phase calls `esp_ota_get_next_update_partition()` irrespetive of the received state of the image. A few additional error checking mechanism have now been added inside the esp_https_ota which returns the control in case an invalid header is received and a wrapper to the function `esp_http_client_is_complete_data_received()` of `esp_http_client` has been added.
2019-08-15 21:10:00 +08:00
Angus Gratton
04ae56806c
Merge branch 'master' into feature/esp32s2beta_update
2019-08-08 15:26:58 +10:00
Angus Gratton
24d26fccde
Merge branch 'master' into feature/esp32s2beta_update
2019-08-08 13:44:24 +10:00