Run ConfigSystemClocks() & UnitTestMain() in start.c

This commit is contained in:
dxl
2026-08-19 15:32:39 +02:00
committed by Philippe Teuwen
parent ee4ff741ff
commit e4fa411ae9
+7
View File
@@ -80,6 +80,13 @@ void Vector(void) {
uint32_t *bss_dst = __bss_start__;
while (bss_dst < __bss_end__) *bss_dst++ = 0;
// For some platforms (such as AT32), it is best to init the system clock after jump to app,
// otherwise the USB may not work.
// Because after jumping from boot to app, some variables in RAM will be lost.
ConfigSystemClocks();
// Run the unit test(If enable)
UnitTestMain();
// Run App main loop
AppMain();
}
#endif