ble_blinky and ble_hid_keyboard examples both contain the data-sharing-between-ISR-and-main bug where the shared data isn't declared volatile. The code will only work as long as the optimizer is turned down/off and the globals' re-loads into registers aren't optimized away.
Hardware
xG2x dev kits
Core version
2.x
Arduino IDE version
2.x
Operating system
any
Radio stack variant
BLE
OpenThread Border Router device (if using Matter)
No response
Issue description
ble_blinky and ble_hid_keyboard examples both contain the data-sharing-between-ISR-and-main bug where the shared data isn't declared volatile. The code will only work as long as the optimizer is turned down/off and the globals' re-loads into registers aren't optimized away.
Serial output
No response
RTT output (if using Matter)
No response
Minimal reproducer code
No response