XIAO BLE Sense in deep sleep mode

Hi! It’s so amazing you managed to figure out how to put it on sleep in platformio. I tried to follow the guide to build using adafruit 1.0.0 library and platformio. I created a small sketch to test this out. But I find I might miss some constants like D1, D2, D3 used in disconnectpin. Apart of flashTransport that seems I cannot find the proper library.

My platformio is similar to this one:

[env:adafruit_feather_nrf52840]
platform = nordicnrf52
board = xiao_ble_sense
framework = arduino
lib_deps =
    olikraus/U8g2@^2.28.8
    SPI
    adafruit/Adafruit SPIFlash@^4.0.0
    adafruit/SdFat - Adafruit Fork@^2.2.1
    seeed-studio/Seeed Arduino LSM6DS3@^2.0.3

Could you please share the platformio.ini file you’re using including the main.cpp to test this? I’ve been searching this anywhere but seems there’s still little or no information.

Also it’s a discouraging that you managed to discover the flash issue even before of Seedstudio team releasing it for us. I was really happy with Xiao (SAMD) but this board seems to be a timewaster, no matter what you try to do on it as wearable, I’m alwayis hitting on a rock.

I appreciate so much your effort to uncover these hidden details.