-
Notifications
You must be signed in to change notification settings - Fork 37
Sample Embedded Project
Rajiv Verma edited this page May 13, 2014
·
2 revisions
One example project in OSP is the STM32 based eMotion ST MEMS adapter motherboard (STEVAL-MKI109V2) with accelerometer, magnetometer, and gyroscope sensor board. Since the motherboard and sensor board are available from most electronics component distributors such as Arrow, Avnet, Digikey, Mouser, etc., it is chosen as an example any developer can access.
The following links provide some basic information. Details can be found on [ST Microelectronics' website] (http://www.st.com/web/en/catalog/tools/PF252688).

Motherboard Data Brief and Schematics

Sensor Board Data Brief and Schematics
To build the firmware for the STM32 board, the following is needed:
- the Keil MDK V5.0 or newer toolchain, downloadable from Keil,
- a compatible JTAG debug hardware such as STLink or ULINK2 (refer to MDK 5 documentation for a list of target compatible JTAG debuggers).
Then follow these steps:
- Open the Keil Microvision project file by double clicking on
embedded/projects/osp-steval-mki109v2/keil-mdk-build/osp-steval.uvproj. - Open the Project --> Options for target dialog and under the Debug tab select and configure the JTAG debugger connected to the target.
- Note that you may need to create a special adapter cable for the JTAG connector on MKI109V2 board as it is not one of the standard ARM debug connectors (refer to schematics for the board).
- To connect to the USART on JP8, you will also need a TTL 3.3V to RS232/USB-to-Serial adapter. (E.g. FTDI's TTL-232R-3V3-WE USB to Serial cable)
- The STEVAL board need not be connected to Android host for testing the firmware.
- Build & download the firmware.
- On serial terminal, you should see start-up messages showing version and system clock information. Note that the baud rate is set at 921600 and can be changed in firmware (look for the
DBG_UART_BAUDdefinition in thehw_setup_steval_mki109v2.hfile). - On the serial terminal, type "log=40" and you will see ASCII formatted sensor data messages (refer to ASCII format definition).