Skip to content

Commit f8af225

Browse files
committed
[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.
1 parent 04578b6 commit f8af225

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

targets/TARGET_NUVOTON/TARGET_M480/device/startup_M480.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -427,14 +427,6 @@ void Reset_Handler_2(void)
427427
*/
428428
#if defined(FEATURE_UVISOR)
429429
uvisor_init();
430-
431-
#if defined(TARGET_UVISOR_SUPPORTED) && defined(TARGET_DEBUG)
432-
/* Flush debug message emitted by uvisor core */
433-
while (! UART_IS_TX_EMPTY((UART_T *) NU_MODBASE(STDIO_UART)));
434-
435-
/* In the following, STDIO_UART will be re-initialized by mbed but it would be compatible with uvisor core.
436-
* So uvisor core still can emit debug message with the new setting. */
437-
#endif
438430
#endif
439431

440432
#if defined(__CC_ARM)

0 commit comments

Comments
 (0)