stm32h7 ethernet not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-12 5: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
- Labels:
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-12 5:26 AM - edited ‎2024-07-12 5:30 AM
>What changes should i be doing to avoid that
Giving it more stack ... ?
maybe...read:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-12 5: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-12 5:49 AM
Please start from one of these ready examples: https://github.com/stm32-hotspot/STM32H7-LwIP-Examples
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-07-12 6: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
