diff --git a/bsp/nrf51822/project.uvoptx b/bsp/nrf51822/project.uvoptx index 2aab7cd1fe..fe49eabc7d 100644 --- a/bsp/nrf51822/project.uvoptx +++ b/bsp/nrf51822/project.uvoptx @@ -8,7 +8,7 @@ *.c *.s*; *.src; *.a* - *.obj; *.o + *.obj *.lib *.txt; *.h; *.inc *.plm @@ -120,37 +120,12 @@ 0 JL2CM3 - -U17935099 -O78 -S8 -ZTIFSpeedSel50000 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8004 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC4000 -FN1 -FF0nrf51xxx_sde -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx_sde.flm) - - - 0 - ARMRTXEVENTFLAGS - -L70 -Z18 -C0 -M0 -T1 - - - 0 - DLGTARM - (1010=-1,-1,-1,-1,0)(1007=-1,-1,-1,-1,0)(1008=-1,-1,-1,-1,0) - - - 0 - ARMDBGFLAGS - - - - 0 - DLGUARM - - - - 0 - CMSIS_AGDI - -X"CMSIS-DAP" -U9901000052564e450054600b00000018 -O78 -S7 -C0 -P00 -N00("") -D00(00000000) -L00(0) -TO18 -TC10000000 -TP20 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -FO15 -FD20000000 -FC4000 -FN1 -FF0nrf51xxx_sde.flm -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx_sde.flm) + -U480200710 -O78 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx.flm -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm) 0 UL2CM3 - UL2CM3(-S0 -C0 -P0 ) -FN1 -FC4000 -FD20000000 -FF0nrf51xxx -FL0200000 -FS00 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm) + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm)) @@ -160,12 +135,12 @@ 0 0 - 1 + 0 0 0 0 0 - 1 + 0 0 0 0 @@ -201,14 +176,14 @@ 1 0 2 - 5000 + 10000000 - Kernel - 0 + Applications + 1 0 0 0 @@ -219,202 +194,14 @@ 0 0 0 - ..\..\src\clock.c - clock.c - 0 - 0 - - - 1 - 2 - 1 - 0 - 0 - 0 - ..\..\src\components.c - components.c - 0 - 0 - - - 1 - 3 - 1 - 0 - 0 - 0 - ..\..\src\cpu.c - cpu.c - 0 - 0 - - - 1 - 4 - 1 - 0 - 0 - 0 - ..\..\src\device.c - device.c - 0 - 0 - - - 1 - 5 - 1 - 0 - 0 - 0 - ..\..\src\idle.c - idle.c - 0 - 0 - - - 1 - 6 - 1 - 0 - 0 - 0 - ..\..\src\ipc.c - ipc.c - 0 - 0 - - - 1 - 7 - 1 - 0 - 0 - 0 - ..\..\src\irq.c - irq.c - 0 - 0 - - - 1 - 8 - 1 - 0 - 0 - 0 - ..\..\src\kservice.c - kservice.c - 0 - 0 - - - 1 - 9 - 1 - 0 - 0 - 0 - ..\..\src\mem.c - mem.c - 0 - 0 - - - 1 - 10 - 1 - 0 - 0 - 0 - ..\..\src\mempool.c - mempool.c - 0 - 0 - - - 1 - 11 - 1 - 0 - 0 - 0 - ..\..\src\object.c - object.c - 0 - 0 - - - 1 - 12 - 1 - 0 - 0 - 0 - ..\..\src\scheduler.c - scheduler.c - 0 - 0 - - - 1 - 13 - 1 - 0 - 0 - 0 - ..\..\src\signal.c - signal.c - 0 - 0 - - - 1 - 14 - 1 - 0 - 0 - 0 - ..\..\src\thread.c - thread.c - 0 - 0 - - - 1 - 15 - 1 - 0 - 0 - 0 - ..\..\src\timer.c - timer.c - 0 - 0 - - - - - Applications - 1 - 0 - 0 - 0 - - 2 - 16 - 1 - 0 - 0 - 0 applications\application.c application.c 0 0 - 2 - 17 + 1 + 2 1 0 0 @@ -427,46 +214,14 @@ - Drivers + CPU 1 0 0 0 - 3 - 18 - 1 - 0 - 0 - 0 - drivers\board.c - board.c - 0 - 0 - - - 3 - 19 - 1 - 0 - 0 - 0 - drivers\uart.c - uart.c - 0 - 0 - - - - - cpu - 1 - 0 - 0 - 0 - - 4 - 20 + 2 + 3 1 0 0 @@ -477,20 +232,8 @@ 0 - 4 - 21 - 1 - 0 - 0 - 0 - ..\..\libcpu\arm\common\div0.c - div0.c - 0 - 0 - - - 4 - 22 + 2 + 4 1 0 0 @@ -501,20 +244,20 @@ 0 - 4 - 23 + 2 + 5 1 0 0 0 - ..\..\libcpu\arm\cortex-m0\cpuport.c - cpuport.c + ..\..\libcpu\arm\common\div0.c + div0.c 0 0 - 4 - 24 + 2 + 6 2 0 0 @@ -524,6 +267,18 @@ 0 0 + + 2 + 7 + 1 + 0 + 0 + 0 + ..\..\libcpu\arm\cortex-m0\cpuport.c + cpuport.c + 0 + 0 + @@ -533,68 +288,20 @@ 0 0 - 5 - 25 + 3 + 8 1 0 0 0 - ..\..\components\drivers\src\completion.c - completion.c + ..\..\components\drivers\src\workqueue.c + workqueue.c 0 0 - 5 - 26 - 1 - 0 - 0 - 0 - ..\..\components\drivers\src\dataqueue.c - dataqueue.c - 0 - 0 - - - 5 - 27 - 1 - 0 - 0 - 0 - ..\..\components\drivers\src\pipe.c - pipe.c - 0 - 0 - - - 5 - 28 - 1 - 0 - 0 - 0 - ..\..\components\drivers\src\ringblk_buf.c - ringblk_buf.c - 0 - 0 - - - 5 - 29 - 1 - 0 - 0 - 0 - ..\..\components\drivers\src\ringbuffer.c - ringbuffer.c - 0 - 0 - - - 5 - 30 + 3 + 9 1 0 0 @@ -605,14 +312,118 @@ 0 - 5 - 31 + 3 + 10 1 0 0 0 - ..\..\components\drivers\src\workqueue.c - workqueue.c + ..\..\components\drivers\src\dataqueue.c + dataqueue.c + 0 + 0 + + + 3 + 11 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\ringbuffer.c + ringbuffer.c + 0 + 0 + + + 3 + 12 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\pipe.c + pipe.c + 0 + 0 + + + 3 + 13 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\ringblk_buf.c + ringblk_buf.c + 0 + 0 + + + 3 + 14 + 1 + 0 + 0 + 0 + ..\..\components\drivers\src\completion.c + completion.c + 0 + 0 + + + + + Drivers + 1 + 0 + 0 + 0 + + 4 + 15 + 1 + 0 + 0 + 0 + drivers\board.c + board.c + 0 + 0 + + + 4 + 16 + 1 + 0 + 0 + 0 + drivers\uart.c + uart.c + 0 + 0 + + + 4 + 17 + 1 + 0 + 0 + 0 + Libraries\nrf51822\Source\templates\system_nrf51.c + system_nrf51.c + 0 + 0 + + + 4 + 18 + 2 + 0 + 0 + 0 + Libraries\nrf51822\Source\templates\arm\arm_startup_nrf51.s + arm_startup_nrf51.s 0 0 @@ -625,8 +436,8 @@ 0 0 - 6 - 32 + 5 + 19 1 0 0 @@ -637,8 +448,8 @@ 0 - 6 - 33 + 5 + 20 1 0 0 @@ -649,8 +460,8 @@ 0 - 6 - 34 + 5 + 21 1 0 0 @@ -663,11 +474,167 @@ - ::Device + Kernel 1 0 0 - 1 + 0 + + 6 + 22 + 1 + 0 + 0 + 0 + ..\..\src\clock.c + clock.c + 0 + 0 + + + 6 + 23 + 1 + 0 + 0 + 0 + ..\..\src\object.c + object.c + 0 + 0 + + + 6 + 24 + 1 + 0 + 0 + 0 + ..\..\src\irq.c + irq.c + 0 + 0 + + + 6 + 25 + 1 + 0 + 0 + 0 + ..\..\src\scheduler.c + scheduler.c + 0 + 0 + + + 6 + 26 + 1 + 0 + 0 + 0 + ..\..\src\components.c + components.c + 0 + 0 + + + 6 + 27 + 1 + 0 + 0 + 0 + ..\..\src\thread.c + thread.c + 0 + 0 + + + 6 + 28 + 1 + 0 + 0 + 0 + ..\..\src\ipc.c + ipc.c + 0 + 0 + + + 6 + 29 + 1 + 0 + 0 + 0 + ..\..\src\kservice.c + kservice.c + 0 + 0 + + + 6 + 30 + 1 + 0 + 0 + 0 + ..\..\src\mem.c + mem.c + 0 + 0 + + + 6 + 31 + 1 + 0 + 0 + 0 + ..\..\src\idle.c + idle.c + 0 + 0 + + + 6 + 32 + 1 + 0 + 0 + 0 + ..\..\src\timer.c + timer.c + 0 + 0 + + + 6 + 33 + 1 + 0 + 0 + 0 + ..\..\src\device.c + device.c + 0 + 0 + + + 6 + 34 + 1 + 0 + 0 + 0 + ..\..\src\mempool.c + mempool.c + 0 + 0 + diff --git a/bsp/nrf51822/project.uvprojx b/bsp/nrf51822/project.uvprojx index f2b7ab028d..93e7bd57d6 100644 --- a/bsp/nrf51822/project.uvprojx +++ b/bsp/nrf51822/project.uvprojx @@ -18,10 +18,10 @@ Nordic Semiconductor NordicSemiconductor.nRF_DeviceFamilyPack.8.38.0 http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/ - IRAM(0x20000000,0x00004000) IROM(0x00000000,0x00040000) CPUTYPE("Cortex-M0") CLOCK(12000000) ELITTLE + IROM(0x00000000,0x40000) IRAM(0x20000000,0x4000) CPUTYPE("Cortex-M0") CLOCK(12000000) ELITTLE - UL2CM3(-S0 -C0 -P0 -FD20000000 -FC4000 -FN1 -FF0nrf51xxx -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm)) + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm)) 0 $$Device:nRF51822_xxAA$Device\Include\nrf.h @@ -33,7 +33,7 @@ - $$Device:nRF51822_xxAA$SVD\nrf51.svd + $$Device:nRF51822_xxAA$SVD\nrf51.xml 0 0 @@ -52,7 +52,7 @@ template 1 0 - 1 + 0 1 1 .\build\ @@ -110,7 +110,7 @@ SARMCM3.DLL - + DARMCM1.DLL -pCM0 SARMCM3.DLL @@ -336,9 +336,9 @@ 0 --c99 - NRF51, USE_STDPERIPH_DRIVER + NRF51, __RTTHREAD__, USE_STDPERIPH_DRIVER - .;..\..\include;applications;.;drivers;Libraries\CMSIS\Include;Libraries\nrf51822\Include;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;..\..\components\finsh;..\..\components\libc\compilers\common + applications;.;..\..\libcpu\arm\common;..\..\libcpu\arm\cortex-m0;..\..\components\drivers\include;drivers;Libraries\CMSIS\Include;Libraries\nrf51822\Include;..\..\components\finsh;.;..\..\include @@ -369,7 +369,7 @@ 0x08000000 0x20000000 - .\build\template.sct + @@ -379,86 +379,6 @@ - - Kernel - - - clock.c - 1 - ..\..\src\clock.c - - - components.c - 1 - ..\..\src\components.c - - - cpu.c - 1 - ..\..\src\cpu.c - - - device.c - 1 - ..\..\src\device.c - - - idle.c - 1 - ..\..\src\idle.c - - - ipc.c - 1 - ..\..\src\ipc.c - - - irq.c - 1 - ..\..\src\irq.c - - - kservice.c - 1 - ..\..\src\kservice.c - - - mem.c - 1 - ..\..\src\mem.c - - - mempool.c - 1 - ..\..\src\mempool.c - - - object.c - 1 - ..\..\src\object.c - - - scheduler.c - 1 - ..\..\src\scheduler.c - - - signal.c - 1 - ..\..\src\signal.c - - - thread.c - 1 - ..\..\src\thread.c - - - timer.c - 1 - ..\..\src\timer.c - - - Applications @@ -475,63 +395,58 @@ - Drivers - - - board.c - 1 - drivers\board.c - - - uart.c - 1 - drivers\uart.c - - - - - cpu + CPU backtrace.c 1 ..\..\libcpu\arm\common\backtrace.c - - div0.c - 1 - ..\..\libcpu\arm\common\div0.c - showmem.c 1 ..\..\libcpu\arm\common\showmem.c - cpuport.c + div0.c 1 - ..\..\libcpu\arm\cortex-m0\cpuport.c + ..\..\libcpu\arm\common\div0.c context_rvds.S 2 ..\..\libcpu\arm\cortex-m0\context_rvds.S + + cpuport.c + 1 + ..\..\libcpu\arm\cortex-m0\cpuport.c + DeviceDrivers - completion.c + workqueue.c 1 - ..\..\components\drivers\src\completion.c + ..\..\components\drivers\src\workqueue.c + + + waitqueue.c + 1 + ..\..\components\drivers\src\waitqueue.c dataqueue.c 1 ..\..\components\drivers\src\dataqueue.c + + ringbuffer.c + 1 + ..\..\components\drivers\src\ringbuffer.c + pipe.c 1 @@ -543,19 +458,34 @@ ..\..\components\drivers\src\ringblk_buf.c - ringbuffer.c + completion.c 1 - ..\..\components\drivers\src\ringbuffer.c + ..\..\components\drivers\src\completion.c + + + + + Drivers + + + board.c + 1 + drivers\board.c - waitqueue.c + uart.c 1 - ..\..\components\drivers\src\waitqueue.c + drivers\uart.c - workqueue.c + system_nrf51.c 1 - ..\..\components\drivers\src\workqueue.c + Libraries\nrf51822\Source\templates\system_nrf51.c + + + arm_startup_nrf51.s + 2 + Libraries\nrf51822\Source\templates\arm\arm_startup_nrf51.s @@ -580,7 +510,74 @@ - ::Device + Kernel + + + clock.c + 1 + ..\..\src\clock.c + + + object.c + 1 + ..\..\src\object.c + + + irq.c + 1 + ..\..\src\irq.c + + + scheduler.c + 1 + ..\..\src\scheduler.c + + + components.c + 1 + ..\..\src\components.c + + + thread.c + 1 + ..\..\src\thread.c + + + ipc.c + 1 + ..\..\src\ipc.c + + + kservice.c + 1 + ..\..\src\kservice.c + + + mem.c + 1 + ..\..\src\mem.c + + + idle.c + 1 + ..\..\src\idle.c + + + timer.c + 1 + ..\..\src\timer.c + + + device.c + 1 + ..\..\src\device.c + + + mempool.c + 1 + ..\..\src\mempool.c + + @@ -588,64 +585,8 @@ - - - - - - - - - - - - - - - - - RTE\Device\nRF51802_xxAA\arm_startup_nrf51.s - - - - - - RTE\Device\nRF51802_xxAA\startup_config.h - - - - - - RTE\Device\nRF51802_xxAA\system_nrf51.c - - - - - - RTE\Device\nRF51822_xxAA\arm_startup_nrf51.s - - - - - - - - RTE\Device\nRF51822_xxAA\startup_config.h - - - - - - - - RTE\Device\nRF51822_xxAA\system_nrf51.c - - - - - - - + + diff --git a/bsp/nrf51822/template.uvoptx b/bsp/nrf51822/template.uvoptx new file mode 100644 index 0000000000..0b46ec95af --- /dev/null +++ b/bsp/nrf51822/template.uvoptx @@ -0,0 +1,177 @@ + + + + 1.0 + +
### uVision Project, (C) Keil Software
+ + + *.c + *.s*; *.src; *.a* + *.obj + *.lib + *.txt; *.h; *.inc + *.plm + *.cpp + 0 + + + + 0 + 0 + + + + rt-thread + 0x4 + ARM-ADS + + 12000000 + + 1 + 1 + 0 + 1 + 0 + + + 1 + 65535 + 0 + 0 + 0 + + + 79 + 66 + 8 + .\build\ + + + 1 + 1 + 1 + 0 + 1 + 1 + 0 + 1 + 0 + 0 + 0 + 0 + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 0 + + + 0 + 0 + 1 + + 5 + + 0 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 0 + 1 + 0 + 1 + 1 + 0 + 0 + 1 + 0 + 0 + 4 + + + + + + + + + + + Segger\JL2CM3.dll + + + + 0 + JL2CM3 + -U480200710 -O78 -S0 -A0 -C0 -JU1 -JI127.0.0.1 -JP0 -RST0 -N00("ARM CoreSight SW-DP") -D00(0BB11477) -L00(0) -TO18 -TC10000000 -TP21 -TDS8007 -TDT0 -TDC1F -TIEFFFFFFFF -TIP8 -TB1 -TFE0 -FO15 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx.flm -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm) + + + 0 + UL2CM3 + UL2CM3(-S0 -C0 -P0 -FD20000000 -FC1000 -FN1 -FF0nrf51xxx -FS00 -FL0200000 -FP0($$Device:nRF51822_xxAA$Flash\nrf51xxx.flm)) + + + + + 0 + + + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 + + + + 0 + 0 + 0 + + + + + + + + + + + +
diff --git a/bsp/nrf51822/template.uvproj b/bsp/nrf51822/template.uvprojx similarity index 95% rename from bsp/nrf51822/template.uvproj rename to bsp/nrf51822/template.uvprojx index 39cd92f59a..328e8f0c3f 100644 --- a/bsp/nrf51822/template.uvproj +++ b/bsp/nrf51822/template.uvprojx @@ -10,12 +10,13 @@ rt-thread 0x4 ARM-ADS + 0 nRF51822_xxAA Nordic Semiconductor - NordicSemiconductor.nRF_DeviceFamilyPack.1.1.4 - http://developer.nordicsemi.com/nRF51_SDK/pieces/nRF_DeviceFamilyPack/ + NordicSemiconductor.nRF_DeviceFamilyPack.8.38.0 + http://developer.nordicsemi.com/nRF5_SDK/pieces/nRF_DeviceFamilyPack/ IROM(0x00000000,0x40000) IRAM(0x20000000,0x4000) CPUTYPE("Cortex-M0") CLOCK(12000000) ELITTLE @@ -84,6 +85,8 @@ 0 0 + 0 + 0 0 @@ -147,7 +150,7 @@ 1 0 - 6 + 4 @@ -221,12 +224,14 @@ 0 0 0 + 0 0 0 8 0 0 0 + 0 3 3 0 @@ -360,7 +365,15 @@ 0 0 0 + 0 0 + 1 + 1 + 1 + 1 + 0 + 0 + 0 --c99 @@ -378,6 +391,7 @@ 0 0 0 + 0