HK32F030M - Chinese ARM for 15 cents

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

Comments
I wonder if the manufacturer fires the license fee to ARM :) [Read more]
PDFs are not top secret, so I think they have a license. ARM abolished the entry fee for M0 and M3, they only charge on the produced pcs. (supposedly 1%, I haven't found official confirmation) [Read more]
The link to the store and the shipping price are missing ;) [Read more]
Link to the store Personally, I recommend this store - it's cheap, a lot of cheap Chinese chips and I've never come across fakes. [Read more]
I was hoping for some interesting discussion... Why are the prices of Western microcontrollers so high? It's not a hand job. PIC10F200 - price 3 times higher. PICs are like 40 years old, it's... [Read more]
Sorry, but I did not find information about Arduino Core support for this processor :) Inter-corporate agreements, additional benefits, etc. On the other hand, it is as if you wonder why many ATMs... [Read more]
Well, it depends where you buy. Exactly the same STM32 as in LCSC in Farnell is 3-4 times more expensive. I believe this is due to higher wages in the UK and Farnell's inflated costs. I wonder what... [Read more]
The first thing the NDA orders. [Read more]
Haha, well... I wonder what price the Chinese would offer me at 2 million, because I can't complain about the prices for single pieces. And I'm not boasting about the discount anymore ... [Read more]
I don't think the Chinese have anything to do with it. Instead of 2p/pc (PADAUK) you will get 1.5p/pc ;) [Read more]
The 2 cent one is not the cheapest Padauk. There is also PMS15A. Apparently, with a large amount at the manufacturer, they are $0.01 each. And you can always order "bare die". [Read more]
Hello. Prices - well, no competition.... We'll wait and see how it is with parameters, stability, life time. "Western" products work quite well even if you buy regular versions, not any "military". ... [Read more]
Only the simplest ones (probably Chinese copies or rejects). Others cost the same or usually more expensive. e.g.: STM32F745VET6 - LCSC ?12.107382, Farnell - ?9.41. [Read more]
Maybe ST has some production there? Or they are in arrears because they imported too much and Chinese equivalents appeared. Chinese versions of PICs have 4 cents in LCSC. The original is there too,... [Read more]
Western behemoths are maintainable, but at this price there is also a tool that they often provide for free, not to mention the documentation (EN) :) In addition to the DS itself, they also release application... [Read more]
That's right. Flash is seen at addresses 0x0800xxxx and 0x0000xxxx. 0x0000xxxx booting, 0x0800xxxx programming. In STM32 under 0x0000xxxx RAM/FLASH/ROM is switched. There is probably only FLASH here... [Read more]
Fanell, Arrow and others just like hobbyists because they are a high-margin group - which can be seen in the ever wider range of products for hobbyists. Procek as a curiosity OK, but IMO for a hobbyist,... [Read more]
Only when I once wanted to buy r-PI, they told me to look elsewhere, because they only sell to companies. Did someone ban it? You can see that he has a lot of different crap on aliexpress with... [Read more]
@piotr_go I'm not going to stick a stick in an anthill - I just shared my thoughts. Nobody, of course - but those who only need Arduino will not write libraries themselves. Their absence greatly... [Read more]