from Hacker News

How to write a bootloader from scratch (2019)

by arkj on 10/27/22, 5:17 PM with 19 comments

  • by hra5th on 10/27/22, 5:57 PM

    For Cortex-M embedded topics, memfault's blog is simply one of the best out there. Consistently great posts even though they are written by a bunch of different authors. I go back to https://interrupt.memfault.com/blog/cortex-m-fault-debug all the time when debugging hard faults on different systems.

    Even if you regularly write embedded code for Cortex-M MCUs, scroll through their list of posts and you'll find several that will teach you something new and useful.

  • by dang on 10/27/22, 6:22 PM

    Related:

    From zero to main(): How to write a bootloader from scratch - https://news.ycombinator.com/item?id=24635383 - Sept 2020 (44 comments)

  • by joko42 on 10/27/22, 11:51 PM

    "Zero to main" is the best resource there is about writing bootloaders. Wrote my first boatloader with the help of this series.
  • by kaycebasques on 10/27/22, 7:04 PM

    The CMSIS-DAP adapter referenced in the tutorial is discontinued. Can one of you hardware pros point me to a suitable replacement?

    Also asked the author here: https://mobile.twitter.com/kaycebasques/status/1585708384531...

  • by Koshkin on 10/27/22, 5:44 PM

    (For a Cortex-M based microcontroller)