These tests run on the STM32F4DISCOVERY board (or the QEMU emulator).
These tests run on the synthetic POSIX platform, on top of macOS.
These projects have several dependencies to code available from xPacks. To satisfy these dependencies it is necessary to run the generate.sh
shell scripts.
All scripts were created on macOS, and the ones suffixed with .command
are specific to macOS.
As usual for development machines, the Apple Xcode Command Line Tools must be installed.
The scripts were also tested on several GNU/Linux distributions, and should be fine.
On Ubuntu be sure you have git
and curl
available:
suso apt-get git curl
For other distributions, similar commands must be issued.
The scripts were also tested on Windows MSYS2, Git Shell, and on the new Windows Subsystem for Linux.
The only difference is the lack of symbolic links, so --symlink
should not be used and instead --link
is fully functional, but the generate.sh
script should be executed after updating the git repositories in /.xpacks
.
For those who insist on native Windows, separate PowerShell scripts would be required, but considering Microsoft's move towards Linux, this would probably not be worth the effort. Anyway, if you manage to create them, please consider improving your karma and contribute them back to the community.
To use any of these projects, you need to:
- clone this project locally
$ git clone https://github.com/micro-os-plus/eclipse-test-projects.git eclipse-test-projects.git
- in each project, generate the code required to satisfy the dependencies; on macOS, double click the
scripts/generate.mac.command
in Finder; on other platforms, go to the project folder and run thegenerate.sh
script
$ bash scripts/generate.sh
- in Eclipse, import the projects into your workspace, without copying
- build all configurations
export PATH=/usr/local/gcc-arm-none-eabi-5_4-2016q3/bin:$PATH
export PATH=/Users/ilg/Work/qemu/build/osx/qemu/gnuarmeclipse-softmmu:$PATH
export PATH=/Applications/SEGGER/JLink_V60g:$PATH
export PATH=/opt/homebrew/bin:$PATH
All:
-Wall -Wextra
-Wunused -Wuninitialized -Wmissing-declarations -Wconversion -Wpointer-arith -Wshadow -Wlogical-op -Wfloat-equal
C:
-Wmissing-prototypes -Wstrict-prototypes -Wbad-function-cast
C++:
-Wabi -Wctor-dtor-privacy -Wnoexcept -Wnon-virtual-dtor -Wstrict-null-sentinel -Wsign-promo