stm32f7: add showprogress in __start

This commit is contained in:
raiden00pl 2022-07-28 12:08:09 +02:00 committed by Xiang Xiao
parent 82ad4b0e08
commit cce7b7ada6

View File

@ -63,6 +63,24 @@
#define HEAP_BASE ((uintptr_t)&_ebss+CONFIG_IDLETHREAD_STACKSIZE)
/****************************************************************************
* Private Function prototypes
****************************************************************************/
/****************************************************************************
* Name: showprogress
*
* Description:
* Print a character on the UART to show boot status.
*
****************************************************************************/
#ifdef CONFIG_DEBUG_FEATURES
# define showprogress(c) arm_lowputc(c)
#else
# define showprogress(c)
#endif
/****************************************************************************
* Public Data
****************************************************************************/
@ -206,6 +224,7 @@ void __start(void)
stm32_clockconfig();
arm_fpuconfig();
stm32_lowsetup();
showprogress('A');
/* Enable/disable tightly coupled memories */
@ -214,11 +233,13 @@ void __start(void)
/* Initialize onboard resources */
stm32_boardinitialize();
showprogress('B');
/* Enable I- and D-Caches */
up_enable_icache();
up_enable_dcache();
showprogress('C');
#ifdef CONFIG_ARMV7M_ITMSYSLOG
/* Perform ARMv7-M ITM SYSLOG initialization */
@ -231,6 +252,7 @@ void __start(void)
#ifdef USE_EARLYSERIALINIT
arm_earlyserialinit();
#endif
showprogress('D');
/* For the case of the separate user-/kernel-space build, perform whatever
* platform specific initialization of the user memory is required.
@ -241,9 +263,13 @@ void __start(void)
#ifdef CONFIG_BUILD_PROTECTED
stm32_userspace();
#endif
showprogress('E');
/* Then start NuttX */
showprogress('\r');
showprogress('\n');
nx_start();
/* Shouldn't get here */