Search found 302 matches
- Fri Oct 04, 2024 12:38 pm
- Forum: General Discussion
- Topic: Help to run cmake before embed_file
- Replies: 11
- Views: 4714
Re: Help to run cmake before embed_file
https://youtu.be/7utLBxSOXlQ?feature=shared&t=2624 This video bring me an idea with POST_BUILD. I used POST_BUILD to delete zip folder after build proccess and worked! Since compiling from scratch or recompiling are working correctly because system are forced to re-zip all files. add_custom_command...
- Fri Sep 27, 2024 1:02 pm
- Forum: General Discussion
- Topic: Help to run cmake before embed_file
- Replies: 11
- Views: 4714
Re: Help to run cmake before embed_file
Order still wrongMicroController wrote: ↑Wed Sep 25, 2024 7:18 amTry adding a dependency to the "source"/input files to add_custom_command ("DEPENDS ..."). This should cause the command to be re-run when a "source" file is changed.
Someone knows how this can be fixed??
- Tue Sep 24, 2024 6:43 pm
- Forum: General Discussion
- Topic: Help to run cmake before embed_file
- Replies: 11
- Views: 4714
Re: Help to run cmake before embed_file
This may be not very elegant solution, and actually im not sure if it works, but it is building at least idf_component_register(SRCS "http.cpp" INCLUDE_DIRS "." REQUIRES esp_http_server) set (WEB_DIR ${COMPONENT_DIR}/web) add_custom_command( OUTPUT "${WEB_DIR}/zip/index.html.gz" COMMAND COMMAND gzi...
- Mon Sep 23, 2024 3:34 pm
- Forum: General Discussion
- Topic: Help to run cmake before embed_file
- Replies: 11
- Views: 4714
Re: Help to run cmake before embed_file
The DEPENDS argument to target_add_binary_data ensures that the target executes first. add_custom_target(my_process COMMAND ...) target_add_binary_data(my_target "my_embed_file.bin" BINARY DEPENDS my_process) Is not that you should setup it like this? add_custom_target( process_http_files ALL COMMA...
- Fri Sep 20, 2024 2:57 pm
- Forum: General Discussion
- Topic: Help to run cmake before embed_file
- Replies: 11
- Views: 4714
Re: Help to run cmake before embed_file
Very related: https://esp32.com/viewtopic.php?f=13&t=33801&start=10#p114638 Still in the same order. Embedded -> run custom command. idf_component_register(SRCS "http.cpp" INCLUDE_DIRS "." REQUIRES esp_http_server) set (WEB_DIR ${COMPONENT_DIR}/web) add_custom_command( OUTPUT ${WEB_DIR}/zip/index.h...
- Mon Sep 16, 2024 3:06 pm
- Forum: General Discussion
- Topic: Help to run cmake before embed_file
- Replies: 11
- Views: 4714
Help to run cmake before embed_file
Hello guys, I have one http component with a lot of web files (like router page) and I need to compress every file inside /web folder, drag to /web/zip and after this embed to flash with CMake of this component. I already tried many ways to do this but every script tested only execute custom_command...
- Tue Sep 26, 2023 10:05 pm
- Forum: General Discussion
- Topic: HTTPS OTA fail
- Replies: 5
- Views: 3481
Re: HTTPS OTA fail
Make sure you also fully initialize or zero out ota_config. I used memset() to fill with zeros Not in the code you posted. Also check that the PEM actually is a 0-terminated string. Please pay attention on the second code, I used memset(). I already check if string is correct from embbed_txtfile (c...
- Mon Sep 25, 2023 6:46 pm
- Forum: General Discussion
- Topic: HTTPS OTA fail
- Replies: 5
- Views: 3481
Re: HTTPS OTA fail
I used memset() to fill with zeros, then internal http function (callback) crashs.MicroController wrote: ↑Mon Sep 25, 2023 5:51 pmMake sure you also fully initialize or zero out ota_config.When I set config struct to zero, another error appears:
- Mon Sep 25, 2023 2:53 pm
- Forum: General Discussion
- Topic: HTTPS OTA fail
- Replies: 5
- Views: 3481
HTTPS OTA fail
Hello guys! I started to use IDF v5.1.1 to develop new products but I stucked when trying to use HTTPS OTA. Someone can give me an idea about this problem? Init Code: void ota_init() { esp_http_client_config_t config; config.host = "blabla.com"; config.port = 443; config.path = "/blabla.bin"; config...
- Wed Jul 13, 2022 10:16 pm
- Forum: ESP-IDF
- Topic: How to assign Ethernet Static IP address
- Replies: 6
- Views: 15760
Re: How to assign Ethernet Static IP address
I use release/v4.2 in my company products. Thanks for help!ESP_ondrej wrote: ↑Wed Jul 13, 2022 6:43 amThat's really strange. What version of ESP-IDF do you use? We try to reproduce.