Adapt platformio.ini to reproduce Arduino IDE settings

Hi, everyone.

I have a project that I usually burn into a custom nRF52840 board using VS Code.

But there is an issue: when I burn it using VS Code, the chip will only run if it’s attached and powered by a PC USB. When I use a wall adapter or PPK, it doesn’t work (curiously, only the watchdog works).

However, when I burn using Arduino IDE, it works fine using a wall adapter or PPK. Same code, same bootloader and same board.

How can I check all the config of Arduino IDE to reproduce in platformio.ini?

Presently, my platformio.ini is just:

[env:Minew_ME25LS01]
framework = arduino
platform = https://github.com/Seeed-Studio/platform-seeedboards.git
board = nrf-nrf52840-teste
board_build.variant = nrf-nrf52840-teste
board_build.variants_dir = variants
build_flags = -I variants/nrf-nrf52840-teste

What else can I add to it be alike the Arduino IDE settings?

Thank you all for any insight.