<div dir="ltr"><div><div><div><div><div><div>It probably adds the lwIP sources and builds them. <br><br></div>Right now I am trying to solve an issue with the DMA (hopefully the last issue), because the following function used by lwIP is not working:<br><br>static err_t low_level_output(struct netif *netif, struct pbuf *p)<br>{<br>  uint32_t i=0, framelen = 0;<br>  struct pbuf *q;<br>  err_t errval = ERR_OK;<br>  ETH_BufferTypeDef Txbuffer[ETH_TX_DESC_CNT];<br>  <br>  for(q = p; q != NULL; q = q->next)<br>  {<br>    if(i >= ETH_TX_DESC_CNT)       <br>      return ERR_IF;<br>    <br>    Txbuffer[i].buffer = q->payload;<br>    Txbuffer[i].len = q->len;<br>    framelen += q->len;<br>    <br>    if(i>0)<br>    {<br>      Txbuffer[i-1].next = &Txbuffer[i];<br>    }<br>    <br>    if(q->next == NULL)<br>    {<br>      Txbuffer[i].next = NULL;<br>    }<br><br>    i++;<br>  }<br><br>  TxConfig.Length = framelen;<br>  TxConfig.TxBuffer = Txbuffer;<br><br>  HAL_StatusTypeDef ret = HAL_ETH_Transmit(&EthHandle, &TxConfig, 20);<br><br>  if(ret != HAL_OK) {<br>     printf("low_level_output: Could not transmit ethernet packet, code %d!\n\r", ret);<br>  }<br>  <br>  return errval;<br>}<br><br></div>The 
HAL_ETH_Transmit call just times out. If I set the timeout to 20 to HAL_MAX_DELAY, the function will just block indefinitely.<br></div><div>Does anyone have an idea why this might happen?<br></div>Now I have also found  this <a href="https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices">https://community.st.com/s/article/FAQ-DMA-is-not-working-on-STM32H7-devices</a> which also <br></div>explains some details about the STM32 DMA..<br><br></div>Kind Regards<br></div>Robin<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 29 Jan 2021 at 01:25, Chris Johns <<a href="mailto:chrisj@rtems.org">chrisj@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 29/1/21 12:35 am, Robin Müller wrote:<br>
> Are there any other thinks I need to take into account for making LwIP<br>
> work with RTEMS?<br>
<br>
I have not used LwIP but there is an RSB package ...<br>
<br>
<a href="https://git.rtems.org/rtems-source-builder/tree/rtems/config/net/lwip-1-1.cfg" rel="noreferrer" target="_blank">https://git.rtems.org/rtems-source-builder/tree/rtems/config/net/lwip-1-1.cfg</a><br>
<br>
It has a patch. I have no idea about the state of the patch or what it does.<br>
<br>
Any updates to LwIP would be welcomed back into the project.<br>
<br>
Thanks<br>
Chris<br>
</blockquote></div>