2024-11-08 05:00 AM
Hello everyone,
I am working with STM32 Nucleo-H743ZI2 microcontroller. I configured the card's Ethernet and Lwip settings by following the steps in this link. https://community.st.com/t5/stm32-mcus/how-to-create-a-project-for-stm32h7-with-ethernet-and-lwip-stack/ta-p/49308.
I adapted these settings to not use RTOS. In other words, my RTOS settings are off. In this way, I was able to ping my card. However, later on, I had to use an interrupt while making a TCP communication to use my card as a client and my computer as a server. I wanted to query the card from the computer at certain intervals, so I had to open a timer interrupt. When I set the clock source setting of TIM1 to internal clock for interrupt, I cannot ping my STM microcontroller. When I turn off interrupt, I can ping. What could be causing this problem? If anyone has experienced it before and solved it, I am waiting for your help.
2024-11-08 05:06 AM
But you can use the ping itself to query the card form the computer. If the card responds to ping it is alive. No other timers or interrupts are needed. Good enough?
2024-11-08 05:09 AM
I want to periodically query the card. Or even if I don't want to, how do I handle this situation when I need to use an interrupt?
2024-11-08 05:15 AM
You handle the interrupt so that it does not interfere with Ethernet. Either make it lower priority, or higher priority - but the handler is very very short and fast.
2024-11-08 05:22 AM
I tried changing the priority order but it didn't have any effect.