Skip to main content
Associate
November 26, 2024
Solved

X-CUBE-MEMS1 Error: Board Part Number not defined

I have a Nucleo-H755Zi-Q and a IKS02A1. I am using the X-CUBE-MEMS1 Package. In the configurator, when I select "Board Extension IKS02A1"  I get the following error:

#error "Board Pin number not defined!! Add USE_NUCLEO_144 define within stm32h7xx_nucleo_conf.h file" 
61 | #error "Board Pin number not defined!! Add USE_NUCLEO_144 define within stm32h7xx_nucleo_conf.h file"

#error "Board Part number not defined!! Add one of the following define within stm32h7xx_nucleo_conf.h file: USE_NUCLEO_H745ZI_Q, USE_NUCLEO_H743ZI, USE_NUCLEO_H743ZI2, USE_NUCLEO_H7A3ZI_Q, USE_NUCLEO_H723ZG"

66 | #error "Board Part number not defined!! Add one of the following define within stm32h7xx_nucleo_conf.h file:\

(Without selecting "Board Extension IKS02A1" I can compile and run the code on the Nucleo-H755ZI-Q).

When I add #define USE_NUCLEO_H745ZI_Q to stm32h7xx_nucleo_conf.h I get the following error:

fatal error: stm32h7xx_nucleo.h: No such file or directory 
31 | #include "stm32h7xx_nucleo.h"
 

What do I need to do to use IKS02A1?

Thank you for any help :)

 

Reproduction:

  1. Create a new Project for the Nucleo-H755Zi-Q
  2. In the Configuration go to Software Packs->Select Components
  3. Go to STMicroeletronicsX-CUBE-MEMS1 and select Board Extension IKS02A1. Close this window
  4. Configure a I2C under Connectivity
  5. Go to Middleware and Software Packs -> X-CUBE-MEMS1 -> Select Board Extension IKS02A1
This topic has been closed for replies.
Imen.DBest answer
ST Technical Moderator
November 26, 2024

Hello @justAUser and welcome to the Community,

Try follow this article: How to integrate the X-CUBE-MEMS1 package with you... - STMicroelectronics Community

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks

3 replies

Andrew Neil
Super User
November 26, 2024

Does X-CUBE-MEMS1 claim to directly support that board?

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
Imen.DBest answer
ST Technical Moderator
November 26, 2024

Hello @justAUser and welcome to the Community,

Try follow this article: How to integrate the X-CUBE-MEMS1 package with you... - STMicroelectronics Community

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
justAUserAuthor
Associate
November 26, 2024

Thank you. This solved my problem :)