Explorar el Código

1.add nuc487_flash.sct to fix scons build error:Fatal error: L6031U.
2.fix using keil_v5 build warning, add new line at the end of drv_uart.c.

Jess hace 6 años
padre
commit
fd05a8af3e

+ 1 - 1
bsp/nuvoton_m487/driver/drv_uart.c

@@ -402,4 +402,4 @@ int rt_hw_uart_init(void)
 #endif
 
     return 0;
-}
+}

+ 15 - 0
bsp/nuvoton_m487/nuc487_flash.sct

@@ -0,0 +1,15 @@
+; *************************************************************
+; *** Scatter-Loading Description File generated by uVision ***
+; *************************************************************
+
+LR_IROM1 0x00000000 0x00080000  {    ; load region size_region
+  ER_IROM1 0x00000000 0x00080000  {  ; load address = execution address
+   *.o (RESET, +First)
+   *(InRoot$$Sections)
+   .ANY (+RO)
+  }
+  RW_IRAM1 0x20000000 0x00028000  {  ; RW data
+   .ANY (+RW +ZI)
+  }
+}
+

+ 1 - 1
bsp/nuvoton_m487/rtconfig.py

@@ -3,7 +3,7 @@ import os
 # toolchains options
 ARCH='arm'
 CPU='cortex-m4'
-CROSS_TOOL='gcc'
+CROSS_TOOL='keil'
 
 if os.getenv('RTT_CC'):
 	CROSS_TOOL = os.getenv('RTT_CC')