Replies: 1 comment 5 replies
-
The problem with the write lock is solved by changing code in MicroPython, using the same flash configuration as TinyUF2. The problem which still exists is with the MIMXRT1015EVK board and Teensy (MIMXRT1062) when starting the bootloader by software: write a magic number to the SNVS->LPGPR[3] register and then Reset the device. That works for the bootloader versions of MIMXRT1011, -1052 and -1052 but at MIXRT1015, -1062 (Teensy). The board resets, but the bootloader does create the bootloader drive. It seems to start, but it's unclear in which state it is. When I hook up a JLing debugger, it crashes. Message: |
Beta Was this translation helpful? Give feedback.
-
TinyUF2 is a good project and can make firmware loading pretty easy. So I started to join MicroPython Tiny UF2 with some progress. What I did on MicroPython after some analysis of the TinyUF2 code:
That makes TinyUF2 kind of working for MIMXRT1011, MIMXRT1015, MIXRT1020 and MIMXRT1052 board, as far as the UF2 loader starts, the MicroPython firmware is accepted and will be executed. There are a few minor restrictions:
With the MIMXRT1015EVK and Teensy, the software bootloader does not work. Something happens, but the bootloader does not expose the boot drive. And getting the bootloader to pop up with double reset requires a fine rhythm. But that is more related to the IMXRT10xx not having a clean reset pin.
My primary question is about another topic which should be solved first:
With all devices the flash is write locked when the UF2 bootloader is used. So is there a mechanism in the bootloader that locks the flash, which has to be unlocked?
Beta Was this translation helpful? Give feedback.
All reactions