Skip to main content
Visitor II
July 6, 2021
Solved

X-CUBE-NFC6 not a valid X-CUBE-Expansion and missing files

  • July 6, 2021
  • 2 replies
  • 1944 views

I downloaded the X-CUBE-NFC6 expansion (en.X-CUBE-NFC6.zip) to include it as an X-CUBE-Expansion within STM32CubeIDE. This is not possible, as STM32CubeIDE (1.6.1) reports that it is apparently not an actual X-CUBE-Expansion package. Also manually extracting and importing either one of the two example projects does not work up to compilation as there appear to be missing files, for example utils.h.

How can I solve this? At the current state my ST25R3916 is just dead weight on my PCB including wasted space for the antenna.

    This topic has been closed for replies.
    Best answer by Markus GIRDLAND

    Hello there!

    Unfortunately, not all packages on the ST website is fully integrated with STM32CubeIDEs "Manage embedded software packages" feature.

    With some packages you might need to cherry pick what resources you need and manually add the rest. However, I tried importing two projects and both worked fine for me. I used the option File -> Import... -> General -> Import ac6 System Workbench for STM32 Project and pointed to the SW4STM32/<target> folder. It converted the project successfully and I was able to build with no errors.

    2 replies

    Technical Moderator
    July 6, 2021

    Hi Marcel,

    X-CUBE-NFC6 is a firmware package that contains ready to compile demos for various MCU such as STM32L76RG. The project files are delivered as part of the package and the demos can be compiled without errors. In its current version, it is not designed to be used directly in STM32CubeMX but as a standalone package.

    When using your own project, make sure to

    • define the various GPIO and interfaces (see attached ioc file as example)
    • have the proper Includes (e.g. STM32CubeExpansion_NFC6_V1.1.0\Drivers\BSP\Components\ST25R3916 for utils.h). See the demos project files for the list of Includes
    • have the proper defines. See the defines in the project files

    Rgds

    BT

    wmmcmjAuthor
    Visitor II
    July 7, 2021

    Interesting. I was under the impression that NFC6 is supposed to be used as an expansion package in STM32Cube as it claims on the product page of Cube Expansion Packages, in which NFC6 is listed:

    > High performance HF reader/NFC initiator IC software expansion for STM32Cube

    (https://www.st.com/en/embedded-software/stm32cube-expansion-packages.html)

    Also NFC4 is already in the list of expansion packages within STM32Cube. I always thought the branding X-CUBE marks expansion packages and not expansion and stand-alone packages. Really confusing. How can I differentiate these packages in the future, since they are all listed on the product page of Cube Expansion Packages?

    Technical Moderator
    July 7, 2021

    Hi Marcel,

    fully integrated packages are listed in STM32CubeMX Embedded Software Packages Manager.

    Currently, packages like X-CUBE-NFC3, X-CUBE-NFC5 and X-CUBE-NFC6 are expansion packages that are not integrated in the Embedded Software Packages Manager. Anyway, ready to build demos are provided within these packages.

    Rgds

    BT

    ST Employee
    July 6, 2021

    Hello there!

    Unfortunately, not all packages on the ST website is fully integrated with STM32CubeIDEs "Manage embedded software packages" feature.

    With some packages you might need to cherry pick what resources you need and manually add the rest. However, I tried importing two projects and both worked fine for me. I used the option File -> Import... -> General -> Import ac6 System Workbench for STM32 Project and pointed to the SW4STM32/<target> folder. It converted the project successfully and I was able to build with no errors.