Any restrictions while writing to flash on pyboard?

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
garter
Posts: 2
Joined: Wed Aug 08, 2018 8:41 pm

Any restrictions while writing to flash on pyboard?

Post by garter » Mon Aug 13, 2018 7:54 am

On the esp32 interrupts are disabled while writing to flash.
Do any such restrictions exist on the pyboard?

Thanks!

jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

Re: Any restrictions while writing to flash on pyboard?

Post by jickster » Fri Aug 24, 2018 2:12 am

garter wrote:On the esp32 interrupts are disabled while writing to flash.
Do any such restrictions exist on the pyboard?

Thanks!

Not ALL interrupts are disabled on ESP32 just the ones whose code are in flash https://dl.espressif.com/doc/esp-idf/la ... flash.html

On pyboard it’s the same restriction because it has STM32F405RG

Code: Select all

 Any attempt to read the Flash memory on STM32F4xx while it is being written or erased, causes the bus to stall. Read operations are processed correctly once the program operation has completed. This means that code or data fetches cannot be performed while a write/erase operation is ongoing.
On STM32F42xxx and STM32F43xxx devices, two banks are available allowing read operation from one bank while a write/erase operation is performed to the other bank.

Post Reply