Closed Ellerbach closed 2 months ago
I've been trying on different ESP32-C3 models and they all have the same issue. There is no problem for a normal ESP32. So it seems related specifically to ESP32-C3.
i have some test code,may be the same problem ,on xiao_esp32_c3
This is fixed with nanoframework/nf-interpreter#2915. Can you please confirm?
Pinging to the followers of this issue. Appreciate if anyone can retest this and confirm that is indeed fixed. Thanks! 😃
Ran the provided code snippet in debug mode.
The second instantiation of the SpiDevice
and dispose()
executed just fine
System.Device.Spi, 1.3.52.0 Target: XIAO_ESP32C3 CLR Version: 1.9.1.265
Thanks for testing this. Closing it as fixed. Can be reopened if needed.
Library/API/IoT binding
System.Device.Spi
Visual Studio version
No response
.NET nanoFramework extension version
No response
Target name(s)
XIAO_ESP32C3
Firmware version
latest
Device capabilities
No response
Description
SpiDevice dispose blocks the execution and is never disposing
How to reproduce
// This is then never ever executed! _spi = new SpiDevice(settings);
Thread.Sleep(1000);
_spi.Dispose();
Thread.Sleep(Timeout.Infinite);
Expected behaviour
SpiDevice should properly dispose
Screenshots
No response
Sample project or code
No response
Aditional information
No response