n-able-Arduino icon indicating copy to clipboard operation
n-able-Arduino copied to clipboard

Add xiao sense board

Open onliner10 opened this issue 10 months ago • 6 comments

Hey, I'm no expert in the matter by any means, but I managed to add my XIAO nRF52840 Sense board and get it to work. I tested it with nimBLE and it seems to work fine!

Would it make sense to merge this?

onliner10 avatar Feb 09 '25 11:02 onliner10

Thanks! Looks like a good start, however the linker script should be adjusted as you are leaving a lot of ram on the table. We don't use the softdevice here so it can be changed like the other linker scripts to free up that ram.

h2zero avatar Feb 09 '25 15:02 h2zero

I’d be willing to do that, though i must say I’m not sure how to do this. Could you give me some directions?

onliner10 avatar Feb 09 '25 22:02 onliner10

Sure, but first does this board have a bootloader installed?

h2zero avatar Feb 11 '25 14:02 h2zero

The device ships with the Adafruit NRF 52 bootloader

Nordic has some technical documentation on the device here or there is always the manufacturers page.

Anyway I can help? This would also be of interest to me.

mpmcintyre avatar Mar 02 '25 10:03 mpmcintyre

Thanks! So in this case, assuming you do not want to flash a different bootloader we would either need to make something custom, or just use this as-is and forego the resources consumed by the bootloader/softdevice. Maybe it's better to go this route for the 52840 as it has a good amount of RAM/flash.

h2zero avatar Mar 13 '25 00:03 h2zero

Yeah, I think replacing the bootloader on this board requires access to a SWD flash tool and the SWD pins on the board (they dificult to accesss are solder pads). The board comes with a USB-c connector which you can upload firmware using adafruit-nrfutils and DFU, but from what I can tell, you can not replace the bootloader from this, and it will probably be the most common use case.

mpmcintyre avatar Mar 15 '25 12:03 mpmcintyre

bumping as this is of interest for me too, thanks @onliner10

nravanelli avatar May 08 '25 03:05 nravanelli

Sorry, been super busy and completely forgot about this.

h2zero avatar May 19 '25 15:05 h2zero

Hello @onliner10 , I am getting this error with nRF52840, what is the reason for this, I get it with both Arduino and PlatformIO platforms image image

Jasionf avatar May 26 '25 02:05 Jasionf

image I found none in the src file, but compiling with XIAO ESP32 doesn't give me this error, if you can tell me where the error is, I'd be very grateful!

Jasionf avatar May 26 '25 02:05 Jasionf