Build custom bootloader from scratch

In that case why did think you able to write a bootloader? Wouldn't it be a more realistic way to start from less complicated STM32 Cube project?