2024-09-16 11:14 PM
I am trying to implement MODBUS-TCP on a TouchGFX generated project. I have successfully enabled Ethernet by following this tutorial on this forum: How to create a project for STM32H7 with Ethernet and LwIP stack working and can ping my board.
In the tutorial mentioned above CMSIS_V1 is used, but for the MODBUS library which I want to use CMSIS_V2 is required ( Modbus-STM32-HAL-FreeRTOS ).
Now if I simply change CMSIS to V2, i get the error:
make: *** No rule to make target '.../Ethernet_Test_TGFX/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c', needed by 'Middlewares/FreeRTOS/cmsis_os.o'. Stop.
Is this caused by dependencies not being updated properly or how can I solve this? I already tried Refresh+Clean.
.ioc file is attached.
Thanks!
Solved! Go to Solution.
2024-09-17 02:33 AM
As I don't have your TouchGFX project I cannot test it but you can remove cmsis_os.c from the project tree.
cmsis_os2.c is already added..
2024-09-17 01:30 AM
Hello,
@FabianEbs wrote:
make: *** No rule to make target '.../Ethernet_Test_TGFX/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c', needed by 'Middlewares/FreeRTOS/cmsis_os.o'. Stop.
cmsis_os.c is for CMSIS_V1, you need to use cmsis_os2.c and port your CMSIS V1 to CMSIS V2
2024-09-17 02:16 AM
Thanks for the reply!
@SofLit wrote:cmsis_os.c is for CMSIS_V1, you need to use cmsis_os2.c and port your CMSIS V1 to CMSIS V2
The error was caused by setting CMSIS setting from V1 to V2 in CubeMX, so i need to change something else, but what and where?
2024-09-17 02:33 AM
As I don't have your TouchGFX project I cannot test it but you can remove cmsis_os.c from the project tree.
cmsis_os2.c is already added..
2024-09-17 04:29 AM
Yeah, that did the trick, thanks a lot!