Search found 301 matches

by urbanze
Fri Sep 27, 2024 1:02 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 9
Views: 2227

Re: Help to run cmake before embed_file

MicroController wrote:
Wed Sep 25, 2024 7:18 am
Try 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.
Order still wrong :oops: :(

Someone knows how this can be fixed??
by urbanze
Tue Sep 24, 2024 6:43 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 9
Views: 2227

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...
by urbanze
Mon Sep 23, 2024 3:34 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 9
Views: 2227

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...
by urbanze
Fri Sep 20, 2024 2:57 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 9
Views: 2227

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...
by urbanze
Mon Sep 16, 2024 3:06 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 9
Views: 2227

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...
by urbanze
Tue Sep 26, 2023 10:05 pm
Forum: General Discussion
Topic: HTTPS OTA fail
Replies: 5
Views: 2779

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...
by urbanze
Mon Sep 25, 2023 6:46 pm
Forum: General Discussion
Topic: HTTPS OTA fail
Replies: 5
Views: 2779

Re: HTTPS OTA fail

MicroController wrote:
Mon Sep 25, 2023 5:51 pm
When I set config struct to zero, another error appears:
Make sure you also fully initialize or zero out ota_config.
I used memset() to fill with zeros, then internal http function (callback) crashs.
by urbanze
Mon Sep 25, 2023 2:53 pm
Forum: General Discussion
Topic: HTTPS OTA fail
Replies: 5
Views: 2779

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...
by urbanze
Wed Jul 13, 2022 10:16 pm
Forum: ESP-IDF
Topic: How to assign Ethernet Static IP address
Replies: 6
Views: 14756

Re: How to assign Ethernet Static IP address

ESP_ondrej wrote:
Wed Jul 13, 2022 6:43 am
That's really strange. What version of ESP-IDF do you use? We try to reproduce.
I use release/v4.2 in my company products. Thanks for help!
by urbanze
Tue Jul 12, 2022 8:18 pm
Forum: ESP-IDF
Topic: How to assign Ethernet Static IP address
Replies: 6
Views: 14756

Re: How to assign Ethernet Static IP address

Someone can help me?