cancel
Showing results for 
Search instead for 
Did you mean: 

STM32 Nucleo H743ZI2 Timer interrupt problem with ethernet.

Chaotic
Associate II

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.

 

 

4 REPLIES 4
Pavel A.
Evangelist III

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?

 

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?

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.

 

I tried changing the priority order but it didn't have any effect.