CARME-M4 BSP  V1.5
CARME-M4 BSP Library

Zusammenfassung

Damit effizient programmiert werden kann auf dem CARME-M4, wird ein Board support package mitgeliefert. Mit diesem koennen die Schnittstellen direkt in C angesprochen werden.

Ordner Struktur

Es muss fuer das erfolgreiche Kompilieren folgende Ordner Struktur gewaehrleistet sein:

BSP/
 |- Makefile
 |- doc/
 |- CMSIS/
 |- StdPeriph_Driver/
 |- CARME/
 |- FatFs/
 |- Examples/

doc

In diesem Ordner ist die Dokumentation des gesammten BSP enthalten. Diese liegt in Unterordnern als html Seite, man page und LaTeX code vor.

CMSIS

Das CMSIS beinhaltet Headerfiles fuer den Cortex-M4 Kern. Dieser Ordner wird im StdPeriph_Driver mitgeliefert. In diesem Ordner wird zum Kompilieren nur der Unterordner Include/ und Device/ST/STM32F4xx/Include benoetigt.

StdPeriph_Driver

In diesem Repository wird die Peripherie des STM32F4xx angesprochen.

Die originalen Dateien koennen von ST auf http://www.st.com/web/catalog/tools/FM147/CL1794/SC961/SS1743/PF257901# herunter geladen werden.

CARME

Hier ist die CARME-M4 Erweiterung. Dies beinhaltet Funktionen, die spezifisch auf das CARME-M4 Entwicklungs-Kit angepasst sind, wie z.B. das Display, CARME-IO1 und CARME-IO2.

FatFs

Im FatFs wird das FAT Filesystem fuer die Anbindung der SD Karte gemacht. Dies ist STM32F4xx spezifisch, jedoch nicht direkt ans CARME-M4 Kit gebunden.

Das originale FatFs ist auf http://elm-chan.org/fsw/ff/00index_e.html verfuegbar. Dort ist jedoch keine STM32F4xx anbindung vorhanden. Diese wurde von ST bezogen.

Examples

Der Examples Ordner beinhaltet kleine Examples fuer das CARME-M4 BSP. Diese Examples sollen den Einstieg in das CARME-M4 BSP erleichtern.

Konfiguration

Hier werden die wichtigsten Konfigurationen zusammengefasst.

Parameter Value
System Clock source PLL (HSE)
SYSCLK(Hz) 168000000
HCLK(Hz) 168000000
AHB Prescaler 1
APB1 Prescaler 4
APB2 Prescaler 2
HSE Frequency(Hz) 25000000
PLL_M 25
PLL_N 336
PLL_P 2
PLL_Q 7
PLLI2S_N NA
PLLI2S_R NA
I2S input clock NA
VDD(V) 3.3
Main regulator output voltage Scale1 mode
Flash Latency(WS) 5
Prefetch Buffer ON
Instruction cache ON
Data cache ON
Require 48MHz for USB OTG FS, SDIO and RNG clock Disabled
ClockTree.png
Clock Tree

Lizenzierung

This software can be used by students and other personal of the Bern University of Applied Sciences under the terms of the MIT license. For other persons this software is under the terms of the GNU General Public License version 2.

Copyright (c) 2013, Bern University of Applied Sciences. All rights reserved.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

GNU GENERAL PUBLIC LICENSE

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.