Tool/software:
Hi.
I am working on implementing a slow peak detector for our power converter, with the goal of detecting output overloads. We have a circuit that monitors the converter's input current and converts it into a PWM signal. At full load, the PWM signal has a peak voltage of 400mV, a duty cycle of 30%, and a frequency of 100kHz. The peak detector is designed to have a slow response to avoid detecting inrush current at startup, which could trigger a false overload flag and shut down the controller (This inrush current can last 100ms).
The circuit was working fine when I was testing on a test board and connected to the main module. However, when I connected to the main board, the capacitor never discharges. I need to connect the Multimeter and I can see the capacitor discharge. Does it mean that I need to increase the resistor that is connected from OPA Out to GND (1Mohms to 10Mohms)? Or do I need to change the OPAMP from TLV9301 to an instrumental OPAMP lilke OPA189IDBV?

Edit: Sorry, I tried to say when I implemented everything on the main board (layout modification), I saw the issue with the capacitor
