Search found 262 matches

by urbanze
Mon May 04, 2020 11:28 am
Forum: Hardware
Topic: How many write/erase cycle on flash??
Replies: 4
Views: 643

Re: How many write/erase cycle on flash??

WiFive wrote:
Fri May 01, 2020 8:32 am
Yes wear leveling helps and you only erase when you run out of space not on every write
How many writes one simple nvs partition (4KB) with default wear leveling (4K) can do approximately? I need numbers and how to math this?!

[4K*4K*100K(flash write cycle)]/data_write_size(1B) = 1.6M writes ??
by urbanze
Tue Mar 17, 2020 11:10 am
Forum: General Discussion
Topic: Can the WDT be routed to a GPIO pin
Replies: 2
Views: 1234

Re: Can the WDT be routed to a GPIO pin

As most of us know when you starve the CPU core your going to get a WDT warning in the terminal. I am curious if there is some kind of ISR hook or other call that can be implemented in code so that if it gets triggered I can toggle a GPIO pin. Task wdt has weak handler and yes, you can do this. esp...
by urbanze
Fri Jan 31, 2020 11:42 pm
Forum: General Discussion
Topic: eFuse factory already wrote
Replies: 2
Views: 502

Re: eFuse factory already wrote

Obviously, that shouldn't happen. Is this consistent across readouts? This only happens with one module/chip, right? What is the MAC number? Yes, all eFuse read are the same value. Yes, I noticed this behaviour only one time in my life with esp32. Summary above has MAC (MAC Factory MAC Address = 3c...
by urbanze
Thu Jan 30, 2020 3:49 pm
Forum: General Discussion
Topic: eFuse factory already wrote
Replies: 2
Views: 502

eFuse factory already wrote

Hello! I want to know about de chances of eFuses become burned from de factory :lol: In this week, I'm uploading all boards from my job and in process to burn flash key, tool tell's about already value in keys. See, Flash key and Block 3 has 0xFF bytes wrote, and I never get, in my hands, this esp32...
by urbanze
Thu Nov 21, 2019 7:44 pm
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 1345

Re: C library linkage fail in C++

It looks like maybe your main component.mk doesn't add the "tinyexpr" subdirectory to COMPONENT_SRCDIRS? This means the tinyexpr.c file is never compiled as part of the build. The hack where you #include "tinyexpr/tinyexpr.c" main.c works, because now the files are compiled as part of main.c. Check...
by urbanze
Thu Nov 21, 2019 1:42 pm
Forum: General Discussion
Topic: Approximate reasonably CPU load per core?
Replies: 6
Views: 997

Re: Approximate reasonably CPU load per core?

Folks, Is there an "official" way to read the approximate CPU load e.g. how much time is spent in IDLE vs other tasks? I'd ideally need this per core, tips on how to achieve that would be appreciated. Thanks With RTOS stats, you can see task usage of all tasks of both cpus (including IDLEs) https:/...
by urbanze
Wed Nov 20, 2019 11:33 pm
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 1345

Re: C library linkage fail in C++

You cannot remove: extern "C" void app_main() The ESP32 wants to call you and so your app_main() must be declared as "C" call style. You can still stuff your app_main() full of vectors, maps etc but you must do as above (don't use { with app_main()). Well, I drag the exact same code, no work (same ...
by urbanze
Wed Nov 20, 2019 11:27 am
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 1345

Re: C library linkage fail in C++

While I did not flash a device to do a test run (I am sure it will work fine); This works perfectly fine for me (both as C and as C++). #include <stdio.h> #include <tinyexpr.h> #ifdef __cplusplus extern "C" #endif void app_main() { printf("%f\n", te_interp("5*5", 0)); /* Prints 25. */ } I suspect w...
by urbanze
Mon Nov 18, 2019 4:52 pm
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 1345

C library linkage fail in C++

I trying to use "tinyexpr" library (C) in my main.cpp file but even with 'extern "C" {}', link can't completed. However, when I change my file to main.c, link can be completed. https://github.com/codeplea/tinyexpr 1. Here, is my real ambient (main.cpp file), trying to include tinyexpr C library. Yes...
by urbanze
Tue Nov 12, 2019 6:09 pm
Forum: General Discussion
Topic: Build ULP from scratch to Raspberry 4
Replies: 2
Views: 541

Re: Build ULP from scratch to Raspberry 4

https://sourceware.org/bugzilla/show_bug.cgi?id=22823 Hi Wi5! I already "fix" this problem, in release tab (binutils github) have "armel" version and worked, but I would like to decrease some versions to remove ULP warnings about ULP ASM. I couldn't understand what was done to fix the problem, he i...

Go to advanced search