dc31-addon-addon-badge-firm.../bootloader_hk32f030m_uart_x.../driver/CMSIS/HK32F030M/Source
true 46a3ab6007 bootloader: flash page erase is on-demand, now fits in 2K
Flash pages are only erased as needed during the flash routine, which makes flashing faster as well as making the transfer consistent.

Later datasheets have the flash clock set to 2MHz. I've set it to 2MHz here. I may undo this change later depending on how slow loading a 14K firmware feels.

Was able to save enough space to reduce bootloader size from almost 2.5K to 2K exactly. Adjusted flash offsets to start from 0x800.

GPIO values are now mostly reset to power-on defaults.

Fixed some formatting. Removed dead code.
2023-06-25 05:01:16 -07:00
..
startup_hk32f030mf4p6.s bootloader: flash page erase is on-demand, now fits in 2K 2023-06-25 05:01:16 -07:00
system_hk32f030m.c bootloader: flash page erase is on-demand, now fits in 2K 2023-06-25 05:01:16 -07:00