Integrating MQTT client inside TF-M demo (frdmrw612_tfm_demo_ns)

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

Integrating MQTT client inside TF-M demo (frdmrw612_tfm_demo_ns)

999件の閲覧回数
xenxopb7
Contributor I

Hi,

I'm learning about TF-M and bought the NXP FRDM-RW612 board to test the TF-M features. Everything is going alright but I wanted to take a further step and implement a mqtt client in the non-secure world (as it is expected to carry the application in real world production). I'm having trouble on getting it, I tried to use the rw612_wifi_mqtt example to port something similar but my lack of experience in MCUXpresso NXP IDE doesn't allow me to success.

To run this mqtt client inside non-secure world (wifi mqtt client) which way would be the easiest? Which NXP tools allow to integrate that easier?

Any help is appreciated. Thanks for your time really. (Sorry if this location is not the best to ask this question)

0 件の賞賛
返信
8 返答(返信)

973件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

Unfortunately, we don't have specific documentation to integrate or port application into a tfm project. 

What is the problem you are facing?

Could you please tell me how are you importing the MQTT files into the TF-M project?

 

Regards,

Daniel.

0 件の賞賛
返信

965件の閲覧回数
xenxopb7
Contributor I
Hi,

Thanks for your response.

I've tried to include the SDK Components with SDK Components/Manage SDK Components. First, I tried to add the FreeRTOS, lwip, wifi, mqtt components but didn't work. Then, I tried to just import the wifi nxp driver component but after doing it, the project didn't build triggering a lot of errors of missing files...

I guess I can't use this tool like that but I can't find some documentation of each component present on the FRDM-RW612 SDK to try an add them to the project correctly.

This is the correct way? Or how do you suggest me to do it with MCU Xpresso

Again, thanks for your time
タグ(1)
0 件の賞賛
返信

949件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

Thank you for confirming.

I strongly recommend you to literally copy and paste the MQTT source files into your project.

When using Manage SDK Components, the tool will make some changes in the project setting that might affect the behavior. Specially, if you are using TF-M.

 

Regards,

Daniel.

0 件の賞賛
返信

902件の閲覧回数
xenxopb7
Contributor I
Hello,

After some time of adding the FreeRTOS wifi mqtt example source files, including paths, etc as you suggested, I reached to a point where my build fails due to the presence of two RTOS (multiple definitions) (CMSIS-RTOS2 doing TF-M tasks and FreeRTOS files for wifi,osa and mqtt client).

Since I think managing TF-M system and threads will be hard, I think the only solution is porting the MQTT client to the same RTOS config? Or am I missing something?

Can try running a mqtt client with no freertos as first integration check with TF-M but it's not the ideal solution I would like.

Any suggestions on how to proceed?


Thanks!
0 件の賞賛
返信

796件の閲覧回数
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

 

I don't have experience with CMSIS RTOS2. But I found the following documentation that might help you with this specific situation.

 

Regards,

Daniel.

0 件の賞賛
返信

945件の閲覧回数
xenxopb7
Contributor I
I'll try to do that using rw612 wifi mqtt example from the SDK. thanks!!
0 件の賞賛
返信

921件の閲覧回数
James0409
Contributor I

I am also facing this problem now, shouldn't there be an secure mqtt demo available officially?

Do you have any idea? thanks

タグ(1)
0 件の賞賛
返信

901件の閲覧回数
xenxopb7
Contributor I
There is an el2go_mqtt_demo that uses TF-M but its for mqtt connection to Cloud AWS/Azure using pre-provisioned crypto items on the board. I would like a simple approach for a mqtt client that can connect to a custom broker.

If you make progress would be appreciated if you let me know

Thx
0 件の賞賛
返信