Search found 268 matches

by urbanze
Thu Nov 21, 2019 7:44 pm
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 1933

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

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

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

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

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

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...
by urbanze
Sun Nov 10, 2019 4:20 am
Forum: General Discussion
Topic: Build ULP from scratch to Raspberry 4
Replies: 2
Views: 777

Build ULP from scratch to Raspberry 4

Hi guys! iam trying to use one project with ULP, compilling over raspberry pi 4, but I cant build ULP bin utils from scratch. Just following instructions in readme of: https://github.com/espressif/binutils-esp32ulp 0. git clone https://github.com/espressif/binutils-esp32ulp.git --recursive 1. ./conf...
by urbanze
Thu Aug 22, 2019 11:33 am
Forum: ESP-IDF
Topic: Enabling Flash Encryption after Secure Boot
Replies: 4
Views: 933

Re: Enabling Flash Encryption after Secure Boot

Hi Vincent, the issue is that I flashed the bootloader already in 'One-Time Flash' mode and would need to re-flash the bootloader with Flash Encryption enabled in order for this to work? Unfortunately that's correct. Flash encryption is enabled by the bootloader during first boot, so you need to co...
by urbanze
Sun Aug 18, 2019 7:54 pm
Forum: General Discussion
Topic: Generic questions about secure boot & flash enc
Replies: 27
Views: 8362

Re: Generic questions about secure boot & flash enc

Hi urbanze, 2. crypted. 3. crypted. 4. crypted. Sending anyone decrypted will fail and eFuse..._CTN still in past value (good notice hehe) Sending anyone crypted will work and eFuse..._CTN still in past value (expected) That's right, any time FLASH_CRYPT_CNT has an odd number of bits set (or 0xFF) ...
by urbanze
Wed Jun 19, 2019 6:22 am
Forum: General Discussion
Topic: Generic questions about secure boot & flash enc
Replies: 27
Views: 8362

Re: Generic questions about secure boot & flash enc

Hi urbanze, 2. crypted. 3. crypted. 4. crypted. Sending anyone decrypted will fail and eFuse..._CTN still in past value (good notice hehe) Sending anyone crypted will work and eFuse..._CTN still in past value (expected) That's right, any time FLASH_CRYPT_CNT has an odd number of bits set (or 0xFF) ...

Go to advanced search