Search found 83 matches

by maldus
Thu Sep 24, 2020 2:38 pm
Forum: ESP-IDF
Topic: Interrupt Handler in IRAM fails due to Double Multiplication
Replies: 3
Views: 3734

Re: Interrupt Handler in IRAM fails due to Double Multiplication

Many thanks for the clarification. Luckily I can afford to disable the interrupts during a flash write operation, but I took this as a learning opportunity. Good to know about the float-double bit, it probably should be added (if not already there) to the docs.
by maldus
Fri Sep 18, 2020 8:10 am
Forum: ESP-IDF
Topic: Interrupt Handler in IRAM fails due to Double Multiplication
Replies: 3
Views: 3734

Interrupt Handler in IRAM fails due to Double Multiplication

I realize the title might be a little misleading, but my situation is quite peculiar. I have a time sensitive operation that must be carried on periodically by an IO triggered interrupt. My application also needs to sporadically save data into the NVS. As it happens, writing data on the SPI flash di...
by maldus
Wed Jun 17, 2020 3:46 pm
Forum: ESP-IDF
Topic: How to set up simple Modbus communication?
Replies: 8
Views: 20376

Re: How to set up simple Modbus communication?

Many thanks for the clarification. I find the section of the documentation about Modbus quite cryptic, and in fact I don't think it describes the content of the structure `mb_param_request_t`. The source code is quite simple however, so I think I got it! Since I'm here, are you aware of any way get ...
by maldus
Wed Jun 17, 2020 1:29 pm
Forum: ESP-IDF
Topic: How to set up simple Modbus communication?
Replies: 8
Views: 20376

Re: How to set up simple Modbus communication?

Hello ESP_alisitsyn, The modbus stack uses modbus command 16 (Write Multiple Holding Registers) to write registers as more universal. The 6 (Write Single Register) command support can also be added into stack if required. What do you mean it can be added to the stack if required? Is there a way for ...
by maldus
Wed Apr 22, 2020 9:41 am
Forum: ESP-IDF
Topic: Unable to store and load WiFi configuration in NVS
Replies: 2
Views: 5533

Re: Unable to store and load WiFi configuration in NVS

That is indeed my mistake, thank you. I find it a little counterintuitive to have the WiFi stack automatically load previous values if not told otherwise, especially since there is no way to tell if a configuration has been saved before (yet https://github.com/espressif/esp-idf/issues/4970 ). Nevert...
by maldus
Tue Apr 21, 2020 12:23 pm
Forum: ESP-IDF
Topic: Unable to store and load WiFi configuration in NVS
Replies: 2
Views: 5533

Unable to store and load WiFi configuration in NVS

Hello everyone, I'm trying to dynamically configure an ESP32 to connect to a certain WiFi access point. I started with the smart config example ( https://github.com/espressif/esp-idf/tree/v4.0/examples/wifi/smart_config ) and tried to build from there, adding the option to use saved credentials if a...
by maldus
Mon Dec 09, 2019 7:54 am
Forum: ESP-IDF
Topic: Clarification on Wear Leveling Performance and Safety modes
Replies: 2
Views: 3773

Re: Clarification on Wear Leveling Performance and Safety modes

I really hate to be insistent but I also feel like the documentation is somewhat lacking here. Understanding what happens in the event of an unforeseen poweroff is paramount for me and I'd like to know if and how the data is recoverable.
by maldus
Thu Dec 05, 2019 8:24 pm
Forum: ESP-IDF
Topic: Clarification on Wear Leveling Performance and Safety modes
Replies: 2
Views: 3773

Re: Clarification on Wear Leveling Performance and Safety modes

I have made some tests and can confirm that a file ends up corrupted if a write operation is interrupted by a reset. This happens regardless of the safety/performance or sector size configuration. Is there a way to notice this and somehow recover?
by maldus
Wed Dec 04, 2019 11:21 am
Forum: ESP-IDF
Topic: Clarification on Wear Leveling Performance and Safety modes
Replies: 2
Views: 3773

Clarification on Wear Leveling Performance and Safety modes

Hello everyone, I am trying to understand all the nuances of the FatFS and Wear Leveling components of the library. To quote the documentation ( https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/wear-levelling.html ): The wear levelling component, together with the FAT FS c...
by maldus
Wed Nov 13, 2019 8:37 am
Forum: General Discussion
Topic: Tool xtensa-esp32-elf-gcc is not available for Raspberry Pi (ARM)
Replies: 12
Views: 14410

Re: Tool xtensa-esp32-elf-gcc is not available for Raspberry Pi (ARM)

This is interesting, but it appears there is still no package for linux-arm64: $ sh install.sh ERROR: tool xtensa-esp32-elf does not have versions compatible with linux-arm64 A little digging into `idf_tools.py` confirms that there is a Linux-aarch64 target for my platform, but when trying to downlo...