cancel
Showing results for 
Search instead for 
Did you mean: 

Header files missin while compiling st25r3916 discovery source files

MPeli.1
Associate III

Hello,

i downloaded st25r3916 discovery source files from here https://www.st.com/content/st_com/en/products/embedded-software/st25-nfc-rfid-software/stsw-st25r011.html .

The sources actually don't compile because a lot of includes are missing, i opened project file located in "\STSW-ST25R011\ST25R3916_DISCO_v1.1.0\Projects\ST25-Discovery\Demonstrations\ST25R3916Demo\TrueSTUDIO\ST25R3916-DISCO\.project" with STM32CubeIDE.

Is there a guide to import such files? If i import just the includes needed (and it involves a whole lot of work because they are so many), a lot of files with the same name but different content are imported, leading to errors.

Thank you very much,

Regards

Here's the error log

12:42:33 **** Build of configuration Debug for project ST25R3916-DISCO Firmware ****
make all 
arm-none-eabi-gcc "C:/ST25R3916_DISCO_v1.1.0/Middlewares/ST/p2p/lib_llcp.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DUSE_HAL_DRIVER '-DUSE_MB1414_B=1' '-DMCU_FW_VERSION_EXTRA=B' '-DRFAL_ANALOG_CONFIG_CUSTOM=1' -DSTM32L476xx -DUSE_LCD -DUSE_ST25DV '-DMENU_DEMO_CENTER_ICONS=1' '-DUSE_LOGGER=2' '-DST25DX=1' '-D__weak=__attribute__((weak))' '-D__packed=__attribute__((__packed__))' -c -I"/Projects/ST25-Discovery/Demonstrations/ST25R3916Demo/inc" -I"/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"/Drivers/CMSIS/Device/ST/STM32L4xx/Include" -I"/Drivers/CMSIS/Include" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Drivers/STM32L4xx_HAL_Driver/Inc" -I"/Drivers/BSP/Components/Common" -I"/Drivers/BSP/Components/stmpe811" -I"/Drivers/BSP/Components/ad5112" -I"/Drivers/BSP/Components/ili9341_cube" -I"/Drivers/BSP/Components/ST25DV" -I"/Drivers/BSP/ST25-Discovery" -I"/Middlewares/ST/STM32_BlueNRG/SimpleBlueNRG_HCI/includes" -I"/Middlewares/ST/STM32_BlueNRG/Interface" -I"/Middlewares/ST/STM32_SPWF01SA/Utils" -I"/Middlewares/ST/STM32_SPWF01SA/Inc" -I"/Middlewares/Third_Party/LibJPEG/include" -I"/Middlewares/ST/menu_demo" -I"/Middlewares/ST/lib_nfc/lib_NDEF/inc" -I"/Middlewares/ST/lib_nfc/common/inc" -I"/Utilities/Fonts" -I"/Projects/ST25-Discovery/Demonstrations/ST25R3916Demo/Picture" -I"/Middlewares/ST/RFAL/include" -I"/Middlewares/ST/RFAL/source/st25r3916" -I"/Middlewares/ST/Reader_common/firmware/STM/utils/Inc" -I"/Middlewares/ST/RFAL/source" -I"/Middlewares/ST/Reader_common/firmware/STM/STM32/Inc" -I"/Middlewares/ST/BlueNRG_Host_HID_Profile_1.1.0BETA/Projects/Bluetooth_LE/Profile_Framework/includes" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Inc" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Drivers/BSP/DISCO-STM32L4x6" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Middlewares/ST/STM32_USB_Device_Library/Core/Inc" -I"/Middlewares/ST/fw_3916/DISCO-STM32L4x6/Middlewares/ST/STM32_USB_Device_Library/Class/CustomHID/Inc" -I"/Middlewares/ST/STM32_Cryptographic/Inc" -I"/Middlewares/ST/p2p" -Os -ffunction-sections -fdata-sections -Wall -fstack-usage -MMD -MP -MF"p2p/lib_llcp.d" -MT"p2p/lib_llcp.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=softfp -mthumb -o "p2p/lib_llcp.o"
C:/ST25R3916_DISCO_v1.1.0/Middlewares/ST/p2p/lib_llcp.c:316:10: fatal error: st_errno.h: No such file or directory
 #include "st_errno.h"
          ^~~~~~~~~~~~
compilation terminated.
make: *** [p2p/subdir.mk:21: p2p/lib_llcp.o] Error 1
"make all" terminated with exit code 2. Build might be incomplete.
 
12:42:36 Build Failed. 2 errors, 0 warnings. (took 2s.855ms)

1 ACCEPTED SOLUTION

Accepted Solutions
Ulysses HERNIOSUS
ST Employee

Hi,

I was just now discovering that you are using STM32CubeIDE to open the TrueStudio project. I was overlooking that so far. I tried the same and for me it says "Cannot run program "make": Launching failed".

According to https://www.st.com/resource/en/user_manual/dm00613834-migration-guide-from-truestudio-to-stm32cubeide-stmicroelectronics.pdf it should be easy but maybe not always.

Looking at the output it seems the Include paths are garbled - missing a relative or absolute path prefix. You could try to fix this but I am not sure how many more issues you will run into.

If you want to work with exactly this project, then I think it is better if you download and use Atollic Truestudio - it should open the project without any problems.

Regards, Ulysses

View solution in original post

2 REPLIES 2
Ulysses HERNIOSUS
ST Employee

Hi,

I was just now discovering that you are using STM32CubeIDE to open the TrueStudio project. I was overlooking that so far. I tried the same and for me it says "Cannot run program "make": Launching failed".

According to https://www.st.com/resource/en/user_manual/dm00613834-migration-guide-from-truestudio-to-stm32cubeide-stmicroelectronics.pdf it should be easy but maybe not always.

Looking at the output it seems the Include paths are garbled - missing a relative or absolute path prefix. You could try to fix this but I am not sure how many more issues you will run into.

If you want to work with exactly this project, then I think it is better if you download and use Atollic Truestudio - it should open the project without any problems.

Regards, Ulysses

HGRAN.11
Associate
  • Hi. How have you solve the issue with path missing for stsw-st25R011.
  • I m facing the same ​trouble.
  • Best regards
  • Like
  • Reply

Write a comment...