From fd05a8af3e9f13b5ec989b785b9ef385a94b13c4 Mon Sep 17 00:00:00 2001 From: Jess <317417277@qq.com> Date: Sat, 5 Jan 2019 04:18:09 +0800 Subject: [PATCH] 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. --- bsp/nuvoton_m487/driver/drv_uart.c | 2 +- bsp/nuvoton_m487/nuc487_flash.sct | 15 +++++++++++++++ bsp/nuvoton_m487/rtconfig.py | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 bsp/nuvoton_m487/nuc487_flash.sct diff --git a/bsp/nuvoton_m487/driver/drv_uart.c b/bsp/nuvoton_m487/driver/drv_uart.c index a7ab018f8d..40219da801 100644 --- a/bsp/nuvoton_m487/driver/drv_uart.c +++ b/bsp/nuvoton_m487/driver/drv_uart.c @@ -402,4 +402,4 @@ int rt_hw_uart_init(void) #endif return 0; -} \ No newline at end of file +} diff --git a/bsp/nuvoton_m487/nuc487_flash.sct b/bsp/nuvoton_m487/nuc487_flash.sct new file mode 100644 index 0000000000..854e9c45ff --- /dev/null +++ b/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) + } +} + diff --git a/bsp/nuvoton_m487/rtconfig.py b/bsp/nuvoton_m487/rtconfig.py index 3223847a28..f79420b3bc 100644 --- a/bsp/nuvoton_m487/rtconfig.py +++ b/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')