cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMx - STM32Cube - MEMS1 confusion

Katzenberger.Michael
Associate III
Posted on May 05, 2016 at 13:39

Hi !

I'm totally lost how to use these tool to setup a own project because I don't figure out how these tool are interacting.

For example I like to use the NUCLEO-F411RE board with X-NUCLEO-IKS01A1 expansion board.

I've installed STM32CubeMx including STM32CubeF4 Firmware Package V1.11.0 to support the NUCLEO-F411RE board.

To use X-NUCLEO-IKS01A1 I've installed STM32CubeExpansion_MEMS1_V2.1.0 but obviously this SW package can't be integrated in STM32CubeMx.

The question is now how to ''merge'' the STM32CubeMx generated files with the MEMS1 driver / BSP files (in an easy and convenience manner).

Thanks !

Michael.

#nucleo-mems1-stm32cube
2 REPLIES 2
slimen
Senior
Posted on May 05, 2016 at 15:08

Hi,

BSP driver is not supported in the STM32CubeMx, it should be integrated manually in your project.

You can refer to this Manual

http://www2.st.com/content/ccc/resource/technical/document/user_manual/c8/04/7f/d1/e9/24/47/09/DM00157069.pdf/files/DM00157069.pdf/jcr:content/translations/en.DM00157069.pdf

which describes how to get started with the X-CUBE-MEMS1 software expansion for STM32Cube.

You can have a look to the BSP example under STM32CubeF4 package:

STM32Cube_FW_F4_V1.11.0\Projects\STM32F411E-Discovery\Examples\BSP

Regards

Posted on January 28, 2017 at 08:47

In my case (also wanted to use F411 with the MEMs sensor board) I simply:

-opened the example for F401 (the one with Terminal Logging) in Keil

-replaced the F401 device with F411 in Options->Device tab

-In Options->C/C++ tab enter the 'USE_HAL_DRIVER,STM32F411xE,USE_STM32F4XX_NUCLEO,VECT_TAB_SRAM, RAM_MODE, REMAP' - notice the only change is the F411-related item

I wonder if there is other way of doing it - perfectly how to add BSP to CubeMX generated project, not as in my case stupid changes in original project.