Skip to main content
Visitor II
November 8, 2024
Question

STM32 Nucleo H743ZI2 Timer interrupt problem with ethernet.

  • November 8, 2024
  • 1 reply
  • 989 views

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.

 

 

    This topic has been closed for replies.

    1 reply

    Super User
    November 8, 2024

    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?

     

    ChaoticAuthor
    Visitor II
    November 8, 2024

    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?

    Super User
    November 8, 2024

    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.