2016-05-05 04:39 AM
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-stm32cube2016-05-05 06:08 AM
Hi,
BSP driver is not supported in the STM32CubeMx, it should be integrated manually in your project.You can refer to this Manual 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\BSPRegards2017-01-27 11:47 PM
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.