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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,392件の閲覧回数
MAPC
Senior Contributor I

Hello,

 

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.

 

107959_107959.pngieco_mqx_mutex_errors.png

 

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.

 

 

Thanks and best regards,

 

Marco Coelho

Applications Engineer

Siletec Eletronica

Original Attachment has been moved to: customer's_project-+-user_config.zip

0 件の賞賛
返信
1 解決策
1,174件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Marco :

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

pastedImage_0.png

Regards

Daniel

元の投稿で解決策を見る

0 件の賞賛
返信
3 返答(返信)
1,175件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Marco :

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

pastedImage_0.png

Regards

Daniel

0 件の賞賛
返信
1,174件の閲覧回数
MAPC
Senior Contributor I

Hello, Daniel

Sorry for the late response.

I tried your tips and it is working now.

I could never imagine this would be the cause of the problem.

Thank you very much for your help.

Marco Coelho

Applications Engineer

Siletec Eletronica

0 件の賞賛
返信
1,174件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi Marco:

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

pastedImage_0.png

pastedImage_1.png

Regards

Daniel

0 件の賞賛
返信