2023-02-10 10:18 AM
Hi,
We're building our system based on STM32F407 with AZure Threadx + NetxDUO. One of the scenarios is as below:
1) One 250 HZ task is responsible for sampling on 6 sensors connecting to 3 I2C.
2) One UDP thread is receiving command from PC with 250HZ.
3) One 500HZ task is responsible for performing the command to operate two PWM controllers.
Everything works fine if the commands on 2 PWM controllers are with low duty cycle. But the UDP packets are lost frequently once the PWM duty cycles are set to high. Because there is no other difference from the code logic, I can't think of what might cause the data lost except for HW side.
Would you please suggest what might cause such issue and how to fix it from SW or HW side?
Any comment will be appreciated.