Xiao BLE Bootloader

Hi, I am getting custom designed xiao ble without reset button on it. Will it come with bootloader or not. if not how can i install bootloader in it without reset button

Hi there,
Good for you, :wink: :ok_hand: ,well the Programmer certainly can put the MCU into boot mode and write anything to it you need? Boot-Loader, Softdevice, Application, whatever.
and soft reset also.
HTH
GL :slight_smile: PJ

I did not have any idea about that can you share any resource for it .
will i need to do bootloader it will come with bootloader?
and is it possible to flash bootloader using jtag swd pins or using other board

Hi there,
Sure , check out the Creating a standalone bin file. demo

I don’t know about what yours comes with , So send them an E-mail and ask?
Yes Flashing bootloader is part of if you want it as part of the process.
You may not need it for production. just the Softdevice and APP


Reading the chip you see the different partions.

Note the NAMES in each file that’s combined, just like when you press upload in arduino IDE.

There’s tons of video’s about the BOOT loaders for allot of MCU’s adafruit has a series also, as well as NRF52.
HTH
GL :slight_smile: PJ

The following table shows the memory layout for the different chips with current SoftDevices:

Usage Memory range nRF52832 (S132 v6.1.x) Memory range nRF52840 (S140 v6.1.x) Memory range nRF52810 (S112 v6.1.x)
Bootloader settings 0x0007 F000 – 0x0008 0000 (4 kB) 0x000F F000 – 0x0010 0000 (4 kB) 0x0002 F000 – 0x0003 0000 (4 kB)
MBR parameter storage 0x0007 E000 – 0x0007 F000 (4 kB) 0x000F E000 – 0x000F F000 (4 kB) 0x0002 E000 – 0x0002 F000 (4 kB)
Bootloader 0x0007 8000 – 0x0007 E000 (24 kB) 0x000F 8000 – 0x000F E000 (24 kB) 0x0002 8000 – 0x0002 E000 (24 kB)
Application area (incl. free space) 0x0002 6000 – 0x0007 8000 (328 kB) 0x0002 6000 – 0x000F 8000 (840 kB) 0x0001 9000 – 0x0002 8000 (60 kB)
SoftDevice 0x0000 1000 – 0x0002 6000 (148 kB) 0x0000 1000 – 0x0002 6000 (148 kB) 0x0000 1000 – 0x0001 9000 (96 kB)
Master Boot Record (MBR) 0x0000 0000 – 0x0000 1000 (4 kB) 0x0000 0000 – 0x0000 1000 (4 kB) 0x0000 0000 – 0x0000 1000 (4 kB)

GL :slight_smile: PJ


pc is not showing port is it mean it does not have bootloader?

Hi there,
WOW ,Congrats :clap:. That is a Beautiful Thing Brother :star_struck: :+1:

And Yes No bootloader… correct.
Use a nordic one or? Adafruit.

HTH
GL :slight_smile: PJ

ps. this looks a little tight? is it ok? (Blue Arrow) they look to be touching?

Nordic nrf52840 one used. Forbootloader flash jlink box needed or any other?

hi there, Yea , or the Mini, or even better is the Nrf52840DK has it built in for $50


Connecting to target via SWD
InitTarget() start
InitTarget() end - Took 5.36ms
Found SW-DP with ID 0x2BA01477
DPv0 detected
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[0]: Stopped AP scan as end of AP map has been reached
Iterating through AP map to find AHB-AP to use
Attach to CPU failed. Executing connect under reset.
RESET (pin 15) high, but should be low. Please check target hardware.
DPv0 detected
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[0]: Stopped AP scan as end of AP map has been reached
Iterating through AP map to find AHB-AP to use
Could not find core in Coresight setup
Connect fallback: Reset via Reset pin & Connect.
RESET (pin 15) high, but should be low. Please check target hardware.
InitTarget() start
InitTarget() end - Took 9.09ms
Found SW-DP with ID 0x2BA01477
DPv0 detected
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[0]: Stopped AP scan as end of AP map has been reached
Iterating through AP map to find AHB-AP to use
Attach to CPU failed. Executing connect under reset.
RESET (pin 15) high, but should be low. Please check target hardware.
DPv0 detected
CoreSight SoC-400 or earlier
Scanning AP map to find all available APs
AP[0]: Stopped AP scan as end of AP map has been reached
Iterating through AP map to find AHB-AP to use
Could not find core in Coresight setup
Cannot connect to target.

after 1 success it is not doing anything

After disconnecting jtag device picked up by Arduino :confetti_ball:

Can you share embed version ble with deepsleep code?

Hi there,
Awesome you got it going… The sleep code is here on the Grove Expansion Board Flash test thread with deep sleep push-button sleep/wake.
HTH
GL :slight_smile: PJ :v: