Again what do you mean by SoC? System On Chip? if yes need to provide more details on that part.
Yes STM32CubeProgrammer is for PC: Windows, Linux and MacOS.
If your "SoC" is another platform (not a PC) you need to develop your own tool based on the documentation I provided previously.
@abhijith_raj wrote:
We installed the below mentioned tool in Linux based SoC and copy STM32 binary to the soc and run this tool to flash the firmware to STM and it is working fine.
https://sourceforge.net/projects/stm32flash/
Need to contact the developer. All ST tools are available on ST website.