mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
stm32f7: add showprogress in __start
This commit is contained in:
@@ -63,6 +63,24 @@
|
|||||||
|
|
||||||
#define HEAP_BASE ((uintptr_t)&_ebss+CONFIG_IDLETHREAD_STACKSIZE)
|
#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
|
* Public Data
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -206,6 +224,7 @@ void __start(void)
|
|||||||
stm32_clockconfig();
|
stm32_clockconfig();
|
||||||
arm_fpuconfig();
|
arm_fpuconfig();
|
||||||
stm32_lowsetup();
|
stm32_lowsetup();
|
||||||
|
showprogress('A');
|
||||||
|
|
||||||
/* Enable/disable tightly coupled memories */
|
/* Enable/disable tightly coupled memories */
|
||||||
|
|
||||||
@@ -214,11 +233,13 @@ void __start(void)
|
|||||||
/* Initialize onboard resources */
|
/* Initialize onboard resources */
|
||||||
|
|
||||||
stm32_boardinitialize();
|
stm32_boardinitialize();
|
||||||
|
showprogress('B');
|
||||||
|
|
||||||
/* Enable I- and D-Caches */
|
/* Enable I- and D-Caches */
|
||||||
|
|
||||||
up_enable_icache();
|
up_enable_icache();
|
||||||
up_enable_dcache();
|
up_enable_dcache();
|
||||||
|
showprogress('C');
|
||||||
|
|
||||||
#ifdef CONFIG_ARMV7M_ITMSYSLOG
|
#ifdef CONFIG_ARMV7M_ITMSYSLOG
|
||||||
/* Perform ARMv7-M ITM SYSLOG initialization */
|
/* Perform ARMv7-M ITM SYSLOG initialization */
|
||||||
@@ -231,6 +252,7 @@ void __start(void)
|
|||||||
#ifdef USE_EARLYSERIALINIT
|
#ifdef USE_EARLYSERIALINIT
|
||||||
arm_earlyserialinit();
|
arm_earlyserialinit();
|
||||||
#endif
|
#endif
|
||||||
|
showprogress('D');
|
||||||
|
|
||||||
/* For the case of the separate user-/kernel-space build, perform whatever
|
/* For the case of the separate user-/kernel-space build, perform whatever
|
||||||
* platform specific initialization of the user memory is required.
|
* platform specific initialization of the user memory is required.
|
||||||
@@ -241,9 +263,13 @@ void __start(void)
|
|||||||
#ifdef CONFIG_BUILD_PROTECTED
|
#ifdef CONFIG_BUILD_PROTECTED
|
||||||
stm32_userspace();
|
stm32_userspace();
|
||||||
#endif
|
#endif
|
||||||
|
showprogress('E');
|
||||||
|
|
||||||
/* Then start NuttX */
|
/* Then start NuttX */
|
||||||
|
|
||||||
|
showprogress('\r');
|
||||||
|
showprogress('\n');
|
||||||
|
|
||||||
nx_start();
|
nx_start();
|
||||||
|
|
||||||
/* Shouldn't get here */
|
/* Shouldn't get here */
|
||||||
|
|||||||
Reference in New Issue
Block a user