2023-04-10 10:54 AM
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
Solved! Go to Solution.
2023-04-11 12:01 AM
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.
2023-04-11 12:01 AM
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.
2023-04-11 12:17 AM
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.
2023-04-11 12:43 AM
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"