|
在sdm450平台,如果要调试BOOT.BF.3.3.2里面的代码,想通过串口输出log,就会发现,会概率性不能输出串口log,下面是打开log开关:
diff --git a/BOOT.BF.3.3.2/boot_images/core/boot/secboot3/src/boot_uart.c b/BOOT.BF.3.3.2/boot_images/core/boot/secboot3/src/boot_uart.c
old mode 100755
new mode 100644
index 9c7e6e9..f722c22
— a/BOOT.BF.3.3.2/boot_images/core/boot/secboot3/src/boot_uart.c
+++ b/BOOT.BF.3.3.2/boot_images/core/boot/secboot3/src/boot_uart.c
@@ -194,7 +194,7 @@ uint32 boot_uart_tx(UartHandle handle, char* buf, uint32 bytes_to_tx)
{
/* If uart connection is disconnected then don't flush log through uart*/
if (uart_connection_status == TRUE)
{ - return 0; + //return 0; }
就把return 0注释掉就可以了
|
|