cancel
Showing results for 
Search instead for 
Did you mean: 

How do I install x-cube-smcard package.

RK.15
Associate II

Hello ST,

I am trying to install x-cube-smcard package via cube mx.

I am unable to do so. I get an error everytime.

Please let me know how to install the same.

https://www.st.com/en/embedded-software/x-cube-smcard.html

1 ACCEPTED SOLUTION

Accepted Solutions
Herve PIERROT
ST Employee

Hi @Community member​ ,

unfortunately, this X-Cube is not compatible with STM32CubeMX. You just have to unzip this package to enjoy the middleware and other examples it contains.

To get the list of X-Cube Packages compatible with STM32CubeMX, just look at this product selector

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

and check the column "Enhanced for STM32 Toolset"

or just use STM32CubeMX, in the menu Help->Manage Embedded Packages to install them directly from the tool.

View solution in original post

3 REPLIES 3
Herve PIERROT
ST Employee

Hi @Community member​ ,

unfortunately, this X-Cube is not compatible with STM32CubeMX. You just have to unzip this package to enjoy the middleware and other examples it contains.

To get the list of X-Cube Packages compatible with STM32CubeMX, just look at this product selector

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

and check the column "Enhanced for STM32 Toolset"

or just use STM32CubeMX, in the menu Help->Manage Embedded Packages to install them directly from the tool.

RK.15
Associate II

Hi Herve PIERROT,

I want to know how would I be able to access the configurations made on examples provided in the package.

As we don't have cube mx how do we know configurations made.

Herve PIERROT
ST Employee

for the configurations, no magic, you need to get it from the code...

you can refer to the files "platform_config.h" and "smartcard.h" in the folder "/inc", as well as the file "smartcard.c" in the folder "/src"

For board specific configuration, you can also refer to the files "###_hal_msp.c" present in the folder

"/<BoardName>/src/", and search for the functions "HAL_MspInit", or "HAL_SMARTCARD_MspInit"