adafruit / Adafruit_nRF52_Bootloader

USB-enabled bootloaders for the nRF52 BLE SoC chips
MIT License
445 stars 401 forks source link

Question: Custom bootloader action? #141

Closed crides closed 4 years ago

crides commented 4 years ago

How can I go about modifying the bootloader so that I can have custom actions running? I have an external 16Mbyte QSPI flash that's used to store data, and I would like to update those data by using UF2. Of course I need to pull in the QSPI related code in order to manipulate the flash properly, but where else do I need to look into to achieve what I want? Thanks!

hathach commented 4 years ago

check out nordic nrfx for qspi flash driver then try to understand the bootloader code to see where it should be put to best implement what you need.