[M487] Remove support for uVisor core debug message via STDIO

This is necessary. Otherwise, program will hang in uninitialized STDIO UART because uVisor core doesn't enable it.
pull/4608/head
ccli8 2017-08-03 18:48:31 +08:00
parent 04578b6a11
commit f8af225dda
1 changed files with 0 additions and 8 deletions

View File

@ -427,14 +427,6 @@ void Reset_Handler_2(void)
*/
#if defined(FEATURE_UVISOR)
uvisor_init();
#if defined(TARGET_UVISOR_SUPPORTED) && defined(TARGET_DEBUG)
/* Flush debug message emitted by uvisor core */
while (! UART_IS_TX_EMPTY((UART_T *) NU_MODBASE(STDIO_UART)));
/* In the following, STDIO_UART will be re-initialized by mbed but it would be compatible with uvisor core.
* So uvisor core still can emit debug message with the new setting. */
#endif
#endif
#if defined(__CC_ARM)