Search found 13 matches

by LaWi14
Tue Nov 11, 2025 4:36 pm
Forum: ESP-IDF
Topic: Esp IDF examples: does WiFi station_example_main.c need 2 event handler instances?
Replies: 2
Views: 1597

Re: Esp IDF examples: does WiFi station_example_main.c need 2 event handler instances?

I do not refer to the event handlers (type esp_event_handler_t), but to the event handler instances (type esp_event_handler_instance_t). I do not see different behaviour for the above code and a code where I set the handler instances to NULL:


ESP_ERROR_CHECK(esp_event_handler_instance_register ...
by LaWi14
Mon Nov 10, 2025 5:18 pm
Forum: ESP-IDF
Topic: Esp IDF examples: does WiFi station_example_main.c need 2 event handler instances?
Replies: 2
Views: 1597

Esp IDF examples: does WiFi station_example_main.c need 2 event handler instances?

In esp-idf/examples/wifi/getting_started/station/main/station_example_main.c there are 2 event handler instances defined and used.
Wouldn't it suffice to use only 1 or even none and setting the last argument in the register function to NULL?


esp_event_handler_instance_t instance_any_id;
esp ...
by LaWi14
Mon Nov 03, 2025 8:04 pm
Forum: ESP-IDF
Topic: TWAI node error 0x8
Replies: 1
Views: 3084

Re: TWAI node error 0x8

I compiled your code for my ESP32C3 and flashed it: it runs w/o any problems when the TX/RX GPIOs are connected to a CAN transceiver, e.g. SN65230.


I (257) main_task: Started on CPU0
I (257) main_task: Calling app_main()
===================TWAI Sender Example Starting...===================
W (267 ...
by LaWi14
Wed Nov 13, 2024 11:22 am
Forum: ESP-IDF
Topic: Naming convention in Kconfig?
Replies: 1
Views: 904

Naming convention in Kconfig?

Hello forum,
I am using options that I set up in my project's Kconfig.projbuild. As all configuration of a project (ESP hardware, IDF, user) ends up in a flat file ("sdkconfig", all prefixed with CONFIG_), how can I avoid a name clash with existing system entries? Are there any naming rules ...
by LaWi14
Mon Nov 16, 2020 12:01 pm
Forum: ESP-IDF
Topic: SPIFFS and fseek beyond file end
Replies: 2
Views: 4121

Re: SPIFFS and fseek beyond file end

To answer myself: SPIFFS cannot do this. Should have looked up this before posting.

From the SPIFFS wiki:

Seeking in a file

As opposed to posix, spiffs cannot create gaps in files. Sorry. You can seek around, but seeking beyond file end will promptly put the offset at the file end.


Sorry for ...
by LaWi14
Sun Nov 15, 2020 5:06 pm
Forum: ESP-IDF
Topic: SPIFFS and fseek beyond file end
Replies: 2
Views: 4121

SPIFFS and fseek beyond file end

I tried to enlarge an existing file by positioning the file pointer beyond the end of the file and writing a character there, expecting to have filled the characters in between w/ zeros. The code below works okay under Linux, but fseek fails with errno 5 (EIO) when tried on SPIFFS. Is this a known ...
by LaWi14
Sun Dec 08, 2019 4:28 pm
Forum: Hardware
Topic: support detection of ESP32 revisions 2 & 3
Replies: 4
Views: 6375

Re: support detection of ESP32 revisions 2 & 3

Hi all,
somehow I cannot find this "announcement for ESP32 rev 2". As I noticed these days that I can communicate with 20kbaud CAN bus only from rev 2 upwards I am really interested to get my hands on rev 2.

BTW: I cannot find any trace of a CAN register description in the technical reference ...
by LaWi14
Wed Nov 27, 2019 9:23 pm
Forum: ESP-IDF
Topic: SHA-256 for running partition all zero?
Replies: 12
Views: 18661

Re: SHA-256 for running partition all zero?

To follow up myself: the mentioned change went in with the commit by "projectgus" on 16 Sep. See the diff for esp_image_format.c, lines 217-222 (OLD) / 227-231 (NEW) and 224-232 (OLD) / 233-244 (NEW): "if (data->image.hash_appended) {...}" has been moved into the else branch by this.
by LaWi14
Wed Nov 27, 2019 9:09 pm
Forum: ESP-IDF
Topic: SHA-256 for running partition all zero?
Replies: 12
Views: 18661

Re: SHA-256 for running partition all zero?

I compared the code of the current esp_image_format.c with an older version (pulled from git on October, 7th). And the older version has the copying of the hash to the image_digest (the block "if (data->image.hash_appended)" ) AFTER the "if (verify_sha) { ... } else { ...}" block, while the current ...
by LaWi14
Tue Nov 26, 2019 10:13 pm
Forum: ESP-IDF
Topic: SHA-256 for running partition all zero?
Replies: 12
Views: 18661

Re: SHA-256 for running partition all zero?

To continue my test: "Last thing I checked is an error-free return from a call to err = verify_simple_hash(sha_handle, data);" --> this function even debug-prints a non-null hash:
D (1794) boot: Calculated hash: 3954b6030aa3f19e7aeb7acbd93ed974e4ef5e8d5865f366e101047a079649fa
But it does not make ...

Go to advanced search