Search found 296 matches

by urbanze
Wed Nov 20, 2019 11:33 pm
Forum: General Discussion
Topic: C library linkage fail in C++
Replies: 7
Views: 9384

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

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

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

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

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

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

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

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
Tue Jun 18, 2019 1:05 pm
Forum: General Discussion
Topic: RTC RAM
Replies: 9
Views: 15543

Re: RTC RAM

Whats de difference between normal RAM and RTC RAM in noinit sections? If this attribute keep value after some resets, only difference are in deep sleep? In all others cases, this two RAM's noinit are equal?
by urbanze
Tue Jun 18, 2019 12:27 am
Forum: General Discussion
Topic: RTC WDT & BOD bootloader
Replies: 0
Views: 1908

RTC WDT & BOD bootloader

Hi guys, I could not find information about bootloader startup RTC WDT and BOD. I would like to know more informations about some logic (if have) or mainly time between power and boot of this periphals... With bootloader verbose, I look value ~66 in timestamp (cpu ticks in this stage, assuming 160MH...