Search found 145 matches

by vonnieda
Tue Mar 10, 2020 2:33 pm
Forum: ESP-IDF
Topic: Wear levelling FATFS performance really slow even for reading?
Replies: 11
Views: 16808

Re: Wear levelling FATFS performance really slow even for reading?

Thanks vonnieda! Studied the library, but didn't have time yet to implement it in my project. Could you maybe share your experiences with littlefs regarding writing speed? I my usecase I am writing 60kB logfiles into the flash in ~9sec (FFAT). With SPIFFS the job was done in ~800ms, what was ok for...
by vonnieda
Thu Feb 27, 2020 9:22 pm
Forum: ESP-IDF
Topic: Wear levelling FATFS performance really slow even for reading?
Replies: 11
Views: 16808

Re: Wear levelling FATFS performance really slow even for reading?

doglike wrote:
Thu Feb 27, 2020 9:19 pm
Thanks! Is there any example? I am trying to implement it since some hours with no success :(
I can't share my implementation unfortunately, but have a look at https://github.com/lllucius/esp32_littleflash. I learned very much from that when making my own implementation.

Jason
by vonnieda
Thu Feb 27, 2020 3:06 pm
Forum: ESP-IDF
Topic: Wear levelling FATFS performance really slow even for reading?
Replies: 11
Views: 16808

Re: Wear levelling FATFS performance really slow even for reading?

Check out LittleFS: https://github.com/ARMmbed/littlefs

It's much faster, and pretty easy to implement using IDF's VFS layer.

Jason
by vonnieda
Wed Jan 15, 2020 7:17 pm
Forum: ESP-IDF
Topic: (resolved) stack overflow in task memory_task?
Replies: 5
Views: 6375

Re: stack overflow in task memory_task?

Is memory_task a task you created? If so, just increase the task stack size. Most likely you are using printf and the formatting is taking more stack memory than it originally did.

Jason
by vonnieda
Wed Dec 25, 2019 5:08 am
Forum: General Discussion
Topic: Incorrect mutex behavior?
Replies: 4
Views: 5546

Re: Incorrect mutex behavior?

I think the 'contract' is more a logical result of the way you should use mutexes rather than something that is hardcoded. Mutexes are intended to protect resource access, so normally, a task would take a mutex, do the resource access, then give it back. As a give is always preceded by a take, and ...
by vonnieda
Tue Dec 24, 2019 11:24 pm
Forum: General Discussion
Topic: Incorrect mutex behavior?
Replies: 4
Views: 5546

Re: Incorrect mutex behavior?

https://github.com/espressif/esp-idf/blob/a45e9985344575a80acb1dc9c12e7bec4d8af401/components/pthread/pthread.c#L699 Thanks WiFive, but could you expand a little? This seems to be a change to the pthread abstraction layer, but I'm not using pthreads. Are you suggesting that I do, or just showing th...
by vonnieda
Tue Dec 24, 2019 3:15 pm
Forum: General Discussion
Topic: Incorrect mutex behavior?
Replies: 4
Views: 5546

Incorrect mutex behavior?

I'm trying to track down a potential concurrency issue in a large codebase (which I can't share) and I'm checking my assumptions on FreeRTOS mutexes and semaphores. I've identified what appears to be incorrect behavior in the mutex, at least according to the docs. The FreeRTOS docs ( https://www.fre...
by vonnieda
Fri Nov 22, 2019 3:52 pm
Forum: ESP-MDF
Topic: WiFi meshed network - how to join strongest AP in STA mode?
Replies: 3
Views: 11828

Re: WiFi meshed network - how to join strongest AP in STA mode?

The only way I have found to ensure connecting to the strongest AP is to perform a site scan and then connect to the strongest using BSSID instead of SSID.

Jason
by vonnieda
Fri Nov 08, 2019 4:04 pm
Forum: Hardware
Topic: ESP32 EN pin pulled down
Replies: 9
Views: 10918

Re: ESP32 EN pin pulled down

Do you have your power enable tied to your ESP enable, by chance? I had a problem where I had power enable and ESP enable tied together. When the ESP is not powered fully, it will sink current on EN (and other signals). In my case, when I would turn on EN, as power started to come up the ESP would p...
by vonnieda
Wed Nov 06, 2019 3:51 pm
Forum: ESP-IDF
Topic: Button clicked, NEGEDGE interrupt fired multiple times
Replies: 10
Views: 11786

Re: Button clicked, NEGEDGE interrupt fired multiple times

The first post mentioned pressing and releasing a button. Then we suddenly start talking about a rotary encoder. No wonder the solution is different! Susan But ... this doesn't work with the rotary button. The 2 signals have an interval of 5ms (when rotating fast) and I need to know which is first,...