Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the closest STM32 part¿? #15

Open
NoNamedCat opened this issue Jun 28, 2023 · 7 comments
Open

What is the closest STM32 part¿? #15

NoNamedCat opened this issue Jun 28, 2023 · 7 comments

Comments

@NoNamedCat
Copy link

Hello again.
Im wondering what is the closest MCU on the STM32 family to this microcontroller?
I want try to port the arduino core for the PY32F0 and i don't want to start from scratch.

@prosper00
Copy link

prosper00 commented Jun 28, 2023

the official stmicro arduino cores are pretty terrible. They're built on top of the HAL - which might make them easy to port, but not exactly lightweight. Arduino's own HAL, sitting on top of ST's HAL - not a great fit for smaller arm micros. It's hard getting anything useful to fit in flash with so much blubber. Even just the basic 'blink' example built on Arduino is huge:

for the Nano, blink is 924 bytes with 9 bytes of sram.
for the stm32g030, it's 13304 bytes of flash, and 1236 of SRAM!! for BLINK!! They sent a man to the moon with less resources.

It's ridiculous. Especially when the smaller arm cores don't exactly have flash and sram to spare. Its also super annoying how long it takes to build, pulling in every individual library and compiling them sequentially. Even 'make' can do parallel compilation (do better, Arduino!).

@NoNamedCat
Copy link
Author

Some time ago, I found and then forgot where I found an Arduino core that is not based on HAL but on LL. Do you think that would be better? I suppose the STM32G030 is the MCU most similar to the PY32F030, PY32F002...?

@NoNamedCat
Copy link
Author

@prosper00
Copy link

It seems relatively similar by specs, but I haven't compared them all that closely. The peripheral set has a slight resemblance, but it's definitley not a 1:1 clone

@IOsetting
Copy link
Owner

Hello again. Im wondering what is the closest MCU on the STM32 family to this microcontroller? I want try to port the arduino core for the PY32F0 and i don't want to start from scratch.

Someone is already working on this: https://github.com/Air-duino/Arduino-AirMCU

AIR001xx is a variant(much likely the same core) of PY32F002A, so in theory the Arduino implementation also works on PY32F003 and PY32F030.

More details about AIR001xx can be found at below links. This chip hasn't been released officially, some documents may be incomplete
https://gitee.com/openLuat/luatos-broads/tree/master/broads/Air001-Board/
https://wiki.luatos.com/chips/air001/index.html

@NoNamedCat
Copy link
Author

I can design a PCB for this microcontroller if you wish. Let me know what peripherals you would like it to have (LEDs, voltage regulator, programming headers...).

如果您愿意,我可以为这个微控制器设计一块PCB。请告诉我您希望它具备哪些外设(LED灯,电压调节器,编程接头...)

@IOsetting
Copy link
Owner

Thank you for your kindness but I already have a bunch of pcb boards of PY32 chips. Recently my interests have been shifting from PY32.
I believe that you are professional in pcb design and you have good ideas that you want to share, please create a repository for your design, then you can share and get feedback, that is how GitHub works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants