Features: - VFO mode with direct frequency input - POCSAG decoder (512/1200 baud) with BCH(31,21) correction - Full-screen Spectrum analyzer - FM Radio receiver - RSSI signal indicator overlay - Custom boot splash (UA1ZBE / POCSAG pager / build date) Architecture: - app/mode.c — mode dispatcher (VFO/POCSAG/Spectrum/FM) - app/boot_splash.c — 2-second boot splash - app/pocsag/ — POCSAG decoder + BCH correction - app/display_rssi.c — RSSI indicator - main.c — entry point with custom init - syscalls.c — bare-metal _sbrk stub Build: arm-none-eabi-gcc -Os -flto -Wall -Werror -Wextra Size: 57.9KB Flash / 3.6KB RAM Controls: - 0-9: Direct frequency input (VFO) - SK2: POCSAG mode - SK1: Spectrum analyzer - 0: FM Radio - EXIT: Return to VFO - F/*: Toggle 512/1200 baud (in POCSAG)
4.0 KiB
CMSIS-Core Validation
This folder contains a test suite that validates CMSIS-Core implementations. It uses Fixed Virtual Platforms to run tests to verify correct operation of the CMSIS-Core functionality on various Arm Cortex based processors.
Folder structure
📂 CoreValidation
┣ 📂 Include Include files for test cases etc.
┣ 📂 Layer Layers for creating the projects.
┣ 📂 Project Solution and project files to build tests for various configurations.
┗ 📂 Source Test case source code.
Test matrix
Currently, the following build configurations are provided:
- Compiler
- Arm Compiler 6 (AC6)
- GNU Compiler (GCC)
- IAR Compiler (IAR)
- Devices
- Cortex-M0
- Cortex-M0+
- Cortex-M3
- Cortex-M4
- w/o FPU
- with FPU
- Cortex-M7
- w/o FPU
- with SP FPU
- with DP FPU
- Cortex-M23
- w/o security extensions (TrustZone)
- in secure mode
- in non-secure mode
- Cortex-M33 (with FPU and DSP extensions)
- w/o security extensions (TrustZone)
- in secure mode
- in non-secure mode
- Cortex-M35P (with FPU and DSP extensions)
- w/o security extensions (TrustZone)
- in secure mode
- in non-secure mode
- Cortex-M55 (with FPU and DSP extensions)
- in secure mode
- in non-secure mode
- Cortex-M85 (with FPU and DSP extensions)
- in secure mode
- in non-secure mode
- Cortex-A5
- w/o NEON extensions
- Cortex-A7
- w/o NEON extensions
- Cortex-A9
- w/o NEON extensions
- Optimization Levels
- Low
- AC6:
-O1 - GCC:
-O1 - IAR:
-Ol
- AC6:
- Mid
- AC6:
-O2 - GCC:
-O2 - IAR:
-Om
- AC6:
- High
- AC6:
-O3 - GCC:
-O3 - IAR:
-Oh
- AC6:
- Size
- AC6:
-Os - GCC:
-Os - IAR:
-Ohz
- AC6:
- Tiny
- AC6:
-Oz - GCC:
-Ofast - IAR:
-Ohs
- AC6:
- Low
Prerequisites
The following tools are required to build and run the CoreValidation tests:
- CMSIS-Toolbox 1.3.0 or higher
- CMake
- Ninja build
- Arm Compiler 6
- GNU Compiler
- IAR Compiler
- Python 3.8 or higher
- Arm Virtual Hardware Models
The executables need to be present on the PATH.
Install the Python packages required by build.py:
CMSIS_5/CMSIS/CoreValidation/Project $ pip install -r requirements.txt
Build and run
To build and run the CoreValidation tests for one or more configurations use the following command line.
Select the <compiler>, <device>, and optimize level to build and run for.
CMSIS_5/CMSIS/CoreValidation/Project $ ./build.py -c <compiler> -d <device> -o <optimize> [build] [run]
For example, build and run the tests using GCC for Cortex-M3 with low optimization, execute:
CMSIS_5/CMSIS/CoreValidation/Project $ ./build.py -c GCC -d CM3 -o low build run
[GCC][Cortex-M3][low](build:csolution) csolution convert -s Validation.csolution.yml -c Validation.GCC_low+CM3
[GCC][Cortex-M3][low](build:csolution) csolution succeeded with exit code 0
[GCC][Cortex-M3][low](build:cbuild) cbuild Validation.GCC_low+CM3/Validation.GCC_low+CM3.cprj
[GCC][Cortex-M3][low](build:cbuild) cbuild succeeded with exit code 0
[GCC][Cortex-M3][low](run:model_exec) VHT_MPS2_Cortex-M3 -q --simlimit 100 -f ../Layer/Target/CM3/model_config.txt -a Validation.GCC_low+CM3/Validation.GCC_low+CM3_outdir/Validation.GCC_low+CM3.elf
[GCC][Cortex-M3][low](run:model_exec) VHT_MPS2_Cortex-M3 succeeded with exit code 0
Matrix Summary
==============
compiler device optimize build clean extract run
---------- --------- ---------- ------- ------- --------- -----
GCC Cortex-M3 low success (skip) (skip) 35/35
The full test report is written to Core_Validation-GCC-low-CM3-<timestamp>.junit file.