Trouble configuring platformio for Ender 3 S1 pro with STM32F4 chip

I selected the following processor in configuration.h:
//Choose your mother board IC
#define STM32F401RC_creality
// #define STM32F103RET6_creality

The platformio.ini file contains
src_dir = Marlin
boards_dir = buildroot/share/PlatformIO/boards
default_envs = STM32F401RC_creality
; default_envs = STM32F103RET6_creality

But the Marlin Auto Build screen still shows this??

What do I need to change to get the Marlin Auto Build to show the right processor?

Still haven’t figured this out!

Can someone please help?

Well but this is the PlatformIO forum, not Marlin.

If you adapted the platformio.ini correctly, then CLIpio run builds the firmware for the specified environment, yes?

Thanks for the reply suggesting this is more of a marlin issue. I’ll post over there.

I’m not sure what CLI → pio run means, I’m just following instructions from an online source.

The CLI above is a link, it will point you exactly to which buttons you need to click to get to it. In that terminal, execute the pio run command and post the output.

This is now resolved.
In platformio.ini the was a board specification that was set to an Arduino Mega 2560. I changed it to STM32F401RC_creality and now everything appears to be compiling correctly.