Skip to main content
Associate
April 1, 2025
Question

How to add X-CUBE library to project?

  • April 1, 2025
  • 1 reply
  • 329 views

Hi,

I am trying to add the X-CUBE-NFC7 library to my project. I am getting the following error:

 

../Middlewares/ST/lib_nfc7/lib_NDEF/Core/inc/lib_wrapper.h:26:10: fatal error: common.h: No such file or directory
 26 | #include "common.h"

 

 

The steps that I followed were to:

1) .ioc file -> Software Packs -> Select Components -> selected lib_nfc7 core with basic interface

icecats_0-1743511715982.png

 

2) Select X-CUBE-NFC7 from the list in Middlewares and Software Packs and check the Wireless lib nfc7 option.

icecats_1-1743511775664.png

3) Save to generate code and then compile. This is when the error appears.

 

I loaded the example NDEF_URI project from the library folder and it compiled correctly.

 

1 reply

icecatsAuthor
Associate
April 3, 2025

Any thoughts on this? I've been beating my brains out trying to get this to work.