Skip to content

Commit f8cefdf

Browse files
committed
Release v1.16.2
1 parent c7c5ec9 commit f8cefdf

File tree

11,498 files changed

+126802
-187569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

11,498 files changed

+126802
-187569
lines changed
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
@echo off
2+
3+
set UVEXE=C:\Keil_v5\UV4\UV4.EXE
4+
set CURDIR=%CD%
5+
6+
if .%1==. goto help
7+
for %%a in (ARM GCC) do if %1==%%a goto startBuild
8+
goto help
9+
10+
:startBuild
11+
echo.
12+
echo Building DSP Libraries %1
13+
14+
if %1==ARM goto buildARM
15+
if %1==GCC goto buildGCC
16+
goto err
17+
18+
:buildARM
19+
:buildGCC
20+
cd ..\DSP_Lib\Source\%1
21+
22+
echo Building DSP Library for Cortex-M0 Little Endian
23+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM0l" -o "DspLib_cortexM0l_build.log"
24+
25+
echo Building DSP Library for Cortex-M3 Little Endian
26+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM3l" -o "DspLib_cortexM3l_build.log"
27+
28+
echo Building DSP Library for Cortex-M4 Little Endian
29+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM4l" -o "DspLib_cortexM4l_build.log"
30+
31+
echo Building DSP Library for Cortex-M4 Little Endian with single precision FPU
32+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM4lf" -o "DspLib_cortexM4lf_build.log"
33+
34+
echo Building DSP Library for Cortex-M7 Little Endian
35+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM7l" -o "DspLib_cortexM7l_build.log"
36+
37+
echo Building DSP Library for Cortex-M7 Little Endian with single precision FPU
38+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM7lfsp" -o "DspLib_cortexM7lfsp_build.log"
39+
40+
echo Building DSP Library for Cortex-M7 Little Endian with double precision FPU
41+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM7lfdp" -o "DspLib_cortexM7lfdp_build.log"
42+
43+
echo Building DSP Library for ARMv8-M Baseline Little Endian
44+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MBLl" -o "DspLib_ARMv8MBLl_build.log"
45+
46+
echo Building DSP Library for ARMv8-M Mainline Little Endian
47+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MMLl" -o "DspLib_ARMv8MMLl_build.log"
48+
49+
echo Building DSP Library for ARMv8-M Mainline Little Endian with single precision FPU
50+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MMLlfsp" -o "DspLib_ARMv8MMLlfsp_build.log"
51+
52+
REM echo Building DSP Library for ARMv8-M Mainline Little Endian with double precision FPU
53+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MMLlfdp" -o "DspLib_ARMv8MMLlfdp_build.log"
54+
55+
echo Building DSP Library for ARMv8-M Mainline Little Endian with DSP instructions
56+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MMLld" -o "DspLib_ARMv8MMLld_build.log"
57+
58+
echo Building DSP Library for ARMv8-M Mainline Little Endian with DSP instructions, single precision FPU
59+
%UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MMLldfsp" -o "DspLib_ARMv8MMLldfsp_build.log"
60+
61+
REM echo Building DSP Library for ARMv8-M Mainline Little Endian with DSP instructions, double precision FPU
62+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "ARMv8MMLldfdp" -o "DspLib_ARMv8MMLldfdp_build.log"
63+
64+
65+
REM big endian libraries are skipped!
66+
67+
REM echo Building DSP Library for Cortex-M0 Big Endian
68+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM0b" -o "DspLib_cortexM0b_build.log"
69+
70+
REM echo Building DSP Library for Cortex-M3 Big Endian
71+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM3b" -o "DspLib_cortexM3b_build.log"
72+
73+
REM echo Building DSP Library for Cortex-M4 Big Endian
74+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM4b" -o "DspLib_cortexM4b_build.log"
75+
76+
REM echo Building DSP Library for Cortex-M4 Big Endian with single precision FPU
77+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM4bf" -o "DspLib_cortexM4bf_build.log"
78+
79+
REM echo Building DSP Library for Cortex-M7 Big Endian
80+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM7b" -o "DspLib_cortexM7b_build.log"
81+
82+
REM echo Building DSP Library for Cortex-M7 Big Endian with single precision FPU
83+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM7bfsp" -o "DspLib_cortexM7bfsp_build.log"
84+
85+
REM echo Building DSP Library for Cortex-M7 Big Endian with double precision FPU
86+
REM %UVEXE% -rb -j0 arm_cortexM_math.uvprojx -t "cortexM7bfdp" -o "DspLib_cortexM7bfdp_build.log"
87+
88+
goto deleteIntermediateFiles
89+
90+
91+
:deleteIntermediateFiles
92+
echo.
93+
echo Deleting intermediate files
94+
rmdir /S /Q IntermediateFiles
95+
del /Q *.bak
96+
del /Q *.dep
97+
del /Q *.uvguix.*
98+
del /Q ArInp.*
99+
100+
goto changeDir
101+
102+
103+
:changeDir
104+
cd %CURDIR%
105+
goto end
106+
107+
:err
108+
109+
:help
110+
echo Syntax: buildDspLibs toolchain
111+
echo.
112+
echo toolchain: ARM ^| GCC
113+
echo.
114+
echo e.g.: buildDspLibs ARM
115+
116+
:end
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
@echo off
2+
3+
set UVEXE=C:\Keil_v5\UV4\UV4.EXE
4+
set CURDIR=%CD%
5+
6+
if .%1==. goto help
7+
for %%a in (ARM GCC) do if %1==%%a goto startBuild
8+
goto help
9+
10+
:startBuild
11+
echo.
12+
echo Building DSP Reference Libraries %1
13+
14+
if %1==ARM goto buildARM
15+
if %1==GCC goto buildGCC
16+
goto err
17+
18+
:buildARM
19+
:buildGCC
20+
cd .\RefLibs\%1
21+
22+
echo Building DSP Reference Library for Cortex-M0 Little Endian
23+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM0l" -o "RefLib_cortexM0l_build.log"
24+
25+
echo Building DSP Reference Library for Cortex-M3 Little Endian
26+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM3l" -o "RefLib_cortexM3l_build.log"
27+
28+
echo Building DSP Reference Library for Cortex-M4 Little Endian
29+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM4l" -o "RefLib_cortexM4l_build.log"
30+
31+
echo Building DSP Reference Library for Cortex-M4 Little Endian with single precision FPU
32+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM4lf" -o "RefLib_cortexM4lf_build.log"
33+
34+
echo Building DSP Reference Library for Cortex-M7 Little Endian
35+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM7l" -o "RefLib_cortexM7l_build.log"
36+
37+
echo Building DSP Reference Library for Cortex-M7 Little Endian with single precision FPU
38+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM7lfsp" -o "RefLib_cortexM7lfsp_build.log"
39+
40+
echo Building DSP Reference Library for Cortex-M7 Little Endian with double precision FPU
41+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM7lfdp" -o "RefLib_cortexM7lfdp_build.log"
42+
43+
echo Building DSP Reference Library for ARMv8-M Baseline Little Endian
44+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MBLl" -o "RefLib_ARMv8MBLl_build.log"
45+
46+
echo Building DSP Reference Library for ARMv8-M Mainline Little Endian
47+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MMLl" -o "RefLib_ARMv8MMLl_build.log"
48+
49+
echo Building DSP Reference Library for ARMv8-M Mainline Little Endian with single precision FPU
50+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MMLlfsp" -o "RefLib_ARMv8MMLlfsp_build.log"
51+
52+
REM echo Building DSP Reference Library for ARMv8-M Mainline Little Endian with double precision FPU
53+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MMLlfdp" -o "RefLib_ARMv8MMLlfdp_build.log"
54+
55+
echo Building DSP Reference Library for ARMv8-M Mainline Little Endian with DSP instructions
56+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MMLld" -o "RefLib_ARMv8MMLld_build.log"
57+
58+
echo Building DSP Reference Library for ARMv8-M Mainline Little Endian with DSP instructions, single precision FPU
59+
%UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MMLldfsp" -o "RefLib_ARMv8MMLldfsp_build.log"
60+
61+
REM echo Building DSP Reference Library for ARMv8-M Mainline Little Endian with DSP instructions, double precision FPU
62+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t "ARMv8MMLldfdp" -o "RefLib_ARMv8MMLldfdp_build.log"
63+
64+
65+
REM big endian libraries are skipped!
66+
67+
REM echo Building DSP Reference Library for Cortex-M0 Big Endian
68+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t"cortexM0b" -o "RefLib_cortexM0b_build.log"
69+
70+
REM echo Building DSP Reference Library for Cortex-M3 Big Endian
71+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t"cortexM3b" -o "RefLib_cortexM3b_build.log"
72+
73+
REM echo Building DSP Reference Library for Cortex-M4 Big Endian
74+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t"cortexM4b" -o "RefLib_cortexM4b_build.log"
75+
76+
REM echo Building DSP Reference Library for Cortex-M4 Big Endian Big Endian with single precision FPU
77+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t"cortexM4bf" -o "RefLib_cortexM4bf_build.log"
78+
79+
REM echo Building DSP Reference Library for Cortex-M7 Big Endian
80+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM7b" -o "RefLib_cortexM7b_build.log"
81+
82+
REM echo Building DSP Reference Library for Cortex-M7 Big Endian with single precision FPU
83+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM7bfsp" -o "RefLib_cortexM7bfsp_build.log"
84+
85+
REM echo Building DSP Reference Library for Cortex-M7 Big Endian with double precision FPU
86+
REM %UVEXE% -rb -j0 RefLibs.uvprojx -t "cortexM7bfdp" -o "RefLib_cortexM7bfdp_build.log"
87+
88+
goto deleteIntermediateFiles
89+
90+
91+
:deleteIntermediateFiles
92+
echo.
93+
echo Deleting intermediate files
94+
rmdir /S /Q IntermediateFiles
95+
del /Q *.bak
96+
del /Q *.dep
97+
del /Q *.uvguix.*
98+
del /Q ArInp.*
99+
100+
goto changeDir
101+
102+
103+
:changeDir
104+
cd %CURDIR%
105+
goto end
106+
107+
:err
108+
109+
:help
110+
echo Syntax: buildRefLibs toolchain
111+
echo.
112+
echo toolchain: ARM ^| GCC
113+
echo.
114+
echo e.g.: buildRefLibs ARM
115+
116+
:end
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
@echo off
2+
3+
set UVEXE=C:\Keil_v5\UV4\UV4.EXE
4+
5+
if .%1==. goto help
6+
for %%a in (ARM GCC) do if %1==%%a goto checkParam2
7+
echo parameter %1 not supported.
8+
goto help
9+
10+
:checkParam2
11+
if .%2==. goto help
12+
for %%a in ( ^
13+
cortexM0l ^
14+
cortexM3l ^
15+
cortexM4l ^
16+
cortexM4lf ^
17+
cortexM7l ^
18+
cortexM7lfsp ^
19+
cortexM7lfdp ^
20+
ARMv8MBLl ^
21+
ARMv8MMLl ^
22+
ARMv8MMLlfsp ^
23+
ARMv8MMLlfdp ^
24+
ARMv8MMLld ^
25+
ARMv8MMLldfsp ^
26+
ARMv8MMLldfdp ^
27+
) do if %2==%%a goto checkParam3
28+
echo parameter %2 not supported.
29+
goto help
30+
31+
:checkParam3
32+
if .%3==. goto help
33+
for %%a in (MPS2 FVP Simulator) do if %3==%%a goto CheckLibraries
34+
echo parameter %3 not supported.
35+
goto help
36+
37+
:CheckLibraries
38+
if %1==ARM goto CheckLibrariesARM
39+
if %1==GCC goto CheckLibrariesGCC
40+
41+
:CheckLibrariesARM
42+
if not exist ".\RefLibs\%1\Lib\arm_%2_ref.lib" (echo ".\RefLibs\%1\Lib\arm_%2_ref.lib" not found. & goto end)
43+
if not exist "..\Lib\%1\arm_%2_math.lib" (echo "..\Lib\%1\arm_%2_ref.lib" not found. & goto end)
44+
goto CopyLibrariesARM
45+
46+
:CheckLibrariesGCC
47+
if not exist ".\RefLibs\%1\Lib\libarm_%2_ref.a" (echo ".\RefLibs\%1\Lib\libarm_%2_ref.a" not found. & goto end)
48+
if not exist "..\Lib\%1\libarm_%2_math.a" (echo "..\Lib\%1\libarm_%2_math.a" not found. & goto end)
49+
goto CopyLibrariesGCC
50+
51+
:CopyLibrariesARM
52+
copy /B ".\RefLibs\%1\Lib\arm_%2_ref.lib" .\DspLibTest_%3\%1\Lib\arm_ref.lib /B /Y
53+
copy /B "..\Lib\%1\arm_%2_math.lib" .\DspLibTest_%3\%1\Lib\arm_math.lib /B /Y
54+
goto buildProject
55+
56+
:CopyLibrariesGCC
57+
copy /B ".\RefLibs\%1\Lib\libarm_%2_ref.a" .\DspLibTest_%3\%1\Lib\libarm_ref.a /B /Y
58+
copy /B "..\Lib\%1\libarm_%2_math.a" .\DspLibTest_%3\%1\Lib\libarm_math.a /B /Y
59+
goto buildProject
60+
61+
:buildProject
62+
echo Build Test Project ...
63+
%UVEXE% -r -j0 .\DspLibTest_%3\%1\DspLibTest_%3.uvprojx -t "%2" -o ".\Logs\DspLibTest_%3_%2_build.log"
64+
65+
echo Run Test ...
66+
del /Q ".\DspLibTest_%3\%1\Logs\DspLibTest_%3.log" 2>NUL
67+
del /Q ".\DspLibTest_%3\%1\Logs\DspLibTest_%3_%2.log" 2>NUL
68+
69+
rem get start time (The format of %TIME% is HH:MM:SS,CS for example 23:59:59,99)
70+
set STARTTIME=%TIME%
71+
72+
rem run the test
73+
%UVEXE% -d .\DspLibTest_%3\%1\DspLibTest_%3.uvprojx -t "%2"
74+
75+
rem get end time
76+
set ENDTIME=%TIME%
77+
78+
rem calculate duration
79+
rem Change formatting for the start and end times
80+
for /F "tokens=1-4 delims=:.," %%a in ("%STARTTIME%") do (
81+
set /A "start=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
82+
)
83+
84+
for /F "tokens=1-4 delims=:.," %%a in ("%ENDTIME%") do (
85+
set /A "end=(((%%a*60)+1%%b %% 100)*60+1%%c %% 100)*100+1%%d %% 100"
86+
)
87+
88+
rem Test midnight rollover. If so, add 1 day=8640000 1/100ths secs
89+
if %end% lss %start% set /a end+=8640000
90+
91+
rem Calculate the elapsed time by subtracting values
92+
set /A elapsed=end-start
93+
94+
rem Format the results for output
95+
set /A hh=elapsed/(60*60*100), rest=elapsed%%(60*60*100), mm=rest/(60*100), rest%%=60*100, ss=rest/100, cc=rest%%100
96+
if %hh% lss 10 set hh=0%hh%
97+
if %mm% lss 10 set mm=0%mm%
98+
if %ss% lss 10 set ss=0%ss%
99+
if %cc% lss 10 set cc=0%cc%
100+
101+
set DURATION=%hh%:%mm%:%ss%,%cc%
102+
103+
rem write time to file
104+
echo Test %1 %2 : > ".\DspLibTest_%3\%1\Logs\DspLibTest_%3_%2_time.log"
105+
echo Start time: %STARTTIME% >> ".\DspLibTest_%3\%1\Logs\DspLibTest_%3_%2_time.log"
106+
echo End time: %ENDTIME% >> ".\DspLibTest_%3\%1\Logs\DspLibTest_%3_%2_time.log"
107+
echo Duration: %DURATION% >> ".\DspLibTest_%3\%1\Logs\DspLibTest_%3_%2_time.log"
108+
109+
echo Copy Logfile ...
110+
copy /B ".\DspLibTest_%3\%1\Logs\DspLibTest_%3.log" ".\DspLibTest_%3\%1\Logs\DspLibTest_%3_%2.log"
111+
112+
goto end
113+
114+
115+
:help
116+
echo.
117+
echo Syntax: runTest toolchain core test
118+
echo.
119+
echo toolchain: ARM ^| GCC
120+
echo core: cortexM0l ^| cortexM3l ^| cortexM4l ^| cortexM4lf ^| cortexM7l ^| cortexM7lfsp ^| cortexM7lfdp
121+
echo ARMv8MBLl
122+
echo ARMv8MMLl ^| ARMv8MMLlfsp ^| ARMv8MMLlfdp
123+
echo ARMv8MMLld ^| ARMv8MMLldfsp ^| ARMv8MMLldfdp
124+
echo test: MPS2 ^| FVP ^| Simulator
125+
echo.
126+
echo e.g.: runTest ARM cortexM3l Simulator
127+
128+
:end
129+
@echo on

0 commit comments

Comments
 (0)