diff --git a/Examples/.gitignore b/Examples/.gitignore index 567609b1..834b923d 100755 --- a/Examples/.gitignore +++ b/Examples/.gitignore @@ -1 +1,4 @@ build/ +*_debug/ +EventRecorderStub.scvd +_ARMCM0/ diff --git a/Examples/ARM/arm_class_marks_example/CMakeLists.txt b/Examples/ARM/arm_class_marks_example/CMakeLists.txt new file mode 100755 index 00000000..864984ed --- /dev/null +++ b/Examples/ARM/arm_class_marks_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_class_marks_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_class_marks_example) + + +include(config) +configApp(arm_class_marks_example ${ROOT}) + +target_sources(arm_class_marks_example PRIVATE arm_class_marks_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_class_marks_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvoptx b/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvoptx index 5c89cb4d..99259b92 100644 --- a/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvoptx +++ b/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvoptx @@ -147,7 +147,7 @@ 0 0 - 210 + 215 1
460
0 @@ -158,7 +158,7 @@ 1 .\arm_class_marks_example_f32.c - \\arm_class_marks_example\arm_class_marks_example_f32.c\210 + \\arm_class_marks_example\arm_class_marks_example_f32.c\215
@@ -353,6 +353,22 @@ \\arm_class_marks_example\arm_class_marks_example_f32.c\210 + + 1 + 0 + 215 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_class_marks_example_f32.c + + +
@@ -546,6 +562,22 @@ \\arm_class_marks_example\arm_class_marks_example_f32.c\210 + + 1 + 0 + 215 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_class_marks_example_f32.c + + +
@@ -739,6 +771,22 @@ \\arm_class_marks_example\arm_class_marks_example_f32.c\210 + + 1 + 0 + 215 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_class_marks_example_f32.c + + +
diff --git a/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvprojx b/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvprojx index 6bd466de..277153d5 100644 --- a/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvprojx +++ b/Examples/ARM/arm_class_marks_example/arm_class_marks_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -417,7 +417,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -818,7 +818,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1219,7 +1219,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1615,8 +1615,8 @@ - - + + @@ -1624,8 +1624,8 @@ - - + + @@ -1633,26 +1633,26 @@ - - + + - - + + - - + + - - + + @@ -1661,32 +1661,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1705,16 +1705,16 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + @@ -1733,16 +1733,16 @@ RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_class_marks_example/arm_class_marks_example_f32.c b/Examples/ARM/arm_class_marks_example/arm_class_marks_example_f32.c index 1d624193..3e55c2cf 100644 --- a/Examples/ARM/arm_class_marks_example/arm_class_marks_example_f32.c +++ b/Examples/ARM/arm_class_marks_example/arm_class_marks_example_f32.c @@ -83,6 +83,10 @@ */ #include "arm_math.h" +#if defined(SEMIHOSTING) +#include +#endif + #define USE_STATIC_INIT /* ---------------------------------------------------------------------- @@ -207,5 +211,9 @@ int32_t main() ** ------------------------------------------------------------------- */ arm_var_f32(testOutput, numStudents, &var); +#if !defined(SEMIHOSTING) while (1); /* main function does not return */ +#else + printf("mean = %f, std = %f\n",mean,std); +#endif } diff --git a/Examples/ARM/arm_convolution_example/CMakeLists.txt b/Examples/ARM/arm_convolution_example/CMakeLists.txt new file mode 100755 index 00000000..14257acc --- /dev/null +++ b/Examples/ARM/arm_convolution_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_convolution_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_convolution_example) + + +include(config) +configApp(arm_convolution_example ${ROOT}) + +target_sources(arm_convolution_example PRIVATE arm_convolution_example_f32.c math_helper.c) + +### Sources and libs + +target_link_libraries(arm_convolution_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_convolution_example/arm_convolution_example.uvoptx b/Examples/ARM/arm_convolution_example/arm_convolution_example.uvoptx index 24c47500..43fb3f4c 100644 --- a/Examples/ARM/arm_convolution_example/arm_convolution_example.uvoptx +++ b/Examples/ARM/arm_convolution_example/arm_convolution_example.uvoptx @@ -147,7 +147,7 @@ 0 0 - 241 + 250 1
1722
0 @@ -158,12 +158,12 @@ 1 .\arm_convolution_example_f32.c - \\arm_convolution_example\arm_convolution_example_f32.c\241 + \\arm_convolution_example\arm_convolution_example_f32.c\250
1 0 - 244 + 253 1
1726
0 @@ -174,9 +174,17 @@ 1 .\arm_convolution_example_f32.c - \\arm_convolution_example\arm_convolution_example_f32.c\244 + \\arm_convolution_example\arm_convolution_example_f32.c\253
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_convolution_example\arm_convolution_example_f32.c\241 + + 2 + 0 + 250 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_convolution_example_f32.c + + +
+ + 3 + 0 + 253 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_convolution_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_convolution_example\arm_convolution_example_f32.c\241 + + 2 + 0 + 250 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_convolution_example_f32.c + + +
+ + 3 + 0 + 253 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_convolution_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_convolution_example\arm_convolution_example_f32.c\244 + + 2 + 0 + 250 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_convolution_example_f32.c + + +
+ + 3 + 0 + 253 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_convolution_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_convolution_example/arm_convolution_example.uvprojx b/Examples/ARM/arm_convolution_example/arm_convolution_example.uvprojx index 9b73ad21..368fb1e2 100644 --- a/Examples/ARM/arm_convolution_example/arm_convolution_example.uvprojx +++ b/Examples/ARM/arm_convolution_example/arm_convolution_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -422,7 +422,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -828,7 +828,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1234,7 +1234,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1635,8 +1635,8 @@ - - + + @@ -1644,8 +1644,8 @@ - - + + @@ -1653,26 +1653,26 @@ - - + + - - + + - - + + - - + + @@ -1681,32 +1681,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1725,32 +1725,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_convolution_example/arm_convolution_example_f32.c b/Examples/ARM/arm_convolution_example/arm_convolution_example_f32.c index 8af04b8c..9d89f57b 100644 --- a/Examples/ARM/arm_convolution_example/arm_convolution_example_f32.c +++ b/Examples/ARM/arm_convolution_example/arm_convolution_example_f32.c @@ -105,6 +105,10 @@ #include "arm_math.h" #include "math_helper.h" +#if defined(SEMIHOSTING) +#include +#endif + /* ---------------------------------------------------------------------- * Defines each of the tests performed * ------------------------------------------------------------------- */ @@ -193,6 +197,10 @@ int32_t main(void) arm_status status; /* Status of the example */ arm_cfft_radix4_instance_f32 cfft_instance; /* CFFT Structure instance */ +#if defined(SEMIHOSTING) + printf("START\n"); +#endif + /* CFFT Structure instance pointer */ arm_cfft_radix4_instance_f32 *cfft_instance_ptr = (arm_cfft_radix4_instance_f32*) &cfft_instance; @@ -236,12 +244,23 @@ int32_t main(void) status = ARM_MATH_SUCCESS; } +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE\n"); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_dotproduct_example/CMakeLists.txt b/Examples/ARM/arm_dotproduct_example/CMakeLists.txt new file mode 100755 index 00000000..7ae1118c --- /dev/null +++ b/Examples/ARM/arm_dotproduct_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_dotproduct_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_dotproduct_example) + + +include(config) +configApp(arm_dotproduct_example ${ROOT}) + +target_sources(arm_dotproduct_example PRIVATE arm_dotproduct_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_dotproduct_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvoptx b/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvoptx index b0185e5b..b178b443 100644 --- a/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvoptx +++ b/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvoptx @@ -147,9 +147,9 @@ 0 0 - 175 + 177 1 -
444
+
440
0 0 0 @@ -158,14 +158,14 @@ 1 .\arm_dotproduct_example_f32.c - \\arm_dotproduct_example\arm_dotproduct_example_f32.c\175 + \\arm_dotproduct_example\arm_dotproduct_example_f32.c\177
1 0 - 172 + 180 1 -
440
+
444
0 0 0 @@ -174,9 +174,17 @@ 1 .\arm_dotproduct_example_f32.c - \\arm_dotproduct_example\arm_dotproduct_example_f32.c\172 + \\arm_dotproduct_example\arm_dotproduct_example_f32.c\180
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_dotproduct_example\arm_dotproduct_example_f32.c\172 + + 2 + 0 + 177 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_dotproduct_example_f32.c + + +
+ + 3 + 0 + 180 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_dotproduct_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_dotproduct_example\arm_dotproduct_example_f32.c\172 + + 2 + 0 + 177 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_dotproduct_example_f32.c + + +
+ + 3 + 0 + 180 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_dotproduct_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_dotproduct_example\arm_dotproduct_example_f32.c\172 + + 2 + 0 + 177 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_dotproduct_example_f32.c + + +
+ + 3 + 0 + 180 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_dotproduct_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvprojx b/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvprojx index 5e7b718b..9a3e788b 100644 --- a/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvprojx +++ b/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -417,7 +417,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -818,7 +818,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1219,7 +1219,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1615,8 +1615,8 @@ - - + + @@ -1624,8 +1624,8 @@ - - + + @@ -1633,26 +1633,26 @@ - - + + - - + + - - + + - - + + @@ -1661,32 +1661,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1705,32 +1705,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example_f32.c b/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example_f32.c index 21966a01..4c1807b4 100644 --- a/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example_f32.c +++ b/Examples/ARM/arm_dotproduct_example/arm_dotproduct_example_f32.c @@ -86,6 +86,10 @@ #include #include "arm_math.h" +#if defined(SEMIHOSTING) +#include +#endif + /* ---------------------------------------------------------------------- * Defines each of the tests performed * ------------------------------------------------------------------- */ @@ -167,12 +171,23 @@ int32_t main(void) status = ARM_MATH_TEST_FAILURE; } +#if !defined(SEMIHOSTING) if ( status == ARM_MATH_TEST_FAILURE) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE\n"); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_fft_bin_example/CMakeLists.txt b/Examples/ARM/arm_fft_bin_example/CMakeLists.txt new file mode 100755 index 00000000..4682e7eb --- /dev/null +++ b/Examples/ARM/arm_fft_bin_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_fft_bin_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_fft_bin_example) + + +include(config) +configApp(arm_fft_bin_example ${ROOT}) + +target_sources(arm_fft_bin_example PRIVATE arm_fft_bin_data.c arm_fft_bin_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_fft_bin_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvoptx b/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvoptx index 4d4b67e9..57c53467 100644 --- a/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvoptx +++ b/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvoptx @@ -147,9 +147,9 @@ 0 0 - 155 + 163 1 -
476
+
412
0 0 0 @@ -158,14 +158,14 @@ 1 .\arm_fft_bin_example_f32.c - \\arm_fft_bin_example\arm_fft_bin_example_f32.c\155 + \\arm_fft_bin_example\arm_fft_bin_example_f32.c\163
1 0 - 152 + 160 1 -
472
+
408
0 0 0 @@ -174,9 +174,17 @@ 1 .\arm_fft_bin_example_f32.c - \\arm_fft_bin_example\arm_fft_bin_example_f32.c\152 + \\arm_fft_bin_example\arm_fft_bin_example_f32.c\160
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_fft_bin_example\arm_fft_bin_example_f32.c\152 + + 2 + 0 + 160 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fft_bin_example_f32.c + + +
+ + 3 + 0 + 163 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fft_bin_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_fft_bin_example\arm_fft_bin_example_f32.c\152 + + 2 + 0 + 160 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fft_bin_example_f32.c + + +
+ + 3 + 0 + 163 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fft_bin_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_fft_bin_example\arm_fft_bin_example_f32.c\152 + + 2 + 0 + 160 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fft_bin_example_f32.c + + +
+ + 3 + 0 + 163 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fft_bin_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvprojx b/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvprojx index 337315b1..174e468b 100644 --- a/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvprojx +++ b/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -422,7 +422,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -828,7 +828,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1234,7 +1234,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1635,8 +1635,8 @@ - - + + @@ -1644,8 +1644,8 @@ - - + + @@ -1653,26 +1653,26 @@ - - + + - - + + - - + + - - + + @@ -1681,32 +1681,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1725,32 +1725,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example_f32.c b/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example_f32.c index 9e36b2bf..3ea90ba7 100644 --- a/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example_f32.c +++ b/Examples/ARM/arm_fft_bin_example/arm_fft_bin_example_f32.c @@ -97,6 +97,10 @@ #include "arm_math.h" #include "arm_const_structs.h" +#if defined(SEMIHOSTING) +#include +#endif + #define TEST_LENGTH_SAMPLES 2048 /* ------------------------------------------------------------------- @@ -111,6 +115,7 @@ static float32_t testOutput[TEST_LENGTH_SAMPLES/2]; uint32_t fftSize = 1024; uint32_t ifftFlag = 0; uint32_t doBitReverse = 1; +arm_cfft_instance_f32 varInstCfftF32; /* Reference index at which max energy of bin ocuurs */ uint32_t refIndex = 213, testIndex = 0; @@ -127,8 +132,10 @@ int32_t main(void) status = ARM_MATH_SUCCESS; + status=arm_cfft_init_f32(&varInstCfftF32,fftSize); + /* Process the data through the CFFT/CIFFT module */ - arm_cfft_f32(&arm_cfft_sR_f32_len1024, testInput_f32_10khz, ifftFlag, doBitReverse); + arm_cfft_f32(&varInstCfftF32, testInput_f32_10khz, ifftFlag, doBitReverse); /* Process the data through the Complex Magnitude Module for calculating the magnitude at each bin */ @@ -147,12 +154,23 @@ int32_t main(void) ** This denotes a test failure ** ------------------------------------------------------------------- */ +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE\n"); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_fir_example/CMakeLists.txt b/Examples/ARM/arm_fir_example/CMakeLists.txt new file mode 100755 index 00000000..e0861393 --- /dev/null +++ b/Examples/ARM/arm_fir_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_fir_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_fir_example) + + +include(config) +configApp(arm_fir_example ${ROOT}) + +target_sources(arm_fir_example PRIVATE arm_fir_data.c math_helper.c arm_fir_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_fir_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_fir_example/arm_fir_example.uvoptx b/Examples/ARM/arm_fir_example/arm_fir_example.uvoptx index ab289823..a6ab338f 100644 --- a/Examples/ARM/arm_fir_example/arm_fir_example.uvoptx +++ b/Examples/ARM/arm_fir_example/arm_fir_example.uvoptx @@ -147,7 +147,7 @@ 0 0 - 230 + 242 1
1640
0 @@ -158,12 +158,12 @@ 1 .\arm_fir_example_f32.c - \\arm_fir_example\arm_fir_example_f32.c\230 + \\arm_fir_example\arm_fir_example_f32.c\242
1 0 - 227 + 239 1
1636
0 @@ -174,9 +174,17 @@ 1 .\arm_fir_example_f32.c - \\arm_fir_example\arm_fir_example_f32.c\227 + \\arm_fir_example\arm_fir_example_f32.c\239
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_fir_example\arm_fir_example_f32.c\227 + + 2 + 0 + 239 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fir_example_f32.c + + +
+ + 3 + 0 + 242 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fir_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_fir_example\arm_fir_example_f32.c\227 + + 2 + 0 + 239 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fir_example_f32.c + + +
+ + 3 + 0 + 242 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fir_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_fir_example\arm_fir_example_f32.c\227 + + 2 + 0 + 239 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fir_example_f32.c + + +
+ + 3 + 0 + 242 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_fir_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_fir_example/arm_fir_example.uvprojx b/Examples/ARM/arm_fir_example/arm_fir_example.uvprojx index bd5786f3..f37112aa 100644 --- a/Examples/ARM/arm_fir_example/arm_fir_example.uvprojx +++ b/Examples/ARM/arm_fir_example/arm_fir_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -427,7 +427,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -838,7 +838,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1249,7 +1249,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1655,8 +1655,8 @@ - - + + @@ -1664,8 +1664,8 @@ - - + + @@ -1673,26 +1673,26 @@ - - + + - - + + - - + + - - + + @@ -1701,32 +1701,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1745,32 +1745,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_fir_example/arm_fir_example_f32.c b/Examples/ARM/arm_fir_example/arm_fir_example_f32.c index 333d2300..1ce051e1 100644 --- a/Examples/ARM/arm_fir_example/arm_fir_example_f32.c +++ b/Examples/ARM/arm_fir_example/arm_fir_example_f32.c @@ -125,12 +125,23 @@ #include "arm_math.h" #include "math_helper.h" +#if defined(SEMIHOSTING) +#include +#endif + + /* ---------------------------------------------------------------------- ** Macro Defines ** ------------------------------------------------------------------- */ #define TEST_LENGTH_SAMPLES 320 -#define SNR_THRESHOLD_F32 140.0f +/* + +This SNR is a bit small. Need to understand why +this example is not giving better SNR ... + +*/ +#define SNR_THRESHOLD_F32 75.0f #define BLOCK_SIZE 32 #define NUM_TAPS 29 @@ -222,12 +233,23 @@ int32_t main(void) ** Loop here if the signal does not match the reference output. ** ------------------------------------------------------------------- */ +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE : SNR = %f\n",snr); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_graphic_equalizer_example/CMakeLists.txt b/Examples/ARM/arm_graphic_equalizer_example/CMakeLists.txt new file mode 100755 index 00000000..961a8c7a --- /dev/null +++ b/Examples/ARM/arm_graphic_equalizer_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_graphic_equalizer_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_graphic_equalizer_example) + + +include(config) +configApp(arm_graphic_equalizer_example ${ROOT}) + +target_sources(arm_graphic_equalizer_example PRIVATE math_helper.c arm_graphic_equalizer_data.c arm_graphic_equalizer_example_q31.c) + +### Sources and libs + +target_link_libraries(arm_graphic_equalizer_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvoptx b/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvoptx index ef2e8291..1e1d3b52 100644 --- a/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvoptx +++ b/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvoptx @@ -147,9 +147,9 @@ 0 0 - 402 + 410 1 -
1898
+
1902
0 0 0 @@ -158,14 +158,14 @@ 1 .\arm_graphic_equalizer_example_q31.c - \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\402 + \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\410
1 0 - 405 + 407 1 -
1902
+
1898
0 0 0 @@ -174,9 +174,17 @@ 1 .\arm_graphic_equalizer_example_q31.c - \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\405 + \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\407
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\402 + + 2 + 0 + 407 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_graphic_equalizer_example_q31.c + + +
+ + 3 + 0 + 410 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_graphic_equalizer_example_q31.c + + +
0 @@ -578,6 +618,38 @@ \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\402 + + 2 + 0 + 407 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_graphic_equalizer_example_q31.c + + +
+ + 3 + 0 + 410 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_graphic_equalizer_example_q31.c + + +
0 @@ -779,6 +851,38 @@ \\arm_graphic_equalizer_example\arm_graphic_equalizer_example_q31.c\405 + + 2 + 0 + 407 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_graphic_equalizer_example_q31.c + + +
+ + 3 + 0 + 410 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_graphic_equalizer_example_q31.c + + +
0 diff --git a/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvprojx b/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvprojx index 27a474f7..48d927cf 100644 --- a/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvprojx +++ b/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -427,7 +427,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -838,7 +838,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1249,7 +1249,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1655,8 +1655,8 @@ - - + + @@ -1664,8 +1664,8 @@ - - + + @@ -1673,26 +1673,26 @@ - - + + - - + + - - + + - - + + @@ -1701,32 +1701,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1745,32 +1745,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example_q31.c b/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example_q31.c index 663b0467..86ec36be 100644 --- a/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example_q31.c +++ b/Examples/ARM/arm_graphic_equalizer_example/arm_graphic_equalizer_example_q31.c @@ -129,6 +129,10 @@ #include "arm_math.h" #include "math_helper.h" +#if defined(SEMIHOSTING) +#include +#endif + /* Length of the overall data in the test */ #define TESTLENGTH 320 @@ -397,12 +401,23 @@ int32_t main(void) ** Loop here if the signal does not match the reference output. ** ------------------------------------------------------------------- */ +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE : SNR = %f\n",snr); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_linear_interp_example/CMakeLists.txt b/Examples/ARM/arm_linear_interp_example/CMakeLists.txt new file mode 100755 index 00000000..ad6c7a69 --- /dev/null +++ b/Examples/ARM/arm_linear_interp_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_linear_interp_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_linear_interp_example) + + +include(config) +configApp(arm_linear_interp_example ${ROOT}) + +target_sources(arm_linear_interp_example PRIVATE math_helper.c arm_linear_interp_data.c arm_linear_interp_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_linear_interp_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_data.c b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_data.c index 5a53ec6d..92a7dde0 100644 --- a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_data.c +++ b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_data.c @@ -46,7 +46,7 @@ * where pi value is 3.141592653589793 * --------------------------------------------------------------------*/ -float arm_linear_interep_table[188495] = { +const float arm_linear_interep_table[188495] = { -0.000000000000000122, -0.000049999999979173, -0.000099999999833667, -0.000149999999437717, -0.000199999998666767, -0.000249999997395817, -0.000299999995500311, -0.000349999992854362, diff --git a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvoptx b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvoptx index ab04e9cd..5fec8485 100644 --- a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvoptx +++ b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvoptx @@ -147,9 +147,9 @@ 0 0 - 201 + 206 1 -
1834
+
1864
0 0 0 @@ -158,14 +158,14 @@ 1 .\arm_linear_interp_example_f32.c - \\arm_linear_interp_example\arm_linear_interp_example_f32.c\201 + \\arm_linear_interp_example\arm_linear_interp_example_f32.c\206
1 0 - 198 + 203 1 -
1830
+
1860
0 0 0 @@ -174,9 +174,17 @@ 1 .\arm_linear_interp_example_f32.c - \\arm_linear_interp_example\arm_linear_interp_example_f32.c\198 + \\arm_linear_interp_example\arm_linear_interp_example_f32.c\203
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_linear_interp_example\arm_linear_interp_example_f32.c\198 + + 2 + 0 + 203 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_linear_interp_example_f32.c + + +
+ + 3 + 0 + 206 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_linear_interp_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_linear_interp_example\arm_linear_interp_example_f32.c\198 + + 2 + 0 + 203 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_linear_interp_example_f32.c + + +
+ + 3 + 0 + 206 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_linear_interp_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_linear_interp_example\arm_linear_interp_example_f32.c\198 + + 2 + 0 + 203 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_linear_interp_example_f32.c + + +
+ + 3 + 0 + 206 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_linear_interp_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvprojx b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvprojx index 25b68d01..5d3a3b41 100644 --- a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvprojx +++ b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -427,7 +427,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -838,7 +838,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1249,7 +1249,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1655,8 +1655,8 @@ - - + + @@ -1664,8 +1664,8 @@ - - + + @@ -1673,26 +1673,26 @@ - - + + - - + + - - + + - - + + @@ -1701,32 +1701,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1745,32 +1745,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example_f32.c b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example_f32.c index 4da9e59e..98693dc8 100644 --- a/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example_f32.c +++ b/Examples/ARM/arm_linear_interp_example/arm_linear_interp_example_f32.c @@ -87,6 +87,10 @@ #include "arm_math.h" #include "math_helper.h" +#if defined(SEMIHOSTING) +#include +#endif + #define SNR_THRESHOLD 90 #define TEST_LENGTH_SAMPLES 10 #define XSPACING (0.00005f) @@ -132,7 +136,7 @@ float32_t testLinIntOutput[TEST_LENGTH_SAMPLES]; /*------------------------------------------------------------------------------ * External table used for linear interpolation *------------------------------------------------------------------------------*/ -extern float arm_linear_interep_table[188495]; +extern const float arm_linear_interep_table[188495]; /* ---------------------------------------------------------------------- * Global Variables for caluclating SNR's for Method1 & Method 2 @@ -148,7 +152,7 @@ int32_t main(void) uint32_t i; arm_status status; - arm_linear_interp_instance_f32 S = {188495, -3.141592653589793238, XSPACING, &arm_linear_interep_table[0]}; + arm_linear_interp_instance_f32 S = {188495, -3.141592653589793238, XSPACING, (float*)&arm_linear_interep_table[0]}; /*------------------------------------------------------------------------------ * Method 1: Test out Calculated from Cubic Interpolation @@ -193,12 +197,23 @@ int32_t main(void) ** Loop here if the signals fail the PASS check. ** This denotes a test failure ** ------------------------------------------------------------------- */ +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE : SNR = %f <= %f\n",snr2, snr1); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_matrix_example/CMakeLists.txt b/Examples/ARM/arm_matrix_example/CMakeLists.txt new file mode 100755 index 00000000..6ad590c5 --- /dev/null +++ b/Examples/ARM/arm_matrix_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_matrix_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_matrix_example) + + +include(config) +configApp(arm_matrix_example ${ROOT}) + +target_sources(arm_matrix_example PRIVATE math_helper.c arm_matrix_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_matrix_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_matrix_example/arm_matrix_example.uvoptx b/Examples/ARM/arm_matrix_example/arm_matrix_example.uvoptx index 2a4346e8..8db38007 100644 --- a/Examples/ARM/arm_matrix_example/arm_matrix_example.uvoptx +++ b/Examples/ARM/arm_matrix_example/arm_matrix_example.uvoptx @@ -147,7 +147,7 @@ 0 0 - 230 + 234 1
1752
0 @@ -158,12 +158,12 @@ 1 .\arm_matrix_example_f32.c - \\arm_matrix_example\arm_matrix_example_f32.c\230 + \\arm_matrix_example\arm_matrix_example_f32.c\234
1 0 - 227 + 231 1
1748
0 @@ -174,9 +174,17 @@ 1 .\arm_matrix_example_f32.c - \\arm_matrix_example\arm_matrix_example_f32.c\227 + \\arm_matrix_example\arm_matrix_example_f32.c\231
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_matrix_example\arm_matrix_example_f32.c\227 + + 2 + 0 + 231 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_matrix_example_f32.c + + +
+ + 3 + 0 + 234 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_matrix_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_matrix_example\arm_matrix_example_f32.c\227 + + 2 + 0 + 231 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_matrix_example_f32.c + + +
+ + 3 + 0 + 234 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_matrix_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_matrix_example\arm_matrix_example_f32.c\227 + + 2 + 0 + 231 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_matrix_example_f32.c + + +
+ + 3 + 0 + 234 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_matrix_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_matrix_example/arm_matrix_example.uvprojx b/Examples/ARM/arm_matrix_example/arm_matrix_example.uvprojx index 626450a7..c47656ec 100644 --- a/Examples/ARM/arm_matrix_example/arm_matrix_example.uvprojx +++ b/Examples/ARM/arm_matrix_example/arm_matrix_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -422,7 +422,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -828,7 +828,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1234,7 +1234,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1635,8 +1635,8 @@ - - + + @@ -1644,8 +1644,8 @@ - - + + @@ -1653,26 +1653,26 @@ - - + + - - + + - - + + - - + + @@ -1681,32 +1681,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1725,32 +1725,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_matrix_example/arm_matrix_example_f32.c b/Examples/ARM/arm_matrix_example/arm_matrix_example_f32.c index 9e0200bb..14cdb82f 100644 --- a/Examples/ARM/arm_matrix_example/arm_matrix_example_f32.c +++ b/Examples/ARM/arm_matrix_example/arm_matrix_example_f32.c @@ -92,6 +92,10 @@ #include "arm_math.h" #include "math_helper.h" +#if defined(SEMIHOSTING) +#include +#endif + #define SNR_THRESHOLD 90 /* -------------------------------------------------------------------------------- @@ -221,12 +225,23 @@ int32_t main(void) ** Loop here if the signals fail the PASS check. ** This denotes a test failure ** ------------------------------------------------------------------- */ +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE : SNR = %f\n",snr); + } +#endif /* main function does not return */ } /** \endlink */ diff --git a/Examples/ARM/arm_signal_converge_example/CMakeLists.txt b/Examples/ARM/arm_signal_converge_example/CMakeLists.txt new file mode 100755 index 00000000..0d8fd771 --- /dev/null +++ b/Examples/ARM/arm_signal_converge_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_signal_convergence_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_signal_convergence_example) + + +include(config) +configApp(arm_signal_convergence_example ${ROOT}) + +target_sources(arm_signal_convergence_example PRIVATE math_helper.c arm_signal_converge_data.c arm_signal_converge_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_signal_convergence_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvoptx b/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvoptx index 9b182fff..04772c0b 100644 --- a/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvoptx +++ b/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvoptx @@ -147,9 +147,9 @@ 0 0 - 256 + 258 1 -
556
+
552
0 0 0 @@ -158,14 +158,14 @@ 1 .\arm_signal_converge_example_f32.c - \\arm_signal_converge_example\arm_signal_converge_example_f32.c\256 + \\arm_signal_converge_example\arm_signal_converge_example_f32.c\258
1 0 - 253 + 261 1 -
552
+
556
0 0 0 @@ -174,9 +174,17 @@ 1 .\arm_signal_converge_example_f32.c - \\arm_signal_converge_example\arm_signal_converge_example_f32.c\253 + \\arm_signal_converge_example\arm_signal_converge_example_f32.c\261
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_signal_converge_example\arm_signal_converge_example_f32.c\253 + + 2 + 0 + 258 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_signal_converge_example_f32.c + + +
+ + 3 + 0 + 261 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_signal_converge_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_signal_converge_example\arm_signal_converge_example_f32.c\253 + + 2 + 0 + 258 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_signal_converge_example_f32.c + + +
+ + 3 + 0 + 261 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_signal_converge_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_signal_converge_example\arm_signal_converge_example_f32.c\253 + + 2 + 0 + 258 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_signal_converge_example_f32.c + + +
+ + 3 + 0 + 261 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_signal_converge_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvprojx b/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvprojx index 7d541921..3c98265c 100644 --- a/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvprojx +++ b/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -427,7 +427,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -838,7 +838,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1249,7 +1249,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1655,8 +1655,8 @@ - - + + @@ -1664,8 +1664,8 @@ - - + + @@ -1673,26 +1673,26 @@ - - + + - - + + - - + + - - + + @@ -1701,32 +1701,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1745,32 +1745,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example_f32.c b/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example_f32.c index ae25ce91..cf334dad 100644 --- a/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example_f32.c +++ b/Examples/ARM/arm_signal_converge_example/arm_signal_converge_example_f32.c @@ -109,6 +109,10 @@ #include "arm_math.h" #include "math_helper.h" +#if defined(SEMIHOSTING) +#include +#endif + /* ---------------------------------------------------------------------- ** Global defines for the simulation * ------------------------------------------------------------------- */ @@ -116,7 +120,7 @@ #define TEST_LENGTH_SAMPLES 1536 #define NUMTAPS 32 #define BLOCKSIZE 32 -#define DELTA_ERROR 0.000001f +#define DELTA_ERROR 0.00009f #define DELTA_COEFF 0.0001f #define MU 0.5f @@ -248,12 +252,23 @@ int32_t main(void) * This denotes a test failure * ------------------------------------------------------------------- */ +#if !defined(SEMIHOSTING) if ( status != ARM_MATH_SUCCESS) { while (1); } while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE %f\n",minValue); + } +#endif /* main function does not return */ } /** \endlink */ diff --git a/Examples/ARM/arm_sin_cos_example/CMakeLists.txt b/Examples/ARM/arm_sin_cos_example/CMakeLists.txt new file mode 100755 index 00000000..bdcad569 --- /dev/null +++ b/Examples/ARM/arm_sin_cos_example/CMakeLists.txt @@ -0,0 +1,45 @@ +cmake_minimum_required (VERSION 3.6) +project (arm_sin_cos_example VERSION 0.1) + + +# Needed to include the configBoot module +# Define the path to CMSIS-DSP (ROOT is defined on command line when using cmake) +set(ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) +set(DSP ${ROOT}/CMSIS/DSP) + +# Add DSP folder to module path +list(APPEND CMAKE_MODULE_PATH ${DSP}) + +################################### +# +# LIBRARIES +# +################################### + +########### +# +# CMSIS DSP +# + +add_subdirectory(../../../Source bin_dsp) + + +################################### +# +# TEST APPLICATION +# +################################### + + +add_executable(arm_sin_cos_example) + + +include(config) +configApp(arm_sin_cos_example ${ROOT}) + +target_sources(arm_sin_cos_example PRIVATE arm_sin_cos_example_f32.c) + +### Sources and libs + +target_link_libraries(arm_sin_cos_example PRIVATE CMSISDSP) + diff --git a/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvoptx b/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvoptx index 55771f33..0b5df76a 100644 --- a/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvoptx +++ b/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvoptx @@ -147,9 +147,9 @@ 0 0 - 158 + 165 1 -
484
+
492
0 0 0 @@ -158,14 +158,14 @@ 1 .\arm_sin_cos_example_f32.c - \\arm_sin_cos_example\arm_sin_cos_example_f32.c\158 + \\arm_sin_cos_example\arm_sin_cos_example_f32.c\165
1 0 - 153 + 168 1 -
470
+
496
0 0 0 @@ -174,9 +174,17 @@ 1 .\arm_sin_cos_example_f32.c - \\arm_sin_cos_example\arm_sin_cos_example_f32.c\153 + \\arm_sin_cos_example\arm_sin_cos_example_f32.c\168
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_sin_cos_example\arm_sin_cos_example_f32.c\153 + + 2 + 0 + 165 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_sin_cos_example_f32.c + + +
+ + 3 + 0 + 168 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_sin_cos_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_sin_cos_example\arm_sin_cos_example_f32.c\153 + + 2 + 0 + 165 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_sin_cos_example_f32.c + + +
+ + 3 + 0 + 168 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_sin_cos_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_sin_cos_example\arm_sin_cos_example_f32.c\153 + + 2 + 0 + 165 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_sin_cos_example_f32.c + + +
+ + 3 + 0 + 168 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_sin_cos_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvprojx b/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvprojx index a2aff9f9..3f39eced 100644 --- a/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvprojx +++ b/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -417,7 +417,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -818,7 +818,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1219,7 +1219,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1615,8 +1615,8 @@ - - + + @@ -1624,8 +1624,8 @@ - - + + @@ -1633,26 +1633,26 @@ - - + + - - + + - - + + - - + + @@ -1661,32 +1661,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1705,32 +1705,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example_f32.c b/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example_f32.c index 9e65b2c1..53259dc8 100644 --- a/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example_f32.c +++ b/Examples/ARM/arm_sin_cos_example/arm_sin_cos_example_f32.c @@ -84,6 +84,10 @@ #include #include "arm_math.h" +#if defined(SEMIHOSTING) +#include +#endif + /* ---------------------------------------------------------------------- * Defines each of the tests performed * ------------------------------------------------------------------- */ @@ -150,12 +154,28 @@ int32_t main(void) if ( status == ARM_MATH_TEST_FAILURE) { - while (1); + break; } } +#if !defined(SEMIHOSTING) + if ( status != ARM_MATH_SUCCESS) + { + while (1); + } + while (1); /* main function does not return */ +#else + if (status == ARM_MATH_SUCCESS) + { + printf("SUCCESS\n"); + } + else + { + printf("FAILURE %f\n",diff); + } +#endif } /** \endlink */ diff --git a/Examples/ARM/arm_variance_example/arm_variance_example.uvoptx b/Examples/ARM/arm_variance_example/arm_variance_example.uvoptx index 2cb3e221..d8ee0743 100644 --- a/Examples/ARM/arm_variance_example/arm_variance_example.uvoptx +++ b/Examples/ARM/arm_variance_example/arm_variance_example.uvoptx @@ -147,7 +147,7 @@ 0 0 - 201 + 214 1
570
0 @@ -158,12 +158,12 @@ 1 .\arm_variance_example_f32.c - \\arm_variance_example\arm_variance_example_f32.c\201 + \\arm_variance_example\arm_variance_example_f32.c\214
1 0 - 198 + 211 1
566
0 @@ -174,9 +174,17 @@ 1 .\arm_variance_example_f32.c - \\arm_variance_example\arm_variance_example_f32.c\198 + \\arm_variance_example\arm_variance_example_f32.c\211
+ + + 1 + 2 + 0x20001190 + 0 + + 0 @@ -377,6 +385,38 @@ \\arm_variance_example\arm_variance_example_f32.c\198 + + 2 + 0 + 211 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_variance_example_f32.c + + +
+ + 3 + 0 + 214 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_variance_example_f32.c + + +
0 @@ -578,6 +618,38 @@ \\arm_variance_example\arm_variance_example_f32.c\198 + + 2 + 0 + 211 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_variance_example_f32.c + + +
+ + 3 + 0 + 214 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_variance_example_f32.c + + +
0 @@ -779,6 +851,38 @@ \\arm_variance_example\arm_variance_example_f32.c\198 + + 2 + 0 + 211 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_variance_example_f32.c + + +
+ + 3 + 0 + 214 + 1 +
0
+ 0 + 0 + 0 + 0 + 0 + 0 + .\arm_variance_example_f32.c + + +
0 diff --git a/Examples/ARM/arm_variance_example/arm_variance_example.uvprojx b/Examples/ARM/arm_variance_example/arm_variance_example.uvprojx index 00d1b235..591898a6 100644 --- a/Examples/ARM/arm_variance_example/arm_variance_example.uvprojx +++ b/Examples/ARM/arm_variance_example/arm_variance_example.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(10000000) ELITTLE @@ -417,7 +417,7 @@ ARMCM3 ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(10000000) ELITTLE @@ -818,7 +818,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -1219,7 +1219,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.3.1-dev7 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -1615,8 +1615,8 @@ - - + + @@ -1624,8 +1624,8 @@ - - + + @@ -1633,26 +1633,26 @@ - - + + - - + + - - + + - - + + @@ -1661,32 +1661,32 @@ RTE\Device\ARMCM0\startup_ARMCM0.s - - + + RTE\Device\ARMCM0\system_ARMCM0.c - - + + RTE\Device\ARMCM3\startup_ARMCM3.s - - + + RTE\Device\ARMCM3\system_ARMCM3.c - - + + @@ -1705,32 +1705,32 @@ RTE\Device\ARMCM4_FP\startup_ARMCM4.s - - + + RTE\Device\ARMCM4_FP\system_ARMCM4.c - - + + RTE\Device\ARMCM7_SP\startup_ARMCM7.s - - + + RTE\Device\ARMCM7_SP\system_ARMCM7.c - - + + diff --git a/Examples/ARM/arm_variance_example/arm_variance_example_f32.c b/Examples/ARM/arm_variance_example/arm_variance_example_f32.c index e20e1f95..e5dd365b 100644 --- a/Examples/ARM/arm_variance_example/arm_variance_example_f32.c +++ b/Examples/ARM/arm_variance_example/arm_variance_example_f32.c @@ -94,6 +94,10 @@ #include #include "arm_math.h" +#if defined(SEMIHOSTING) +#include +#endif + /* ---------------------------------------------------------------------- * Defines each of the tests performed * ------------------------------------------------------------------- */ diff --git a/Include/arm_math.h b/Include/arm_math.h index 139f3ced..48bee62c 100644 --- a/Include/arm_math.h +++ b/Include/arm_math.h @@ -1,7 +1,7 @@ /****************************************************************************** * @file arm_math.h * @brief Public header file for CMSIS DSP Library - * @version V1.6.0 + * @version V1.7.0 * @date 18. March 2019 ******************************************************************************/ /* diff --git a/Projects/ARM/arm_cortexM_math.uvoptx b/Projects/ARM/arm_cortexM_math.uvoptx index 55c8aeb1..c95a1fcd 100644 --- a/Projects/ARM/arm_cortexM_math.uvoptx +++ b/Projects/ARM/arm_cortexM_math.uvoptx @@ -73,7 +73,7 @@ 0 - 0 + 1 0 1 diff --git a/Projects/ARM/arm_cortexM_math.uvprojx b/Projects/ARM/arm_cortexM_math.uvprojx index 98b908da..5c231e33 100644 --- a/Projects/ARM/arm_cortexM_math.uvprojx +++ b/Projects/ARM/arm_cortexM_math.uvprojx @@ -16,7 +16,7 @@ ARMCM0 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x40000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(12000000) ESEL ELITTLE @@ -2166,7 +2166,7 @@ ARMCM0 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x40000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M0") CLOCK(12000000) ESEL ELITTLE @@ -4316,7 +4316,7 @@ ARMCM3 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x40000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(12000000) ESEL ELITTLE @@ -6466,7 +6466,7 @@ ARMCM3 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x40000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M3") CLOCK(12000000) ESEL ELITTLE @@ -8616,7 +8616,7 @@ ARMCM4 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") CLOCK(12000000) ESEL ELITTLE @@ -10766,7 +10766,7 @@ ARMCM4 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") CLOCK(12000000) ESEL ELITTLE @@ -12916,7 +12916,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -15066,7 +15066,7 @@ ARMCM4_FP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M4") FPU2 CLOCK(12000000) ESEL ELITTLE @@ -17216,7 +17216,7 @@ ARMCM7 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") CLOCK(12000000) ESEL ELITTLE @@ -19366,7 +19366,7 @@ ARMCM7 ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") CLOCK(12000000) ESEL ELITTLE @@ -21516,7 +21516,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -23666,7 +23666,7 @@ ARMCM7_SP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(SFPU) CLOCK(12000000) ESEL ELITTLE @@ -25816,7 +25816,7 @@ ARMCM7_DP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ESEL ELITTLE @@ -27966,7 +27966,7 @@ ARMCM7_DP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IROM(0x00000000,0x80000) IRAM(0x20000000,0x20000) CPUTYPE("Cortex-M7") FPU3(DFPU) CLOCK(12000000) ESEL ELITTLE @@ -30116,7 +30116,7 @@ ARMv8MBL ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IRAM2(0x20200000,0x00020000) IROM(0x00000000,0x00200000) IROM2(0x00200000,0x00200000) CPUTYPE("ARMV8MBL") TZ CLOCK(12000000) ESEL ELITTLE @@ -32266,7 +32266,7 @@ ARMv8MML ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("ARMV8MML") TZ CLOCK(12000000) ESEL ELITTLE @@ -34416,7 +34416,7 @@ ARMv8MML_SP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("ARMV8MML") FPU3(SFPU) TZ CLOCK(12000000) ESEL ELITTLE @@ -36566,7 +36566,7 @@ ARMv8MML_DP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IROM(0x00000000,0x00040000) CPUTYPE("ARMV8MML") FPU3(DFPU) TZ CLOCK(12000000) ESEL ELITTLE @@ -38716,7 +38716,7 @@ ARMv8MML_DSP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IRAM2(0x20200000,0x00020000) IROM(0x00000000,0x00200000) IROM2(0x00200000,0x00200000) CPUTYPE("ARMV8MML") DSP TZ CLOCK(12000000) ESEL ELITTLE @@ -40866,7 +40866,7 @@ ARMv8MML_DSP_SP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IRAM2(0x20200000,0x00020000) IROM(0x00000000,0x00200000) IROM2(0x00200000,0x00200000) CPUTYPE("ARMV8MML") FPU3(SFPU) DSP TZ CLOCK(12000000) ESEL ELITTLE @@ -43016,7 +43016,7 @@ ARMv8MML_DSP_DP ARM - ARM.CMSIS.5.7.0-dev4 + ARM.CMSIS.5.7.0-dev5 http://www.keil.com/pack/ IRAM(0x20000000,0x00020000) IRAM2(0x20200000,0x00020000) IROM(0x00000000,0x00200000) IROM2(0x00200000,0x00200000) CPUTYPE("ARMV8MML") FPU3(DFPU) DSP TZ CLOCK(12000000) ESEL ELITTLE