Dumb HTTP Server with TF-M #103132
-
|
Hi, I am trying to use ethernet on an stm32h573i_dk board with TF-M enabled. I am taking the dumb_http_server example, add Overall steps are:
The problem is that the network does not come up. Console output is: Does anyone have expierience with the combination of TF-M and peripherals? Do I have the make ethernet available to the non-secure application somehow? Or is there any problems with memory/dma/IRQs? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
|
I cannot comment on TF-M but for networking issue, I see that you have a network interface there in the system It is just that the interface does not come up (I assume you have the Ethernet cable connected here) If you have network shell enabled, you can try to do that manually |
Beta Was this translation helpful? Give feedback.
-
|
I submitted a fix, can you check if this solves your problem? #103228 |
Beta Was this translation helpful? Give feedback.
-
|
@jukkar, you were right, the network interface not coming up was just a mistake from my side (using the wrong rj45 port on my laptop...) Still, I never got it working with TF-M and I found that the underlying problem is the RNG. When creating the socket, some random numbers are used here. The underlying implementation for stm32h573dk tries to use the hardware RNG which is marked as secure by the TF-M and thus cannot be used. |
Beta Was this translation helpful? Give feedback.
I submitted a fix, can you check if this solves your problem? #103228