2024-07-12 05:21 AM
I made several changes in ethernetif.c
pbuf_ref(p);
if (HAL_ETH_Transmit_IT(&heth, &TxConfig) == HAL_OK) {
while(osSemaphoreAcquire(TxPktSemaphore, TIME_WAITING_FOR_INPUT)!=osOK)
{
}
HAL_ETH_ReleaseTxPacket(&heth);
} else {
pbuf_free(p);
}
//////////////////////////////////////
/* create a binary semaphore used for informing ethernetif of frame reception */
RxPktSemaphore = osSemaphoreNew(1, 0, NULL);
/* create a binary semaphore used for informing ethernetif of frame transmission */
TxPktSemaphore = osSemaphoreNew(1, 0, NULL);
I get vApplicationStackOverflowHook and get connected and disconnect very fast What changes should i be doing to avoid that
2024-07-12 05:26 AM - edited 2024-07-12 05:30 AM
>What changes should i be doing to avoid that
Giving it more stack ... ?
maybe...read:
2024-07-12 05:47 AM
I tried to increase stack size from 512 to 1024 . Overflow doesnt happen anymore but now no connection. If ı do get connected i get overflow
2024-07-12 05:49 AM
Please start from one of these ready examples: https://github.com/stm32-hotspot/STM32H7-LwIP-Examples
2024-07-12 06:49 AM
I am already using it as template The changes i did in ethernetif.c was recommended in other posts. Still dealing with overflow with increasing stack size