cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with lwip and x-cube-ai

jofidkt
Associate

Hello STM community,

we have been developing our projects on a custom pcb with an stm32h723vet6 for the past few weeks and have come upon a problem/bug? with the x-cube-ai. Our Project takes data via an adc, runs it trough a neural network and is then supposed to send the results via ethernet, all this in freertos. All the parts seperatly work just fine. However in the ethernet project, if we jsut enable x-cube-ai 8.1 or 9.0, or any other version, lwip stops working.

For our lwip proof of concept we followed this tutorial https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308, which worked just fine after some modification. We had to place the lwip heap at 0x24000000 because the ioc file says so.

 

jofidkt_0-1742912310747.png

jofidkt_1-1742912355768.png

jofidkt_2-1742912483133.png

 

This replys to arp request, is pingable an all around just works, however as said once we just activate x-cube-ai, not even input a model, none of this works. anymore. After some debugging we believe it to be a memory problem, because pbuf_alloc always returns NULL, but we are just stuck. Has anyone encountered something similar?

Thanks for any hints and help!

 

1 REPLY 1
Julian E.
ST Employee

Hello @jofidkt ,

 

It is hard to tell.

Can you try to first contact the CubeMX forum board, I think it is this one:

https://community.st.com/t5/stm32-mcus-software-development/ct-p/mcu-software-development-tools

 

If they cannot help you, please come back to me. But for the moment, people related to this in my team are not available, so you will have a better time asking elsewhere for now.

 

Have a good day,

Julian


In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.