With a nucleo board L432KC and the micropython v1.17 the message following
message is promt at boot time.
Code: Select all
>>> MPY: can't mount flash
MicroPython v1.17 on 2021-09-14; NUCLEO-L432KC with STM32L432KC
Code: Select all
>>> import os
>>> os.listdir()
[]
>>> import sys
>>> sys.path
['']
This is the same for previous releases : 1.17 / 1.16 / 1.15
For older releases, no message but
Code: Select all
>>> import os
>>> os.listdir()
[]
>>> import sys
>>> sys.path
['']
Code: Select all
>>> MicroPython v1.13-103-gb137d064e on 2020-10-09; NUCLEO-F401RE with STM32F401xE
Type "help()" for more information.
>>> import os
>>> os.listdir()
['boot.py', 'xxxxxx.py', 'xxxxx.py']
>>> import sys
>>> sys.path
['', '/flash', '/flash/lib']
>>>
Thanks in advance for help
The board is flashed like that :
Code: Select all
git clone https://github.com/micropython/micropython.git
cd micropython
git submodule update --init
make -C mpy-cross
cd ports/stm32
git checkout v1.17
st-flash reset
st-flash erase
make BOARD=NUCLEO_L432KC deploy-stlink
5.11.0-34-generic / #36~20.04.1-Ubuntu / x86_64
st-flash 1.6.0