This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
manual:demos:gcc_arm_embedded [2016/04/30 13:33] voorburg |
manual:demos:gcc_arm_embedded [2019/09/24 22:12] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== Background ===== | ===== Background ===== | ||
- | For several years CodeSourcery (now Mentor Graphics) maintained and released the GCC for ARM compiler binaries, bundled with an easy to use installer, under the name //Codesourcery G++ Lite//. Unfortunately, their website now states that "Sourcery CodeBench Lite releases for ARM EABI, ARM GNU/Linux, ARM AARCH64-Linux, IA32/IA64 GNU/Linux and ELF are no longer available". | + | For several years Codesourcery (now Mentor Graphics) maintained and released the GCC for ARM compiler binaries, bundled with an easy to use installer, under the name Codesourcery G++ Lite. Unfortunately, their website now states that "Sourcery CodeBench Lite releases for ARM EABI, ARM GNU/Linux, ARM AARCH64-Linux, IA32/IA64 GNU/Linux and ELF are no longer available". |
- | Fortunately, the ARM organization itself is actively maintaining and enhancing the GCC compiler for the ARM architecture. At regular intervals they release pre-built binaries of the toolchain under the name [[https://launchpad.net/gcc-arm-embedded|//GCC ARM Embedded// ]]. | + | Fortunately, the ARM organization itself is actively maintaining and enhancing the GCC compiler for the ARM architecture. At regular intervals they release pre-built binaries of the toolchain under the name [[https://launchpad.net/gcc-arm-embedded|GCC ARM Embedded]]. |
- | Several OpenBLT demo programs that target microcontrollers with an ARM core, make use of the //Codesourcery G++ Lite// toolchain. You can still find a download link to a working version of the toolchain on the page that describes the demo specifics. However, is it recommended to switch to the //GCC ARM Embedded// toolchain. | + | Several OpenBLT demo programs that target microcontrollers with an ARM core, make use of the Codesourcery G++ Lite toolchain. You can still find a download link to a working version of the toolchain on the page that describes the demo specifics. However, is it recommended to switch to the GCC ARM Embedded toolchain. |
- | This page describes how to upgrade from the //Codesourcery G++ Lite// to the //GCC ARM Embedded// toolchain, to the point that you can build the OpenBLT demo programs without any further changes. | + | This page describes how to upgrade from the Codesourcery G++ Lite to the GCC ARM Embedded toolchain, to the point that you can build the OpenBLT demo programs without any further changes. |
===== Upgrade procedure ===== | ===== Upgrade procedure ===== | ||
- | TODO | + | ==== Step 1 - Uninstall Codesourcery G++ Lite ==== |
- | * Uninstall G++ Lite. | + | Open your Windows Explorer and browse to directory //C:\Users\{username}\MentorGraphics\Sourcery_CodeBench_Lite_for_ARM_EABI\uninstall\// and double-click the program //uninstall.exe//. |
- | * Download GCC ARM Embedded | + | |
- | * Install GCC ARM Embedded with path option checked! | + | ==== Step 2 - Download and install GCC ARM Embedded ==== |
- | * Download gnu win32 build binaries zip-archive | + | Visit the [[https://launchpad.net/gcc-arm-embedded|GCC ARM Embedded]] website and download the Windows installer. The filename is something like //gcc-arm-none-eabi-5_3-2016q1-20160330-win32.exe//, although the version number and release date in the filename might be different. |
- | * Copy zip-archive contents to the GCC ARM Embedded bin directory | + | |
+ | Starts the installation by double-clicking the file you just downloaded. You can use all the default settings of the installer, except on the last screen. Here you need to check the checkbox //Add path to environmental variable//, as can be seen in the following illustration: | ||
+ | |||
+ | {{:manual:demos:gcc_arm_install_with_path.png?}} | ||
+ | |||
+ | At the end of the installation, the readme-file is shown and a command prompt window is opened. Both can be closed. | ||
+ | |||
+ | ==== Step 3 - Download and install make and rm ==== | ||
+ | The build environment of the OpenBLT demo programs, which are configured for Codesourcery G++ Lite, rely on the utilities GNU make and rm that automatically get installed with Codesourcery G++ Lite. Now that these utilities are no longer on your computer, they should be downloaded and installed again. | ||
+ | |||
+ | Download the utilities by following thes link {{:manual:demos:gnu_build_tools_win32.zip|}}. Once download, unpack the zip-archive and copy all unpacked files to the //.\bin// directory of where GCC ARM Embedded was installed. It will be a directory similar to //C:\Program Files\GNU Tools ARM Embedded\5.3 2016q1\bin//. | ||
+ | |||
+ | This completes the upgrade procedure. Refer back to the page that describes the specifics of the [[manual:demos|OpenBLT demos]] and follow the instructions for building the bootloader and demo user program. |