User Tools

Site Tools


de:doc:dev_setupfirmware

OOBD-Firmware Entwicklungsumgebung

Kubuntu für VirtualBox mit IDE Eclipse und Sourcery ARM Werkzeugkette

  • Der OOBD-Firmware Build Prozess basiert auf Eclipse.
  • Die Entwicklungsumgebung arbeitet in einer virtuellen Maschine basierend auf VirtualBox.
  • Das genutzte Gast Betriebssystem selbst ist die Linux Distribution Kubuntu.

Herunterladen der Software

Virtualbox Installation auf Windows Hosts

Starte die “Virtual - box” auf dem Windows Host: Start ⇒ Oracle VM VirtualBox ⇒ Oracle VM VirtualBox

  1. Erzeuge eine neue virtuelle Maschine:
    New oder Ctrl-N

    Drücke “Next”
  2. Memory size (here: 1024MB)

    Drücke “Next”
  3. Erzeuge ein virtuelles Laufwerk jetzt

    Drücke “Create”
  4. Laufwerkstyp (hier: VDI – VirtualBox Disc Image)

    Drücke “Next”
  5. Speichere das physikalisches Laufwerk (hier: Dynamically allocated)

    Drücke “Next”
  6. Wähle den Dateiablageort und die Größe (hier: 8GB Disc Image)

    Drücke “Create”
  7. Die neu erstellte vituelle Maschine ist bereit für den ersten Start

    Highlight “Kubuntu” und doppelter Mausklick um die neue virtuelle Machine “Kubuntu”zu starten!
  8. Lege die Kubuntu 13.04 CD in das CD-Laufwerk des Laptop's/PC's

    Drücke “Start”
  9. Kubuntu Start-Bildschirm nach dem Starten der Virtuelle Maschine von der CD

    Wähle die Sprache aus und drücke “Install Kubuntu”
  10. Starte die Installation
    Wähle “Install this third-party software” und “Download updates while installing”

    Drücke “continue”
  11. Wähle den Installationstyp (hier: use entire disk)

    Drücke “Install now”
  12. Bestätige die Zeitzone während des Installationsprozesses

    Drücke “Continue”
  13. Wähle das Tastaturlayout (hier: German)

    Drücke “Continue”
  14. Trage die Nutzerdaten ein

    Drücke “Continue”
  15. Nachdem die Installation fertiggestellt ist drücke “Restart Now” \um die virtuelle Maschine zu starten\
    Hinweis:
    Die CD wird nachdem Herunterfahren des Systems ausgeworfen und das System startet erneut!
  16. Nach dem Neustart und Einloggen wird der KDE Desktop angezeigt:

Installiere die Eclipse-CDT mit Muon Package Manager

  1. KDE ⇒ Applications ⇒ System ⇒ Muon Package Manager

    Drücke “Installation”
    Hinweis:
    “Mark Addition changes?” ⇒ Drücke “OK”
    Drücke “Apply Changes” als obersten Eintrag und gebe dein Passwort ein
    Hinweis:
    Eine funktionierende Internetverbindung ist notwendig anderenfalls wird die Installation scheitern.
  2. Installiere Subversion mit dem Muon Package Manager
    • KDE ⇒ Applications ⇒ System ⇒ Muon Package Manager
    • Tippe Subversion in das Suchfeld
    • Highlight Subversion und mache einen Rechtsklick auf Subversion ⇒ Markiere zur Installation ⇒ Apply changes

Installationsprozedur von Sourcery G++ Lite Edition für ARM EABI

  1. Starte den Webbrowser (z.B. Firefox von KDE ⇒ All Applications ⇒ Internet) und wähle Sourcery CodeBench Lite Edition für ARM EABI – ARM Crosscompiler
    Lade die letzte Sourcery G++ Lite Version und NICHT irgendeine “CodeBench” Version, z.B.:
    Release Date 2011-05-02 - Sourcery G++ Lite 2011.03-42
    https://sourcery.mentor.com/GNUToolchain/release1802
    Release Date 2010-11-10 - Sourcery G++ Lite 2010.09-51
    https://sourcery.mentor.com/GNUToolchain/release1592
    Hinweis:
    Nutze nicht eine neuere Version CodeBench weil sie nicht nach einfacher Installation direkt funktioniert, z.B.:
    Release Date 2013-05-07 - Sourcery CodeBench Lite 2013.05-23
    https://sourcery.mentor.com/GNUToolchain/release2449
    Release Date 2011-12-19 - Sourcery CodeBench Lite 2011.09-69
    https://sourcery.mentor.com/GNUToolchain/release2032
    Hint:
    Target OS
    EABI ⇒ IA32 GNU/Linux Installer
    … und NICHT…
    GNU/Linux
  2. Install Sourcery CodeBench Lite Edition for ARM EABI by start Terminal
    KDE ⇒ All applications ⇒ System ⇒ Terminal
    <hostname>:~$ cd Downloads/
    <hostname>:~/Downloads$ chmod 755 arm-2011.03-42-arm-none-eabi.bin
    <hostname>:~/Downloads$ sudo dpkg-reconfigure –plow dash
    Configuring dash ⇒ Select “No”
    <hostname>:~/Downloads$ sudo ./arm-2011.03-42-arm-none-eabi.bin

    Installation procedure:
    Select…
    “Next” ⇒
    “I accecpt the terms of the Licencse Agreement” ⇒ “Next” ⇒
    “Next” ⇒
    “Minimal” ⇒ “Next” ⇒
    “Choose Install Folder” ⇒ change prefix folder to “/opt/CodeSourcery/Sourcery_G++_Lite“ ⇒ “Next” ⇒
    “Modify PATH for current user” ⇒ “Next” ⇒
    “Choose Link Folder” ⇒ change prefix folder to “/opt/CodeSourcery/Sourcery_G++_Lite“ ⇒ “Next” ⇒
    “Install”
    Select “Next” ⇒ “Next”

    Installer will be closed automatically now.
  3. Set PATH in home directory ~/.profile
    sudo vi ~/.profile
    —add at the end of the file—
    # set PATH so it includes CodeSourcery bin if it exists
    if [ -d “/opt/CodeSourcery/Sourcery_G++/bin” ] ; then
    PATH=“/opt/CodeSourcery/Sourcery_G++/bin:$PATH”
    fi

Install GNU Arm Eclipse - Manged build extension for GNU ARM Toolchains

http://gnuarmeclipse.livius.net/blog/

  1. Start Eclipse
    KDE ⇒ All applications ⇒ Development ⇒ Eclipse
  2. Add source to Available Software
    Eclipse menu: Help ⇒ Install software
    Work with: http://gnuarmeclipse.sourceforge.net/updates
    Press “Add”

    Add Name and Press “OK”
    Press “Select All”
    Press “Next”
    Press “Next”
    Select “I accept the terms of the license agreement”
    Press “Finish”
    “Security Warning” ⇒ Press “OK”
    After installation is finished ⇒ “Software Updates” ⇒ Press “Yes” ⇒ Eclipse will be restarted

Installation “VBoxGuestAdditions.iso”

  1. Rechter Mausklick auf das CD Symbol Right mouse click on CD symbol on tray right bottom corner
  2. Mark entry “VBoxGuestAdditions.iso”
  3. Press “Strg-Alt-F1” to leave KDE and start Terminal
  4. cd /media/<username>/VBOXADDITIONS_4.2.12_84980$
  5. sudo ./VBoxLinuxAdditions.run

    Restart Virtual machine to use the Guest Additions

Mount Shared Folder to Host OS (here: Windows)

  1. sudo mount –t vboxsf V_DRIVE /mnt

Start and Configuration of Eclipse

  1. Start Eclipse from the KDE-Menu and use/confirm the default workspace directory in your home directory
  2. Import OOBD firmware project
    File ⇒ Import

    General ⇒ Existing Projects into Workspace ⇒ Next

    Select Directory where the firmware is located (Hint: SVN checkout) ⇒ Finish
    After import of project is finished ⇒ Right click on project “DXM1_Firmware” ⇒ Build Configurations ⇒ Set Active ⇒ Release_STM32


    Right click on project “DXM1_Firmware” ⇒ Clean Project (before first build process)
    Right click on project “DXM1_Firmware” ⇒ Build Project
    If firmware is finished successfully you’ll get a result like:

    The “OOBD_Firmware_CRC.bin” file is located here…
    ..\trunk\interface\Designs\CORTEX\STM32F103C8_Eclipse_GCC\D2\app\Release_STM32\

…after the build process is finished.


Off Topic: What Eclipse files to check in with a new project

A small note, copied from http://digitaldumptruck.jotabout.com/?p=767

What Eclipse files to check in with a new project By Michael Portuesi | Published: November 17, 2010

This info is available elsewhere on the net, but I am including it here because I have to look it up every time and I’m tired of it. Check in

  • .project
  • .classpath
  • .settings Check in these files if you wish to share with the rest of the team:
    • .settings/org.eclipse.jdt.ui.prefs – it contains the settings for the import ordering
    • .settings/org.eclipse.jdt.core.prefs – it contains the settings for the compiler version

Do not check in

  • .metadata It contains a bunch of state information for your Eclipse workspace, which is changing all the time.

When setting up the project on the new machine use File > Import … > General > Existing Project Into Workspace.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
de/doc/dev_setupfirmware.1409772369.txt.gz · Last modified: 2014/09/03 21:26 by wsauer