Search found 297 matches

by urbanze
Mon Sep 16, 2024 3:06 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 1
Views: 306

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: 2674

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: 2674

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: 2674

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: 14517

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: 14517

Re: How to assign Ethernet Static IP address

Someone can help me?
by urbanze
Wed Jul 06, 2022 8:13 pm
Forum: ESP-IDF
Topic: How to assign Ethernet Static IP address
Replies: 6
Views: 14517

Re: How to assign Ethernet Static IP address

The code is almost correct (assume you've accidentally pasted the code somewhere into the include section, but the principle seems okay), but you won't receive an IP event when using static address. Also I'd suggest not mixing up the esp-netif and tcpip_adapter API. Here's an example of using esp-n...
by urbanze
Thu May 19, 2022 12:49 pm
Forum: ESP-IDF
Topic: strong vApplicationStackOverflowHook
Replies: 19
Views: 17843

Re: strong vApplicationStackOverflowHook

any idea to solve this? I need this feature working to keep modules more independents
by urbanze
Tue May 17, 2022 8:29 pm
Forum: ESP-IDF
Topic: strong vApplicationStackOverflowHook
Replies: 19
Views: 17843

Re: strong vApplicationStackOverflowHook

And what happens if you actually call the dummy function in your main.cpp? Error. Dummy function exists only in scheduler.cpp. ../main/main.cpp:20:5: error: 'mqtt_callback_scheduler_dummy' was not declared in this scope mqtt_callback_scheduler_dummy(); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../main/main.cpp...
by urbanze
Fri May 13, 2022 6:04 pm
Forum: ESP-IDF
Topic: strong vApplicationStackOverflowHook
Replies: 19
Views: 17843

Re: strong vApplicationStackOverflowHook

boarchuz wrote:
Fri May 13, 2022 2:30 am
I suspect mangling is ruining your day, try:

Code: Select all

extern "C" void mqtt_callback_scheduler_dummy(){}
You will likely need to add

Code: Select all

extern "C"
to the default one as well, and you might need the weak attribute in its definition.
I tried but doesnt work too.