Start an STM32CubeMX project for the STM32F030F4
Generate, build and flash a small project for the STM32F030F4P6 using the STM32CubeF0 package.
Select STM32F030F4P6 in the MCU selector
Search the MCU selector for the full part number. Match the 20-pin package and install the STM32CubeF0 firmware package. The F030F4 has 16 KB of flash and 4 KB of SRAM, so keep the generated project and linker script specific to this part.
For a first test, use the internal oscillator and configure just a GPIO output plus Serial Wire debug. Apply your board's schematic to the pin assignment. Generate a project for your IDE, build it, and inspect the memory report before flashing.
Flash a standalone test before integrating a core
Use a 3.3 V target with SWDIO, SWCLK and common ground. Program the firmware with an ST-LINK or another compatible SWD probe. Confirm the GPIO changes after reset. Choose the STM32F030F4 startup file and the matching flash and SRAM layout when moving generated code into an old HAL or Arduino build.
If a custom bootloader starts the application, use the startup and interrupt-vector scheme documented for that F0 bootloader. A standalone application and a relocated application can require different linker scripts.
