Uploading to wemos_d1_mini32 impossible

I use the wemos_d1_mini32 board.
I can compile my test code but it is not possible to upload it to my device:
A fatal error occurred: This chip is ESP32-S2 not ESP32. Wrong --chip argument?

my platformio.ini is:
[env:wemos_d1_mini32]
platform = espressif32
board = wemos_d1_mini32
framework = arduino
upload_protocol = esptool

Can someone help me?
Thanks

Well if your board reports to be an ESP32-S2 chip then it can’t possibly be a “wemos_d1_mini32” board – per D1 Mini ESP32 WiFi + Bluetooth that has as standard ESP32-WROOM-32 module with an ESP32, not an ESP32-S2.

Can you link to the page where you bought your board?

here is the link S2 mini — WEMOS documentation

As per Get started with Arduino [S2 series] — WEMOS documentation the board needs to be treated as a “ESP32S2 Dev Module”, which in Arduino-ESP32 is referenced as

however, due to Support for the latest Arduino v2.0 · Issue #619 · platformio/platform-espressif32 · GitHub not being resolved yet, there is no official ESP32S2 + Arduino support in PlatformIO yet. The closest one can get is with a custom platformio.ini as mentioned in https://github.com/platformio/platform-espressif32/issues/619#issuecomment-970215450.

Thank you very much for these informations.
Best regards!