Memory problems of the ESP-02S ESP8265 ESP8285H16 model with 2Mb

Hello everyone.
I’m new to the forum and I’d like to tell you about a problem I’m having with the ESP-02S.
Many are sold with 1Mb of memory but there is also a 2Mb model that corresponds to the ESP8285H16 model.
he ID from the memory is ID-4015h
When flashing, it only detects 1Mb.

Linking .pioenvs/enchufe5-esp02s/firmware.elf
RAM: [==== ] 42.3% (used 34692 bytes from 81920 bytes)
Flash: [===== ] 47.5% (used 486661 bytes from 1023984 bytes)
Building .pioenvs/enchufe5-esp02s/firmware.bin

Is there any way to force it to detect the 2Mb?
With tasmota it also detects the 2Mb but it’s as if it could only use 1Mb.
With the ESP-Flash-download-tool program it also detects the 2Mb.