Knowledge Base
KamlatechToolBlogContact Us
  • Kamlatech Documentation
  • Magento
    • Installation
    • Email Configuration
  • Blogger
    • Adding Code Block
  • Linux
    • Managing Logs
    • Prevent Package Update
  • Node
    • Installation
    • Http-Server
  • Github
    • .gitignore
    • Branch to New Repo
  • HTML
    • Common Header & Footer in HTML
  • Linkedin Infographics
    • Flame Retardant Standards
    • Flame Retardant Terms
  • Music
    • Pandit Niladri Kumar - Sitar
  • Applications
    • Konvect Connect
    • Konvect Fetcher
    • Konvect Fetcher WebApp
  • HTTPS SSL Certificate
    • Lets's Encrypt
  • Oracle Cloud Instance
    • Firewall
    • CPU Stressing
    • CPU Stressing Docker
  • SFTP
    • WinSCP SFTP
  • NextCloud
    • Installation
    • Post Install Tweak
    • PHP Version
  • Wordpress
    • NGINX Configuration
    • Image upload / Crop issue
    • Required PHP Modules
    • PHP Configuration
  • Healthcare Wearables (Cardiac)
    • Wearable ECG
    • Arrhythmia
    • Ambulatory ECG Usecase
    • Understanding EKG Leads
  • Flutter
    • Direct URL Access
    • Change Android PackageName
  • Math
    • Online Equation Writing
  • Backend Web Service
    • Flask App Deployment
  • 3D Modeling
    • DWG in Solid Edge
  • MariaDB
    • MariaDB Commands
  • Excel
    • HTML as String in Excel
  • Tools
    • Online Tools
  • PostgreSQL
    • PostgreSQL Installation
  • MEDUSA
    • Medusa Installation
    • Backend Server/Worker Mode
    • Frontend Deployment
  • Jupyter Lab
    • Jupyter Web App
  • WooCommerce
    • Product Filename Renaming
  • Embedded
    • Flash Xiao Sense Bootloader
Powered by GitBook
On this page
Edit on GitHub
  1. Embedded

Flash Xiao Sense Bootloader

PreviousProduct Filename Renaming

Last updated 2 months ago

Xiao sense NRF52840 comes with a bootloader which connects seamlessly with Arduino for flashing and also provide as option to upload UF2 format firmware using a storage device option when the reset button is double pressed.

But once you start working with Zephyr and NRF connect and program the board using J-Link, the bootloader will get wiped out, and you can no longer upload firmware.

So here is a quick guide to flash the original bootloader to Xiao Sense NRF 52840

You will need

  1. Bootloader in HEX format.

  2. J-Link device / programmer with pins soldered to the board or use a Seeed Xiao mother board which has pogo pins connecting to the programming pins under the Xiao Sense board (you already have this setup while flashing Zephyr)

  3. Segger J-link software (you already have this setup while flashing Zephyr)

The bootloader is easily available in your Arduino folder with path (change username)

C:\Users\___UserName___\AppData\Local\Arduino15\packages\Seeeduino\hardware\nrf52\1.1.9\bootloader\Seeed_XIAO_nRF52840_Sense

Now in windows application search - search J Flash tool and open it. It looks as below

Next File > Open Data File and locate your bootloader Hex File. Your hex file will be loaded on the right side

Then go to File > New Projects and select your hardware device in from the selection option. Here it will be NRF 52840 ... and then Press OK

Now choose Target > Production Programming and your device will be erased, flashed and then verified.

A popup will appear to show the programming progress

There is one final and important step. Now again access Target > Manual Programming > Start Application.

That's all now your board is as lovely as it was when you bought it.

https://www.segger.com/downloads/jlink/