I succesfully managed to compile MicroPython v1.14 for the B-L475E-IOT01A ST board.
I transferred the firmware onto the board with openocd.
My objective is to use BLE on the board.
In the REPL, when I import ubluetooth I get:
Code: Select all
MicroPython v1.14-9-g9dedcf122 on 2021-02-06; B-L475E-IOT01A with STM32L475
Type "help()" for more information.
>>> import ubluetooth
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: no module named 'ubluetooth'
>>> help("modules")
__main__ micropython uasyncio/stream urandom
_onewire network ubinascii ure
_uasyncio onewire ucollections uselect
builtins pyb uctypes usocket
cmath stm uerrno ustruct
dht uarray uhashlib usys
framebuf uasyncio/__init__ uheapq utime
gc uasyncio/core uio utimeq
lcd160cr uasyncio/event ujson uzlib
lcd160cr_test uasyncio/funcs umachine
math uasyncio/lock uos
Plus any modules on the filesystem
>>>
- if it's a matter of transferring the wireless stack firmware to the device in the secure flash area
as suggested for a different board here in the forum, or - the functionality may be obtained by communicating with the BLE module in the board by means of I2C as Vjmorrison has done here for reading 3D accelerometer and 3D gyroscope data from the LSM6DSL.
Thanks in advance