bluetooth module not found

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
kendrikwah
Posts: 3
Joined: Tue Dec 22, 2020 2:08 pm

bluetooth module not found

Post by kendrikwah » Tue Dec 22, 2020 3:51 pm

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!

User avatar
jimmo
Posts: 2072
Joined: Tue Aug 08, 2017 1:57 am
Location: Sydney, Australia
Contact:

Re: bluetooth module not found

Post by jimmo » Mon Jan 11, 2021 12:09 am

kendrikwah wrote:
Tue Dec 22, 2020 3:51 pm
I am currently using a B-L475E-IOT01A1 from STMicroelectronics! Thank you!
MicroPython does not currently support BLE on that board.

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)
and in mpconfigboard.mk

Code: Select all

MICROPY_PY_BLUETOOTH ?= 1
MICROPY_BLUETOOTH_NIMBLE ?= 1

Post Reply