When trying to flash the device, I'm getting:
python flash-oak.py
[2023-08-28 13:28:55] INFO [root.__exit__:408] Closing OAK camera
Traceback (most recent call last):
File "/Users/alain/code/flash-oak.py", line 20, in <module>
bootloader = dai.DeviceBootloader(bl)
RuntimeError: Device not in UNBOOTED, BOOTLOADER or FLASH_BOOTED state
Sentry is attempting to send 2 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit