Search found 23 matches

by bertel
Thu Feb 25, 2021 4:16 am
Forum: ESP32 boards
Topic: multi-threading question
Replies: 17
Views: 943

Re: multi-threading question

Thank you, @Jimmo
by bertel
Wed Feb 24, 2021 5:26 am
Forum: ESP32 boards
Topic: Trouble with CMake and flash > 4 MB
Replies: 4
Views: 143

Re: Trouble with CMake and flash > 4 MB

I think this is the case. You will need to copy whatever menuconfig generates for you into sdkconfig.board Thank you. I have copied the menuconfig file to .../ports/esp32/boards/GENERIC_SPIRAM/sdkconfig.board (I guess that's where it's supposed to go) which contains the proper instructions: # CONFI...
by bertel
Wed Feb 24, 2021 4:40 am
Forum: ESP32 boards
Topic: multi-threading question
Replies: 17
Views: 943

Re: multi-threading question

Live ad learn, and unlearn ... So the reason that MicroPython on the Pico is special isn't that _thread behaves differently, rather that it runs without a GIL. If you turned off the GIL on the ESP32 port (and disabled core pinning) then it would behave the same way. Interesting. Could you provide so...
by bertel
Mon Feb 22, 2021 4:10 pm
Forum: ESP32 boards
Topic: Trouble with CMake and flash > 4 MB
Replies: 4
Views: 143

Re: Trouble with CMake and flash > 4 MB

I found what is happening, but I don’t why: /esp32/boards/sdkconfig.base is being used instead of the sdkconfig file produced by menuconfig. In /esp32/boards/sdkconfig.base, if I make this edit, the compile finishes successfully: #CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y Th...
by bertel
Mon Feb 22, 2021 2:36 pm
Forum: ESP32 boards
Topic: Trouble with CMake and flash > 4 MB
Replies: 4
Views: 143

Trouble with CMake and flash > 4 MB

I am still (see my comment in https://forum.micropython.org/viewtopic.php?f=18&t=9820 battling with the new Cmake version when it comes to larger flash sizes. It simply won’t compile for anything larger than 4MB Previously, I put these into Makefile BOARD ?= GENERIC_SPIRAM FLASH_SIZE ?= 16MB My part...
by bertel
Mon Feb 22, 2021 7:24 am
Forum: ESP32 boards
Topic: multi-threading question
Replies: 17
Views: 943

Re: multi-threading question

@Jimmo: Yes, the Swiss Guy is in the video. As for _threading using multiple cores on the Pico: Very confusing. It has been drummed into Python coders that with Python, multithreading is not what one would expect, and that Python multithreading uses the same core, and that for multiple cores, one ne...
by bertel
Mon Feb 22, 2021 6:46 am
Forum: ESP32 boards
Topic: multi-threading question
Replies: 17
Views: 943

Re: multi-threading question

@Pythoncoder, both multiTHREADING and multiPROCESSING work very well with standard Python. The threading module and the multiprocessing module come standard with Python. They are different animals. With the threading module (on which the Micropython _thread module is based) all threads use the same ...
by bertel
Sun Feb 21, 2021 5:08 pm
Forum: ESP32 boards
Topic: multi-threading question
Replies: 17
Views: 943

Re: multi-threading question

I don’t have any experience with threading in micropython, but according to the docs, _thread in micropython works just like in vanilla Python. There, threading uses the same core. To use multiple cores, we need to use multiPROCESSING. Most likely, the Swiss guy was tricked into believing threading ...
by bertel
Sun Feb 21, 2021 3:44 pm
Forum: ESP32 boards
Topic: multi-threading question
Replies: 17
Views: 943

Re: multi-threading question

Even under vanilla Python, thread would use only one core ...
by bertel
Sun Feb 21, 2021 3:42 pm
Forum: ESP32 boards
Topic: ESP32 port now uses CMake
Replies: 12
Views: 659

Re: ESP32 port now uses CMake

I’m trying to get the new version going. build-GENERIC works, but build-GENERIC_SPIRAM is throwing me a curve ball. When I use the proper partitions.csv , and update Makefile with BOARD ?= GENERIC_SPIRAM FLASH_SIZE ?= 16MB I get the following error: FAILED: partition_table/partition-table.bin cd /us...