On Mac OS X 12.1 with board redbear_blenano2, all of my attempts to use the board don’t do anything when it comes to interfacing with the physical board (but I don’t see errors) . I’ve tried the Arduino IDE/blinky apps and my board works fine, so I know it’s not a hardware issue. I’ve also tried zephyr/west direct installs and they work fine. So something seems to be amiss with my platform.io setup. Below is output for my upload command. Interestingly, platform.io is reporting to be using OpenOCD, whereas the direct zephyr/west cli is using pyocd which is reporting successful uploads, looks like a good hint the the issue? Advice welcome!
> Executing task in folder 211231-162818-arduino-blink: platformio run --target upload --environment redbear_blenano2 <
Processing redbear_blenano2 (platform: nordicnrf52; framework: arduino; board: redbear_blenano2)
------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/nordicnrf52/redbear_blenano2.html
PLATFORM: Nordic nRF52 (9.1.0) > RedBearLab BLE Nano 2
HARDWARE: NRF52832 64MHz, 64KB RAM, 512KB Flash
DEBUG: Current (cmsis-dap) On-board (cmsis-dap) External (blackmagic, jlink, stlink)
PACKAGES:
- framework-arduinonordicnrf5 1.700.201209 (7.0)
- tool-bossac-nordicnrf52 1.10901.201022 (1.9.1)
- tool-openocd 2.1100.211028 (11.0)
- tool-sreccat 1.164.0 (1.64)
- toolchain-gccarmnoneeabi 1.70201.0 (7.2.1)
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 2 compatible libraries
Scanning dependencies...
No dependencies
Building in release mode
Checking size .pio/build/redbear_blenano2/firmware.elf
Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
RAM: [ ] 0.2% (used 140 bytes from 65536 bytes)
Flash: [ ] 0.4% (used 2176 bytes from 524288 bytes)
Configuring upload protocol...
AVAILABLE: blackmagic, cmsis-dap, jlink, nrfjprog, stlink
CURRENT: upload_protocol = cmsis-dap
Uploading .pio/build/redbear_blenano2/firmware.hex
xPack OpenOCD x86_64 Open On-Chip Debugger 0.11.0+dev (2021-10-17-00:18)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 1