Search found 6 matches

by goatchurch
Mon May 14, 2018 11:53 am
Forum: ESP32 boards
Topic: File write speed
Replies: 18
Views: 14683

Re: File write speed

Nope, using hardware timers doesn't work. My code is here: https://github.com/goatchurchprime/jupyter_micropython_developer_notebooks/blob/master/FileSystemTests/TimedWritesUsingIRQ.ipynb I've got a 10ms period and start it working with: timer = Timer(0); timer.init(period=10, mode=Timer.PERIODIC, c...
by goatchurch
Sun May 13, 2018 4:57 pm
Forum: ESP32 boards
Topic: File write speed
Replies: 18
Views: 14683

Re: File write speed

I know the UART (in and out) responds asynchronously. It's the filewrite (using spi_flash_write) to the flash memory that has this delay of 80ms. When I try to record a long sequence values from a sensor at high frequency (eg 2ms) I get these big gaps in the sensor data whenever the file hits a 4096...
by goatchurch
Wed May 02, 2018 12:08 pm
Forum: ESP32 boards
Topic: File write speed
Replies: 18
Views: 14683

Re: File write speed

So I'm trying to log a temperature sensor at 10ms intervals to the flash (for analysis of time constants) and these 80ms gaps in the data are not ideal. I think the file.write() eventually goes via flashbdev.esp.flash_write(), which then calls to the low-level Espressive function spi_flash_write(): ...
by goatchurch
Fri Apr 27, 2018 6:00 pm
Forum: ESP32 boards
Topic: File write speed
Replies: 18
Views: 14683

File write speed

I've noticed that you can write data to the file system very quickly, about 1.3miliseconds per 8 byte block, but then every time 4096 bytes gets written it stalls for 90miliseconds. The same effect happens on the ESP8266 but a little slower. Is there a way to avoid this stalling? Can the async featu...
by goatchurch
Fri Apr 27, 2018 5:35 pm
Forum: ESP32 boards
Topic: Anyone recommending a good IDE?
Replies: 20
Views: 26028

Re: Anyone recommending a good IDE?

A lot of Python is nowadays written in the Jupyter IPython notebook environment. So I've got Micropython working through this interface. https://github.com/goatchurchprime/jupyter_micropython_kernel/ I use its commands to flash the board and to upload files. https://github.com/goatchurchprime/jupyte...
by goatchurch
Fri Sep 29, 2017 8:51 pm
Forum: ESP32 boards
Topic: How can I use Webrepl for ESP32?
Replies: 6
Views: 9099

Re: How can I use Webrepl for ESP32?

I'd like to hear how that's going as well.

But in the meantime I've found that my jupyter plugin for the ESP8266 seems to work on the ESP32 pretty much as-is:
https://github.com/goatchurchprime/jupy ... hon_kernel