Search found 34 matches

by chibill
Fri Feb 26, 2021 8:50 pm
Forum: ESP32 boards
Topic: ESP32 port now uses CMake
Replies: 13
Views: 750

Re: ESP32 port now uses CMake

Not really a esp32 specific question, How does this affect making native modules? Was thing I making a few based off some C libraries I want to use and don't know if I should stay on my version I am currently working with for another project or start work in a new copy of micropython now that it use...
by chibill
Fri Feb 26, 2021 8:20 pm
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Re: Running C++ code on the second core.

So I have made progress although I ran into an issue where the library I am trying to write an usermodule for uses C++ templating which when its included into the c shim causes the compiler to throw errors about the templating. Also for some reason sometimes the C++ code can't see malloc and other f...
by chibill
Mon Jan 25, 2021 8:44 pm
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Re: Running C++ code on the second core.

Okay. Also figured out my issue. Turns out it really helps to be compiling for the GENERIC-SPIRAM if your going to be doing something that requires that extra ram.
by chibill
Sun Jan 24, 2021 3:33 am
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Re: Running C++ code on the second core.

So I am running into issues with StoreProhibited Errors. Any idea how to track down what exactly is causing this? Like I have the ESP Stack Trace but I am not sure how to use that from a Micropython standpoint.
by chibill
Sat Dec 19, 2020 4:37 pm
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Re: Running C++ code on the second core.

That seems to have worked.
by chibill
Sat Dec 19, 2020 3:38 pm
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Re: Running C++ code on the second core.

So I found out how to make a cpp module in micropython but I have found that not even the example will compile for ESP32.
https://gist.github.com/wgaylord/55a4ea ... 115101decc
by chibill
Fri Dec 18, 2020 1:49 pm
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Re: Running C++ code on the second core.

I am now able to built micropython again. I will be doing some tests with running stuff on the other core from C.

One thing I have to figure out is how to use C++ code in a c module in Micropython.
by chibill
Mon Dec 14, 2020 4:33 am
Forum: ESP32 boards
Topic: Running C++ code on the second core.
Replies: 8
Views: 573

Running C++ code on the second core.

Hello, I am making this thread to track my attempts at running a C++ program on the second core and interacting with it thru Micropython. In this case I am going to be trying to have https://github.com/bitluni/ESP32CompositeVideo running on the second core as a very basic Composite Video Text displa...
by chibill
Mon Dec 14, 2020 4:13 am
Forum: ESP32 boards
Topic: Support for WPA2 EAP networks.
Replies: 4
Views: 981

Re: Support for WPA2 EAP networks.

Unfortunately no library exists. I was going to try and make a library using the new features that allow C modules to be compiled as libraries but unfortunately they can't use ESP IDF functions not defined in the one table. So your stuck with modifying Micropython itself.
by chibill
Tue Sep 08, 2020 8:12 pm
Forum: Development of MicroPython
Topic: Native C module: accessing objects. [SOLVED]
Replies: 27
Views: 3511

Re: Native C module: accessing objects

If https://github.com/micropython/micropython/pull/5711 ever gets looked at this will be possible I think.