Search found 15 matches

by carsten
Sun Feb 09, 2020 1:14 pm
Forum: General Discussion and Questions
Topic: Esp32 Firmware v1.12 Bug (Neopixel Glitches)
Replies: 9
Views: 4695

Re: Esp32 Firmware v1.12 Bug (Neopixel Glitches)

The only way to get rid of the memory requirements would be to completely write the neopixel driver in C with a live-calculation of the pulses as has been done in FastLED: https://github.com/FastLED/FastLED/blob/master/platforms/esp/32/clockless_rmt_esp32.h The downside to that is that you can't use...
by carsten
Thu Feb 06, 2020 8:52 pm
Forum: Development of MicroPython
Topic: Floating point division in native .mpy modules
Replies: 2
Views: 2060

Re: Floating point division in native .mpy modules

It's for the ESP32/xtensawin, latest git version compiled on MacOS.

That's the error for a division:

Code: Select all

LinkError: build/mylib.o: undefined symbol: __divsf3
And that's a comparison:

Code: Select all

LinkError: build/mylib.o: undefined symbol: __extendsfdf2
by carsten
Thu Feb 06, 2020 8:16 pm
Forum: Development of MicroPython
Topic: Floating point division in native .mpy modules
Replies: 2
Views: 2060

Floating point division in native .mpy modules

Anytime I want to do a division or comparison with floats, I get an undefined symbol error by the linker. How can I include them?
by carsten
Wed Jul 25, 2018 6:19 pm
Forum: ESP32 boards
Topic: recursive clock uopdate - ESP32
Replies: 6
Views: 4069

Re: recursive clock uopdate - ESP32

It won't cause problems with official uasyncio as it does not use the RTC as its timebase. But if your own code checks for a time of (say) 3.10.00 to trigger an event, you could have a problem. Say the RTC time was 3.09.55 and an update caused it to be corrected to 3.10.05 the time of 3.10.00 would...
by carsten
Tue Jul 24, 2018 11:09 am
Forum: ESP32 boards
Topic: recursive clock uopdate - ESP32
Replies: 6
Views: 4069

Re: recursive clock uopdate - ESP32

However you do have to be careful about updating a clock which is being used to schedule events. This is because your clock no longer increments in a monotonic fashion: it can jump forwards or backwards by an arbitrary amount. Without care this can cause events to be scheduled twice or to be omitte...
by carsten
Thu May 03, 2018 10:07 pm
Forum: ESP32 boards
Topic: Integrate filesystem into image
Replies: 3
Views: 2971

Re: Integrate filesystem into image

In this MicroPython port you can prepare file system image and flash it to your board. Thanks! Edit: So. I ended up using my own fat image (macOS: brew install dosfstools, most likely included in most Linux distributions): $ dd if=/dev/zero of=test.img bs=1m count=2 $ mkfs.fat -S 4096 -f 1 -s 1 tes...
by carsten
Thu May 03, 2018 3:19 pm
Forum: ESP32 boards
Topic: Integrate filesystem into image
Replies: 3
Views: 2971

Integrate filesystem into image

Hi,

is there an easy way to integrate files into the image (apart from frozen modules)? E.g. supplying my own filesystem image.


Thanks,
Carsten
by carsten
Mon Dec 25, 2017 2:10 am
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 463
Views: 539371

Re: MicroPython on ESP32 with SPIRAM support

I would be interested if you can give me some example application where uasyncio is better suited then threads. I guess I can only give the obvious answers. It keeps the code a little simpler, I don't have to make it thread safe, memory footprint is smaller. I have routines that control neopixel in...
by carsten
Sun Dec 24, 2017 3:05 pm
Forum: ESP32 boards
Topic: MicroPython on ESP32 with SPIRAM support
Replies: 463
Views: 539371

Re: MicroPython on ESP32 with SPIRAM support

Hi, so right now I cant get uasyncio working with your firmware... I'll look into it in detail when I have time, but maybe you've already come across this: >>> loop.run_forever() Traceback (most recent call last): File "<stdin>", line 1, in <module> File "uasyncio/core.py", line 138, in run_forever ...