Search found 304 matches

by urbanze
Mon Jul 20, 2026 8:04 pm
Forum: General Discussion
Topic: Strange behavior with ST7123 (MIPI-DSI) and P4
Replies: 0
Views: 28

Strange behavior with ST7123 (MIPI-DSI) and P4

Hi everyone! I recently bought an M5Stack Tab5 with the ST7123 (MIPI) display. While it works fine with the demo firmware, it won't work at all when I try to use the IDF library (`esp_lcd_st7123`) and LVGL (IDF v6.0.1, P4 v1.3).

I’ve tried hundreds of different parameters, but nothing gets it ...
by urbanze
Wed Jan 22, 2025 12:06 am
Forum: General Discussion
Topic: Coredump error idf v5.1.1
Replies: 0
Views: 874

Coredump error idf v5.1.1

Hello guys! Someone can help me to understand this error? When some crash occurs and coredump will save this dump, this save crashs CPU again and never works.

Im using IDF v5.1.1 and flash crypto enabled (release mode with pre-generated key). I already tested coredump partition with encrypted flag ...
by urbanze
Fri Oct 04, 2024 12:38 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 11
Views: 12329

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 ...
by urbanze
Fri Sep 27, 2024 1:02 pm
Forum: General Discussion
Topic: Help to run cmake before embed_file
Replies: 11
Views: 12329

Re: Help to run cmake before embed_file

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: 11
Views: 12329

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

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

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

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

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

Re: HTTPS OTA fail

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.

Go to advanced search