Skip to main content
FZheng
Associate
February 23, 2020
Question

STM32CubeMX hasn't create the app-x-cube-mems.h/.c file in IAR with .X-CUBE-MEMS1

Hi,

​

I operate the software refer a learn video. Use the .X-CUBE-MEMS1.

But I find the STM32CubeMX hasn't create the app-x-cube-mems.h/.c file .

​

Could anyone help ?

Attachment is the detail picture for this question

Version as below:

STM32CubeMX version: 5.6.0

IAR verision: 8.30.1

X-CUBE-MEMS1 version: 7.0.0

​

This topic has been closed for replies.

4 replies

FZheng
FZhengAuthor
Associate
February 23, 2020

I try use STM32CubeMX version: 5.3.0 with X-CUBE-MEMS1 version: 6.4.0, the x-cube-mems1.h\.c is succesful to create.

So, it is a bug for STM32CubeMX version: 5.6.0? ​ @Eleon BORLINI​ 

Khouloud ZEMMELI
ST Employee
February 24, 2020

​Hello @FZheng​ 

This will be internally checked.

Best Regards,

Khouloud

Khouloud ZEMMELI
ST Employee
February 24, 2020

​ @FZheng​  You need to select/choose a Device Application to obtain  app-x-cube-mems.h/.c .

Best Regards ,

Khouloud

Luca Celetto
ST Employee
March 17, 2020

@FZheng​ There are 2 possibilities to use the Additional Pack

  1. you choose the Board Component and you are free to develop the application on top of the APIs. In this case the app_x-cube-mems1.[ch] files are not generated
  2. you choose an Application. In this case an applicative code is generated in the app_x-cube-mems1.[ch] files and it is referenced in the main.c. However, in this way you have less freedom to regenerate the code in STM32CubeMX a second time. Either you put your code between /* USER BEGIN */ ... /* USER END */ sections, or it will be overridden when you press GENERATE CODE button a second time

Please ensure that all dependencies are satisfied before you generate the code. This means that a green checbox appears in all items in picture 1 and picture 2 of your attachments.

Best regards,

Luca