Ok, so it appears that the S340 SD simply needed more SRAM. Unfortunately on the xiao nrf52840 I don’t get any debug output to the serial (CDC TinyUSB) even if I compile with full debug. The fix was to use a larger RAM section in the linker file.
MEMORY
{
/* LENGTH = BOOT LOADER START - FLASH ORIGIN */
FLASH (rx) : ORIGIN = 0x31000, LENGTH = 0xF4000 - 0x31000
/* SRAM required by Softdevice depend on
-
- Attribute Table Size (Number of Services and Characteristics)
-
- Vendor UUID count
-
- Max ATT MTU
-
- Concurrent connection peripheral + central + secure links
-
- Event Len, HVN queue, Write CMD queue
*/
- Event Len, HVN queue, Write CMD queue
RAM (rwx) : ORIGIN = 0x20004000, LENGTH = 0x3C000
}
I’m able to run create and run a BLE beacon on the SD340 soft device. Next up, I’ll try ANT