Hey guys!
I am currently checking on the ubluetooth module in MicroPython (my post got deleted for some reason?) and I would like to check how to flash the ubluetooth module into the .hex or .bin file for micropython?
I am currently using a B-L475E-IOT01A1 from STMicroelectronics! Thank you!
bluetooth module not found
Re: bluetooth module not found
MicroPython does not currently support BLE on that board.kendrikwah wrote: ↑Tue Dec 22, 2020 3:51 pmI am currently using a B-L475E-IOT01A1 from STMicroelectronics! Thank you!
On the STM32 port, we support BLE in two ways:
- IPCC to a second BLE core (e.g. STM32WB55)
- External HCI controller over UART (e.g. the PYBD has a Broadcom BT controller, I've also seen people do this with external nRF modules running Zephyr or NimBLE's HCI controllers)
It looks like your IOT01A1 board has an external SPBTLE-RF module. I don't know much about this module. It might be pretty straightforward to make this work assuming it behaves like a fairly standard UART HCI controller that NimBLE works with. Have a look at stm32/boards/PYBD_SF2
The key things are in mpconfigboard.h
Code: Select all
// Bluetooth config
#define MICROPY_HW_BLE_UART_ID (PYB_UART_6)
#define MICROPY_HW_BLE_UART_BAUDRATE (115200)
Code: Select all
MICROPY_PY_BLUETOOTH ?= 1
MICROPY_BLUETOOTH_NIMBLE ?= 1