This example has been tested with MinGW and Cygwin.
The example is a minimal BLE peripheral that turns on advertising at boot. It uses a soft timer to blink the development board LEDs in an alternating pattern. You can use this as a template for your own experiments.
The project is split into three directories:
src - source files. Whole application is in main.c.
bgbuild - the GATT database is defined here. Edit gatt.xml to customize the GATT for your own project.
gcc - for building with GCC. You can find the Makefile here.
Building the example with MinGW
To build the example with MinGW:
Extract the attached GCC.zip to C:\SiliconLabs\SimplicityStudio\v4\developer\stacks\ble\v184.108.40.206\app\bluetooth_2.0
open MinGW terminal
cd to C:\SiliconLabs\SimplicityStudio\v4\developer\stacks\ble\v220.127.116.11\app\bluetooth_2.0\GCC\Example\gcc
4) run 'mingw32-make' to build project
5) run 'mingw32-make load' to build and load binary to target
Below is a screenshot showing successful build and flashing from MinGW terminal.
To build with Cygwin, run "make" instead of "mingw32-make". NOTE: when building with Cygwin you need to run make twice the first time you build the project.