Search found 300 matches

by mbratch
Tue Feb 07, 2023 2:08 am
Forum: General Discussion
Topic: Espressif IDE taking too long to build
Replies: 4
Views: 2246

Re: Espressif IDE taking too long to build

(removed redundant post)
by mbratch
Mon Feb 06, 2023 5:01 pm
Forum: ESP-IDF
Topic: The C++17 version of the Xtensa C++ compiler supports designated initializers?
Replies: 2
Views: 1544

Re: The C++17 version of the Xtensa C++ compiler supports designated initializers?

GNU extensions? You could try to pass "-pedantic" to g++. That would prohibit extensions to the Standard. Ah, ok, Gnu extensions. That makes sense. Thanks for that. I'm not interested in inhibiting the extensions. I was just wanting to understand on what basis the C++17 compiler was allowing a C++2...
by mbratch
Mon Feb 06, 2023 2:19 am
Forum: ESP-IDF
Topic: The C++17 version of the Xtensa C++ compiler supports designated initializers?
Replies: 2
Views: 1544

The C++17 version of the Xtensa C++ compiler supports designated initializers?

I was just puzzling over something... My ESP-IDF v5.0 application is written in C++. In my main CMakeList.txt I have the following settings: set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) I added the following statement in my `main.cpp` to check: std::cout << __cplusplus << "\n"; The...
by mbratch
Fri Feb 03, 2023 7:56 pm
Forum: IDEs for ESP-IDF
Topic: How to use C++ with ESP-IDF and FreeRTOS please ?
Replies: 2
Views: 3972

Re: How to use C++ with ESP-IDF and FreeRTOS please ?

My whole application is in C++. The only thing you need to do is extern the main C entry point since ESP-IDF expects that to be a C function:

Code: Select all

extern "C" void app_main()
{
    ....
}
by mbratch
Thu Feb 02, 2023 4:27 pm
Forum: General Discussion
Topic: IDF 5.0 braking changes to template variadic arguments
Replies: 5
Views: 2721

Re: IDF 5.0 braking changes to template variadic arguments

Thanks for the details. I also had tried the template code on a couple of online compilers and did not have a problem.

I agree that it may have to do with the context in which it is used, per the link you provided.
by mbratch
Thu Feb 02, 2023 3:01 am
Forum: ESP-IDF
Topic: Guru Meditation Error: Core 1 panic'ed (LoadProhibited) when using two xTaskCreate
Replies: 5
Views: 4802

Re: Guru Meditation Error: Core 1 panic'ed (LoadProhibited) when using two xTaskCreate

Your tasks calls `wiegand_reader_init`. If you create the task twice, it gets called twice with all the same arguments. Is that expected or desirable? And is that function re-entrant?
by mbratch
Wed Feb 01, 2023 8:17 pm
Forum: General Discussion
Topic: IDF 5.0 braking changes to template variadic arguments
Replies: 5
Views: 2721

Re: IDF 5.0 braking changes to template variadic arguments

Version 5 of ESP-IDF moved from gcc 8.4.0 (used in ESP-IDF v4.4) to gcc 11.2.0. The compiler's confused about something. Your error messages point at `event.h` but your link is to `action.h`. Are these the same file with a different name? Or do you have a local `event.h` that includes `action.h`? I ...
by mbratch
Wed Feb 01, 2023 1:35 pm
Forum: ESP-IDF
Topic: Start one ESP application from another ESP application
Replies: 3
Views: 1816

Re: Start one ESP application from another ESP application

What is the use case or scenario for the "cross-coupling" of ESP32 application partitions? If they have a functional dependency, then shouldn't they be all part of the same application? The purpose of the separate OTA applications is to allow upgrading to newer versions, e.g., over the air, so they ...
by mbratch
Wed Feb 01, 2023 1:27 pm
Forum: ESP-IDF
Topic: Guru Meditation Error: Core 1 panic'ed (LoadProhibited) when using two xTaskCreate
Replies: 5
Views: 4802

Re: Guru Meditation Error: Core 1 panic'ed (LoadProhibited) when using two xTaskCreate

Can you show the source for `task`? If it's not re-entrant, then it's a problem to call `xTaskCreate` twice with that same task.
by mbratch
Mon Jan 30, 2023 12:30 pm
Forum: General Discussion
Topic: Need to identify product by Mac Address
Replies: 7
Views: 3127

Re: Need to identify product by Mac Address

I understand that the chip is the heart and soul of the products it is put into. My Desktop computer is similarly built around an Intel chip but it does not use the MAC Address of the Intel chip inside. It uses a Hewlett Packard MAC Address. Was hoping that maybe although the first part of the MAC ...