@RoSchmi,
I mean these codes.
pinMode(RTL8720D_CHIP_PU, OUTPUT);
digitalWrite(RTL8720D_CHIP_PU, LOW);
delay(500);
digitalWrite(RTL8720D_CHIP_PU, HIGH);
delay(500);
You need to reinitialize the Wi-Fi libraries after the above codes.
To be clear:
- Include the above codes inside your demo, where you need to restart the MCU -> RTL8720 connection.
- Reinitialize the Wi-Fi libraries
Will get back to you if there is any routine to use on the SAMD51 to test for memory leaks.