Open fabik111 opened 3 weeks ago
Memory usage change @ eab56317032f9c878503f61090ad3b043ff17001
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
arduino:mbed_nano:nano33ble |
:small_red_triangle: 0 - +64 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_nano:nanorp2040connect |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:megaavr:uno2018:mode=on |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:unor4wifi |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:mkrwifi1010 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:nano_33_iot |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
On portenta based board, if the user sketch starts and stops BLE several time, after the first time, the BLE stack advertises the wrong BLE mac address ( "AA:AA:AA:AA:AA:AA" ). This is caused because the BLE.end() function of ArduinoBLE doesn't turn off correctly the BLE mbed-os library.
Here a sketch for reproducing the bug.
The fix improves the HCICordioTransportClass::end() calling the ble.shutdown() of mbed-os BLE library and restores the default HCI data received handler to make a valid initialization of the BLE chip at the coming restart.
This PR depends on this PR on the mbed-os repository; do not merge separately.