Example Workspace für die Vorlesung Systemnahe Programmierung 2 an der DHWB Ravensburg.
- Cortex M4 Startseite
- Arm Application Binary Interface
- GNU Assembler Documentation
- GNU Linker Documentation
- CMake
- Arm GCC Cross-Compiler
- Wind River Simics
Installation von CMake über Download des Installers (https://cmake.org/download/)
oder Paketmanager winget install CMake.CMake
.
Installation der ARM GCC Toolchain Website
Nach z.B. C:\Toolchains
WICHTIG: zu PATH hinzufügen (lassen)
Über Paketmanager Installieren:
Ubuntu/ Debian: sudo apt install gcc-arm-none-eabi cmake
Arch:
yay -S gcc-arm-none-eabi-bin
sudo pacman -S cmake
macOS: brew install gcc-arm-embedded
Auschecken des Quellcodes:
git clone https://github.com/infohoschie/Arm-Cortex-M4-Base.git
Erstellen des Build:
- Mittels CMake Presets:
cmake --preset arm-cortex-m4
- Klassisch:
cmake -B build -S . -DCMAKE_BUILD_TYPE=Debug -DCMAKE_TOOLCHAIN_FILE=toolchain.cmake
Bauen:
- Mittels CMake Presets:
cmake --build --preset arm-cortex-m4
- Klassisch:
cmake --build build
Install Wind River Simics (Currently only for Windows and Linux available)
Note
For Linux installation assure, that I386 Support is available, e.g. for
Ubuntu/ Debian: sudo dpkg --add-architecture i386
Propagate the License Server via environment variable:
[email protected]
Start Simics, e.g. via command-line:
<SIMICS_INSTALL>/bin/simics6_22_12/simics-6/simics-6.0.154/bin/simics-eclipse
Create Simics Workspace
Create Simics Project: File -> New -> Simics Project
Via Tab Simics Control create new Simics Session. Select Target System: arm-cortex-m4-ref - cortex-m4-ref-helloworld Modify Parameters: Runtime -> demo_image set to built binary Select Start as debug session
Das Projekt kann direkt in der IDE geöffnet (ausgechecked) werden. Die CMake Presets werden direkt als build-target angeboten
TODO:
- Plugins
- Configuration