Build errors when calling FFS Flash driver install function - MQX 4.2

My customer is developing a product in which he writes and reads data into / from a NAND Flash, like the one we see in TWR-K70. The project has been tested and validated on this kit. The MCU uses is K70, the IDE is CodeWarrior v. 10.6.4 and MQX 4.2.

We got a lot of build errors related to mutex functions (see screenshot of them bellow) in several files from FFS library. After some analysis, we found that the root of those errors was a call to "_io_nandflash_wl_install" function in "Main_task". When we comment this function call, all those errors disappear.

But we really can't understand the reason for that, because FFS library is included in the project as well as its path in Properties. We also tried to include "nandflash_wl_ffs.h" file where this function is declared, but it doesn't produce any result.

Taking the opportunity, we need to know how to enable DHCP for a http server. Could anybody help us please?

Have attached his project zipped and attached with BSP "user_config.h" file.

I checked your project settings, there is a linker order issue in your project settings, you can move down the " _arm_start.o" and " _arm_end.o" to the end of this list, as the below picture shows. I have tried it, it works

When you comment the “_io_nandflash_wl_install” function, all the errors disappear, but can this compiled application run well? If not, I think the ffs library is not linked correctly. You need to double check it’s path, and make sure it compile successfully before you compile the application.

Regarding the DHCP server question, there is a demo, please see the DHCPSRV_init() function in mqx_rtcs_user_guide.pdf for more details

I checked your project settings, there is a linker order issue in your project settings, you can move down the " _arm_start.o" and " _arm_end.o" to the end of this list, as the below picture shows. I have tried it, it works