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:
- Create a new Project for the Nucleo-H755Zi-Q
- In the Configuration go to Software Packs->Select Components
- Go to STMicroeletronicsX-CUBE-MEMS1 and select Board Extension IKS02A1. Close this window
- Configure a I2C under Connectivity
- Go to Middleware and Software Packs -> X-CUBE-MEMS1 -> Select Board Extension IKS02A1
