Unable to compile the generated project x-cube-subg2 for Nucleo-f429ZI
- October 16, 2024
- 5 replies
- 3715 views
I am not able to use the UDP Server application(x-cube-subg2) for the extention board S2915A1. When I try to compile the generated code, I get the following compilation error. I had no trouble with running the P2P application from the same package, but this one doesn't seem to compile out-of-the-box for some reason.
STM32Cube/Repository//Packs/STMicroelectronics/X-CUBE-SUBG2/5.0.0/Drivers/BSP/Components/S2LP/S2LP_Library/inc/S2LP_Csma.h:102:3: error: unknown type name 'SFunctionalState'
STM32Cube/Repository//Packs/STMicroelectronics/X-CUBE-SUBG2/5.0.0/Drivers/BSP/Components/S2LP/S2LP_Library/inc/S2LP_Csma.h:154:15: error: unknown type name 'SFunctionalState'; did you mean 'FunctionalState'?
(There are 73 errors similar to these ones)
To give a little bit of context, the type "SFunctionalState" is declared in a file called S2LP_Types.c and the header file of the file is properly included inside the complaining file. From my perspective, the issue seems to be related to a circular dependency issue, causing the defined variables not to be included properly. Can somebody confirm that whether they are able to build the application mentioned in my case for the board Nucleo-F429ZI?
Upon working on this example I found the attached documentation particularly useful, and have applied the instructions as they are. I was able to work with the P2P application, but no luck with the UDP-Server example.
Thanks.
