HiAfter building the project for the m4 and m7 cores, you can create a bat file. Use the following commands to flash either m7 or m4 target:::m7
STM32_Programmer_CLI -c port=SWD mode=UR -w <path_to_m7_binary> 0x8000000
::m4
STM32_Programmer_CLI -c po...