
No, this is not another STM32F030 clone as the designation would suggest.
It is a Cortex M0 with a pinout similar to the 8-bit STM8S microcontrollers.
STM8S/HK32F030M/STM32F030:



The HK32F030M has 16kB Flash, 2kB RAM and 448B EEPROM. SPI/I2C/USART/ADC present.
There is no DMA, PLL, or external quartz support, which is present in the STM32F030. The Chinese manufacturer added BEEPER appearing in STM8S.
We only have 3 timers. Two with PWM and one only internal. All 16 bit.
The internal HSI generator runs at 32MHz.
For 15 cents in detail? There is no competition.
HK32F030M/STM32F030:


Peripheral addresses are similar. Unfortunately, the individual registers are slightly different, so the code from STM32F030 may not work properly without corrections.

HK32F030M/STM32F030 clocks:


J-Link does not support "out of the box" microcontroller. You need to edit the "JLinkDevices.xml" file and add the following entries:
Quote:<!-- -->
<!-- HK -->
<!-- -->
<Device>
<ChipInfo Vendor="ST" Name="HK32F030M" WorkRAMAddr="0x20000000" WorkRAMSize="0x800" Core="JLINK_CORE_CORTEX_M0" />
<FlashBankInfo Name="Code Flash" BaseAddr="0x08000000" MaxSize="0x4000" Loader="Devices/HK32F030M/HK32F030MXX_16.FLM" LoaderType="FLASH_ALGO_TYPE_CMSIS" />
</Device>
<Device>
<ChipInfo Vendor="ST" Name="HK32F030M" WorkRAMAddr="0x20000000" WorkRAMSize="0x800" Core="JLINK_CORE_CORTEX_M0" />
<FlashBankInfo Name="Code EEPROM" BaseAddr="0x0C000000" MaxSize="0x01C0" Loader="Devices/HK32F030M/HK32F030MXX_EEPROM.FLM" LoaderType="FLASH_ALGO_TYPE_CMSIS" />
</Device>
<Device>
<ChipInfo Vendor="ST" Name="HK32F030M" WorkRAMAddr="0x20000000" WorkRAMSize="0x800" Core="JLINK_CORE_CORTEX_M0" />
<FlashBankInfo Name="Code OPT" BaseAddr="0x1FFFF800" MaxSize="0x0018" Loader="Devices/HK32F030M/HK32F030MXX_OPT.FLM" LoaderType="FLASH_ALGO_TYPE_CMSIS" />
</Device>
And upload ".FLM" files (attached).
"Vendor=ST" so that the system can be programmed with ST-Link converted to J-Link

What more can I say? For now, not much except that the microcontroller works.

If I discover something new, I will add it.
"Hello world" and flashing LEDs in the attachment. Just in time to start.
LED1...4 = PC4...7
UART TX = PA3, speed 9600

Cool? Ranking DIY