Search found 5 matches

by BjHave
Fri Jan 31, 2020 8:01 am
Forum: ESP32 boards
Topic: OTA of micropython code on ESP32?
Replies: 6
Views: 815

Re: OTA of micropython code on ESP32?

It was pretty straight forward to implement a PartitionCopy Method. I don't know if it is Pythonic ;) but I will share it: from esp32 import Partition import gc class Ota: SEC_SIZE = 4096 def copyPartition(self): currentPartition = Partition(Partition.RUNNING) nextPartition = currentPartition.get_ne...
by BjHave
Fri Jan 24, 2020 2:27 pm
Forum: ESP32 boards
Topic: OTA Firmware Updates
Replies: 2
Views: 553

Re: OTA Firmware Updates

I don't want to cross post, so I will just post a link to another thread where I wrote an answer.

viewtopic.php?p=43583#p43583
by BjHave
Fri Jan 24, 2020 2:23 pm
Forum: ESP32 boards
Topic: How to config 2M flash for a new ESP32 board?
Replies: 6
Views: 357

Re: How to config 2M flash for a new ESP32 board?

Then you have to create your own board config which uses a partition.csv which matches your needs, because the D2WD board config assumes that the 2MB are embedded.
by BjHave
Fri Jan 24, 2020 1:57 pm
Forum: ESP32 boards
Topic: OTA of micropython code on ESP32?
Replies: 6
Views: 815

Re: OTA of micropython code on ESP32?

I'm also looking for an OTA update. There is some progress there, but not yet documented. So far I managed to create a OTA supporting partition table. Create your own board spec in the boards folder inside ports/esp32. Like "GENERIC_OTA" for example. Copy the mpconfigboard.h and the mpconfigboard.mk...
by BjHave
Fri Oct 18, 2019 11:29 am
Forum: ESP32 boards
Topic: ESP32 Guru Meditation Error 1 with btree.flush()
Replies: 0
Views: 992

ESP32 Guru Meditation Error 1 with btree.flush()

Hi there, at the moment I'm trying to flush several hundred bytes (JSON) to a btree database. The first flush at startup after db initialisation is working fine all following flushes are leading to an guru meditation error. When I avoid flushing, i can use the db without any problems but after a res...