From de66213d2e2f09da1282a49bb3e57c62b0cbbc47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=81=E5=85=89?= <1004383796@qq.com> Date: Sun, 2 Sep 2018 18:14:09 +0800 Subject: [PATCH] =?UTF-8?q?[bsp][lpc408x]=20=E4=BF=AE=E5=A4=8Dlpc408x?= =?UTF-8?q?=E7=9A=84mdk5=5Fide=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/lpc408x/project.uvprojx | 568 +++++++++++++++++++---------------- bsp/lpc408x/template.uvprojx | 394 ++++++++++++++++++++++++ 2 files changed, 700 insertions(+), 262 deletions(-) create mode 100644 bsp/lpc408x/template.uvprojx diff --git a/bsp/lpc408x/project.uvprojx b/bsp/lpc408x/project.uvprojx index 14f721caf2..c9a4fc4fbf 100644 --- a/bsp/lpc408x/project.uvprojx +++ b/bsp/lpc408x/project.uvprojx @@ -7,21 +7,22 @@ - RT-Thread LPC408x + RT-Thread LPC408X 0x4 ARM-ADS + 5060422::V5.06 update 4 (build 422)::ARMCC - LPC4088FBD208 - NXP - Keil.LPC4000_DFP.1.1.0 + ARMCM4 + ARM + ARM.CMSIS.5.0.0 http://www.keil.com/pack/ - IROM(0x00000000,0x80000) IRAM(0x10000000,0x10000) IRAM2(0x20000000,0x8000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ELITTLE + IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("Cortex-M4") CLOCK(12000000) ESEL ELITTLE - UL2CM3(-S0 -C0 -P0 -FD10000000 -FCFE0 -FN1 -FF0LPC_IAP_512 -FS00 -FL080000 -FP0($$Device:LPC4088FBD208$Flash\LPC_IAP_512.FLM)) + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000) 0 - $$Device:LPC4088FBD208$Device\Include\LPC407x_8x_177x_8x.h + $$Device:ARMCM4$Device\ARM\ARMCM4\Include\ARMCM4.h @@ -31,7 +32,7 @@ - $$Device:LPC4088FBD208$SVD\LPC408x_7x.svd + $$Device:ARMCM4$Device\ARM\SVD\ARMCM4.svd 0 0 @@ -47,12 +48,12 @@ 1 .\build\ - rtthread-lpc + rtthread 1 0 0 1 - 1 + 0 .\build\ 1 0 @@ -78,9 +79,9 @@ 0 - 0 + 1 0 - + fromelf --bin !L --output rtthread-mdk.bin 0 0 @@ -124,47 +125,6 @@ 0 16 - - 0 - 1 - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - - - 1 - 1 - 1 - 1 - 1 - 1 - 0 - 1 - 0 - 1 - - 0 - 6 - - - - - - - - - - - - - - Segger\JL2CM3.dll - @@ -173,10 +133,10 @@ 0 1 1 - 4099 + 4096 1 - Segger\JL2CM3.dll + BIN\UL2CM3.DLL "" () @@ -222,13 +182,14 @@ 1 0 0 - 2 - 1 + 0 + 0 0 8 0 - 0 + 1 0 + 0 3 3 0 @@ -281,13 +242,13 @@ 0 - 0x10000000 - 0x10000 + 0x20000000 + 0x20000 1 0x0 - 0x80000 + 0x40000 0 @@ -341,18 +302,18 @@ 0 - 0x20000000 - 0x8000 + 0x0 + 0x0 1 - 1 + 3 0 0 - 0 + 1 0 0 0 @@ -361,15 +322,20 @@ 0 0 0 - 0 + 1 0 - 0 - 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 - + --library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186 CORE_M4, RT_USING_ARM_LIBC - Libraries/Device/NXP/LPC407x_8x_177x_8x/Include;Libraries/CMSIS/Include;Libraries/Drivers/include;applications;.;drivers;../../include;../../libcpu/arm/cortex-m4;../../libcpu/arm/common;..\..\components\libc\pthreads;../../components/libc/armlibc;../../components/drivers/include;../../components/drivers/include;../../components/finsh + applications;.;drivers;Libraries\Device\NXP\LPC407x_8x_177x_8x\Include;Libraries\CMSIS\Include;Libraries\Drivers\include;..\..\include;..\..\libcpu\arm\cortex-m4;..\..\libcpu\arm\common;..\..\components\dfs\include;..\..\components\dfs\filesystems\devfs;..\..\components\dfs\filesystems\elmfat;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\armlibc;..\..\components\libc\pthreads;..\..\components\libc\time @@ -382,6 +348,7 @@ 0 0 0 + 0 @@ -390,7 +357,7 @@ - 1 + 0 0 0 0 @@ -399,10 +366,10 @@ 0x00000000 0x10000000 - + .\rtthread-lpc408x.sct - --keep *.o(.rti_fn.*) --keep *.o(FSymTab) --keep *.o(VSymTab) + --keep *.o(FSymTab) --keep *.o(VSymTab) @@ -410,207 +377,207 @@ - CMSIS + Applications - system_LPC407x_8x_177x_8x.c + application.c 1 - Libraries/Device/NXP/LPC407x_8x_177x_8x/Source/Templates/system_LPC407x_8x_177x_8x.c + applications\application.c - startup_LPC407x_8x_177x_8x.s - 2 - Libraries/Device/NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s + board.c + 1 + applications\board.c + + + canapp.c + 1 + applications\canapp.c + + + sram.c + 1 + applications\sram.c + + + startup.c + 1 + applications\startup.c + + + + + Drivers + + + drv_hwtimer.c + 1 + drivers\drv_hwtimer.c + + + drv_led.c + 1 + drivers\drv_led.c + + + drv_lpccan.c + 1 + drivers\drv_lpccan.c + + + drv_sdram.c + 1 + drivers\drv_sdram.c + + + drv_uart.c + 1 + drivers\drv_uart.c Libraries + + system_LPC407x_8x_177x_8x.c + 1 + Libraries\Device\NXP\LPC407x_8x_177x_8x\Source\Templates\system_LPC407x_8x_177x_8x.c + + + startup_LPC407x_8x_177x_8x.s + 2 + Libraries\Device\NXP\LPC407x_8x_177x_8x\Source\Templates\ARM\startup_LPC407x_8x_177x_8x.s + lpc_adc.c 1 - Libraries/Drivers/source/lpc_adc.c + Libraries\Drivers\source\lpc_adc.c lpc_bod.c 1 - Libraries/Drivers/source/lpc_bod.c + Libraries\Drivers\source\lpc_bod.c lpc_can.c 1 - Libraries/Drivers/source/lpc_can.c + Libraries\Drivers\source\lpc_can.c lpc_clkpwr.c 1 - Libraries/Drivers/source/lpc_clkpwr.c + Libraries\Drivers\source\lpc_clkpwr.c lpc_crc.c 1 - Libraries/Drivers/source/lpc_crc.c + Libraries\Drivers\source\lpc_crc.c lpc_dac.c 1 - Libraries/Drivers/source/lpc_dac.c + Libraries\Drivers\source\lpc_dac.c lpc_eeprom.c 1 - Libraries/Drivers/source/lpc_eeprom.c + Libraries\Drivers\source\lpc_eeprom.c lpc_emc.c 1 - Libraries/Drivers/source/lpc_emc.c + Libraries\Drivers\source\lpc_emc.c lpc_exti.c 1 - Libraries/Drivers/source/lpc_exti.c + Libraries\Drivers\source\lpc_exti.c lpc_gpdma.c 1 - Libraries/Drivers/source/lpc_gpdma.c + Libraries\Drivers\source\lpc_gpdma.c lpc_gpio.c 1 - Libraries/Drivers/source/lpc_gpio.c + Libraries\Drivers\source\lpc_gpio.c lpc_i2c.c 1 - Libraries/Drivers/source/lpc_i2c.c + Libraries\Drivers\source\lpc_i2c.c lpc_i2s.c 1 - Libraries/Drivers/source/lpc_i2s.c + Libraries\Drivers\source\lpc_i2s.c lpc_iap.c 1 - Libraries/Drivers/source/lpc_iap.c + Libraries\Drivers\source\lpc_iap.c lpc_lcd.c 1 - Libraries/Drivers/source/lpc_lcd.c + Libraries\Drivers\source\lpc_lcd.c lpc_mcpwm.c 1 - Libraries/Drivers/source/lpc_mcpwm.c + Libraries\Drivers\source\lpc_mcpwm.c lpc_nvic.c 1 - Libraries/Drivers/source/lpc_nvic.c + Libraries\Drivers\source\lpc_nvic.c lpc_pinsel.c 1 - Libraries/Drivers/source/lpc_pinsel.c + Libraries\Drivers\source\lpc_pinsel.c lpc_pwm.c 1 - Libraries/Drivers/source/lpc_pwm.c + Libraries\Drivers\source\lpc_pwm.c lpc_qei.c 1 - Libraries/Drivers/source/lpc_qei.c + Libraries\Drivers\source\lpc_qei.c lpc_rtc.c 1 - Libraries/Drivers/source/lpc_rtc.c + Libraries\Drivers\source\lpc_rtc.c lpc_ssp.c 1 - Libraries/Drivers/source/lpc_ssp.c + Libraries\Drivers\source\lpc_ssp.c lpc_systick.c 1 - Libraries/Drivers/source/lpc_systick.c + Libraries\Drivers\source\lpc_systick.c lpc_timer.c 1 - Libraries/Drivers/source/lpc_timer.c + Libraries\Drivers\source\lpc_timer.c lpc_uart.c 1 - Libraries/Drivers/source/lpc_uart.c + Libraries\Drivers\source\lpc_uart.c lpc_wwdt.c 1 - Libraries/Drivers/source/lpc_wwdt.c - - - - - Applications - - - application.c - 1 - applications/application.c - - - board.c - 1 - applications/board.c - - - sram.c - 1 - applications/sram.c - - - startup.c - 1 - applications/startup.c - - - canapp.c - 1 - .\applications\canapp.c - - - - - Drivers - - - drv_led.c - 1 - drivers/drv_led.c - - - drv_uart.c - 1 - drivers/drv_uart.c - - - drv_lpccan.c - 1 - .\drivers\drv_lpccan.c - - - drv_sdram.c - 1 - .\drivers\drv_sdram.c + Libraries\Drivers\source\lpc_wwdt.c @@ -620,72 +587,72 @@ clock.c 1 - ../../src/clock.c - - - components.c - 1 - ../../src/components.c + ..\..\src\clock.c device.c 1 - ../../src/device.c + ..\..\src\device.c idle.c 1 - ../../src/idle.c + ..\..\src\idle.c ipc.c 1 - ../../src/ipc.c + ..\..\src\ipc.c irq.c 1 - ../../src/irq.c + ..\..\src\irq.c kservice.c 1 - ../../src/kservice.c + ..\..\src\kservice.c mem.c 1 - ../../src/mem.c + ..\..\src\mem.c memheap.c 1 - ../../src/memheap.c + ..\..\src\memheap.c mempool.c 1 - ../../src/mempool.c + ..\..\src\mempool.c object.c 1 - ../../src/object.c + ..\..\src\object.c scheduler.c 1 - ../../src/scheduler.c + ..\..\src\scheduler.c + + + signal.c + 1 + ..\..\src\signal.c thread.c 1 - ../../src/thread.c + ..\..\src\thread.c timer.c 1 - ../../src/timer.c + ..\..\src\timer.c @@ -695,152 +662,127 @@ cpuport.c 1 - ../../libcpu/arm/cortex-m4/cpuport.c + ..\..\libcpu\arm\cortex-m4\cpuport.c context_rvds.S 2 - ../../libcpu/arm/cortex-m4/context_rvds.S + ..\..\libcpu\arm\cortex-m4\context_rvds.S backtrace.c 1 - ../../libcpu/arm/common/backtrace.c + ..\..\libcpu\arm\common\backtrace.c div0.c 1 - ../../libcpu/arm/common/div0.c + ..\..\libcpu\arm\common\div0.c showmem.c 1 - ../../libcpu/arm/common/showmem.c + ..\..\libcpu\arm\common\showmem.c - pthreads + Filesystem - clock_time.c - 1 - ..\..\components\libc\pthreads\clock_time.c - - - mqueue.c - 1 - ..\..\components\libc\pthreads\mqueue.c - - - pthread.c - 1 - ..\..\components\libc\pthreads\pthread.c - - - pthread_attr.c + dfs.c 1 - ..\..\components\libc\pthreads\pthread_attr.c + ..\..\components\dfs\src\dfs.c - pthread_barrier.c + dfs_file.c 1 - ..\..\components\libc\pthreads\pthread_barrier.c + ..\..\components\dfs\src\dfs_file.c - pthread_cond.c + dfs_fs.c 1 - ..\..\components\libc\pthreads\pthread_cond.c + ..\..\components\dfs\src\dfs_fs.c - pthread_mutex.c + dfs_posix.c 1 - ..\..\components\libc\pthreads\pthread_mutex.c + ..\..\components\dfs\src\dfs_posix.c - pthread_rwlock.c + poll.c 1 - ..\..\components\libc\pthreads\pthread_rwlock.c + ..\..\components\dfs\src\poll.c - pthread_spin.c + select.c 1 - ..\..\components\libc\pthreads\pthread_spin.c + ..\..\components\dfs\src\select.c - pthread_tls.c + devfs.c 1 - ..\..\components\libc\pthreads\pthread_tls.c + ..\..\components\dfs\filesystems\devfs\devfs.c - sched.c + dfs_elm.c 1 - ..\..\components\libc\pthreads\sched.c + ..\..\components\dfs\filesystems\elmfat\dfs_elm.c - semaphore.c + ff.c 1 - ..\..\components\libc\pthreads\semaphore.c + ..\..\components\dfs\filesystems\elmfat\ff.c - libc + DeviceDrivers - mem_std.c + can.c 1 - ../../components/libc/armlibc/mem_std.c + ..\..\components\drivers\can\can.c - stubs.c + pin.c 1 - ../../components/libc/armlibc/stubs.c + ..\..\components\drivers\misc\pin.c - - - - DeviceDrivers - serial.c 1 - ../../components/drivers/serial/serial.c + ..\..\components\drivers\serial\serial.c completion.c 1 - ../../components/drivers/src/completion.c + ..\..\components\drivers\src\completion.c dataqueue.c 1 - ../../components/drivers/src/dataqueue.c + ..\..\components\drivers\src\dataqueue.c pipe.c 1 - ../../components/drivers/src/pipe.c - - - portal.c - 1 - ../../components/drivers/src/portal.c + ..\..\components\drivers\src\pipe.c ringbuffer.c 1 - ../../components/drivers/src/ringbuffer.c + ..\..\components\drivers\src\ringbuffer.c - workqueue.c + waitqueue.c 1 - ../../components/drivers/src/workqueue.c + ..\..\components\drivers\src\waitqueue.c - can.c + workqueue.c 1 - ..\..\components\drivers\can\can.c + ..\..\components\drivers\src\workqueue.c @@ -850,82 +792,184 @@ shell.c 1 - ../../components/finsh/shell.c + ..\..\components\finsh\shell.c symbol.c 1 - ../../components/finsh/symbol.c + ..\..\components\finsh\symbol.c cmd.c 1 - ../../components/finsh/cmd.c + ..\..\components\finsh\cmd.c + + + msh.c + 1 + ..\..\components\finsh\msh.c + + + msh_cmd.c + 1 + ..\..\components\finsh\msh_cmd.c + + + msh_file.c + 1 + ..\..\components\finsh\msh_file.c finsh_compiler.c 1 - ../../components/finsh/finsh_compiler.c + ..\..\components\finsh\finsh_compiler.c finsh_error.c 1 - ../../components/finsh/finsh_error.c + ..\..\components\finsh\finsh_error.c finsh_heap.c 1 - ../../components/finsh/finsh_heap.c + ..\..\components\finsh\finsh_heap.c finsh_init.c 1 - ../../components/finsh/finsh_init.c + ..\..\components\finsh\finsh_init.c finsh_node.c 1 - ../../components/finsh/finsh_node.c + ..\..\components\finsh\finsh_node.c finsh_ops.c 1 - ../../components/finsh/finsh_ops.c + ..\..\components\finsh\finsh_ops.c finsh_parser.c 1 - ../../components/finsh/finsh_parser.c + ..\..\components\finsh\finsh_parser.c finsh_var.c 1 - ../../components/finsh/finsh_var.c + ..\..\components\finsh\finsh_var.c finsh_vm.c 1 - ../../components/finsh/finsh_vm.c + ..\..\components\finsh\finsh_vm.c finsh_token.c 1 - ../../components/finsh/finsh_token.c + ..\..\components\finsh\finsh_token.c + + + + libc + - msh.c + libc.c 1 - ..\..\components\finsh\msh.c + ..\..\components\libc\compilers\armlibc\libc.c - msh_cmd.c + mem_std.c 1 - ..\..\components\finsh\msh_cmd.c + ..\..\components\libc\compilers\armlibc\mem_std.c + + + stdio.c + 1 + ..\..\components\libc\compilers\armlibc\stdio.c + + + stubs.c + 1 + ..\..\components\libc\compilers\armlibc\stubs.c + + + time.c + 1 + ..\..\components\libc\compilers\armlibc\time.c - ::CMSIS + pthreads + + + mqueue.c + 1 + ..\..\components\libc\pthreads\mqueue.c + + + pthread.c + 1 + ..\..\components\libc\pthreads\pthread.c + + + pthread_attr.c + 1 + ..\..\components\libc\pthreads\pthread_attr.c + + + pthread_barrier.c + 1 + ..\..\components\libc\pthreads\pthread_barrier.c + + + pthread_cond.c + 1 + ..\..\components\libc\pthreads\pthread_cond.c + + + pthread_mutex.c + 1 + ..\..\components\libc\pthreads\pthread_mutex.c + + + pthread_rwlock.c + 1 + ..\..\components\libc\pthreads\pthread_rwlock.c + + + pthread_spin.c + 1 + ..\..\components\libc\pthreads\pthread_spin.c + + + pthread_tls.c + 1 + ..\..\components\libc\pthreads\pthread_tls.c + + + sched.c + 1 + ..\..\components\libc\pthreads\sched.c + + + semaphore.c + 1 + ..\..\components\libc\pthreads\semaphore.c + + + clock_time.c + 1 + ..\..\components\libc\time\clock_time.c + + + posix_sleep.c + 1 + ..\..\components\libc\time\posix_sleep.c + + @@ -934,10 +978,10 @@ - - + + - + diff --git a/bsp/lpc408x/template.uvprojx b/bsp/lpc408x/template.uvprojx new file mode 100644 index 0000000000..b985d37e18 --- /dev/null +++ b/bsp/lpc408x/template.uvprojx @@ -0,0 +1,394 @@ + + + + 2.1 + +
### uVision Project, (C) Keil Software
+ + + + RT-Thread LPC408X + 0x4 + ARM-ADS + 5060528::V5.06 update 5 (build 528)::ARMCC + + + ARMCM4 + ARM + ARM.CMSIS.5.0.0 + http://www.keil.com/pack/ + IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("Cortex-M4") CLOCK(12000000) ESEL ELITTLE + + + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000) + 0 + $$Device:ARMCM4$Device\ARM\ARMCM4\Include\ARMCM4.h + + + + + + + + + + $$Device:ARMCM4$Device\ARM\SVD\ARMCM4.svd + 0 + 0 + + + + + + + 0 + 0 + 0 + 0 + 1 + + .\build\ + rtthread + 1 + 0 + 0 + 1 + 0 + .\build\ + 1 + 0 + 0 + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 0 + 0 + + + 0 + 0 + 0 + 0 + + + 1 + 0 + fromelf --bin !L --output rtthread-mdk.bin + + 0 + 0 + 0 + 0 + + 0 + + + + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 3 + + + 1 + + + SARMCM3.DLL + -MPU + DCM.DLL + -pCM4 + SARMCM3.DLL + -MPU + TCM.DLL + -pCM4 + + + + 1 + 0 + 0 + 0 + 16 + + + + + 1 + 0 + 0 + 1 + 1 + 4096 + + 1 + BIN\UL2CM3.DLL + "" () + + + + + 0 + + + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + "Cortex-M4" + + 0 + 0 + 0 + 1 + 1 + 0 + 0 + 0 + 0 + 0 + 8 + 0 + 1 + 0 + 0 + 3 + 3 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 1 + 0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x20000000 + 0x20000 + + + 1 + 0x0 + 0x40000 + + + 0 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x0 + + + 1 + 0x0 + 0x80000 + + + 1 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x0 + 0x0 + + + 0 + 0x10000000 + 0x10000 + + + 0 + 0x0 + 0x0 + + + + + + 1 + 3 + 0 + 0 + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 1 + 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 + + --library_interface=armcc --library_type=standardlib --diag_suppress=66,1296,186 + + + + + + + 1 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + 0 + 1 + 0 + 0x00000000 + 0x10000000 + + .\rtthread-lpc408x.sct + + + + + + + + + + + + + + + + + + + + + + + + +
-- GitLab