No definition for VPortStartFirstTask and vPortEnableVFP

I am trying to port FreeRTOS for Stm32F407 MCU in IAR IDE. I added most of the required files but I am getting a build error for vPortEnableVFP and vPortStartFirstTask function which are defined in portasm.s which I have included in my project.

Error[Li005]: no definition for “vPortEnableVFP” [referenced from C:\Projects\IAR\Eth_FreeRTOS_F4\EWARM\Eth_FreeRTOS_F4\Obj\portable_15954926109208205999.dir\port.o]

Error[Li005]: no definition for “vPortStartFirstTask” [referenced from C:\Projects\IAR\Eth_FreeRTOS_F4\EWARM\Eth_FreeRTOS_F4\Obj\portable_15954926109208205999.dir\port.o]

Are there any additional steps required to overcome this error ?

Does this here post answer your question?

If adding extern, as suggested in the post mentioned by @RAc, does not work, can you share your code that I can try to build and repro this issue?

Adding extern didn’t work for me.

Here

You are not building portasm.s in your project. Adding it to your project fixes the problem. Please apply the following patch to add portasm.s to your project: build_portasm.h (1.8 KB). Rename build_portasm.h to build_portasm.patch and apply it.