--
You received this message because you are subscribed to the Google Groups "cheali-charger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cheali-charge...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/cheali-charger/5857ab76-8460-45e8-a0ca-e36ca09c9e94n%40googlegroups.com.
Yes, the codebase is structured to make this practical. The src/hardware/ tree is cleanly separated from src/core/, and there are already two working ARM Cortex-M0 ports in the tree (nuvoton-M051 and nuvoton-NUC029xAN) that you can use as a template. STM32F0 is the same Cortex-M0 class, so most of the work is register-level mapping, not algorithmic.
Quick question first: which specific charger or board are you targeting? That determines effort more than the chip choice. If you can share the model name and ideally a photo of the PCB, it helps narrow the path. Somebody may have already documented the pin map, or it might mirror a known clone.
For an existing STM32-based charger, the actual work breaks down roughly as follows:
Total: roughly 3 to 4 weeks of focused work if you have the hardware sorted and some ARM-GCC experience.
Practical prerequisites:
Worth knowing: matiaschamu has an in-progress port of cheali-charger to the CMS32L051 (Chinese Cortex-M0 used in newer iMaxB6 clones). See:
https://github.com/matiaschamu/cheali-charger/tree/Support-cms32l051
Same architecture class as STM32F0, so looking at that branch gives you a concrete sense of what changes are needed.
One more pointer: I have my own fork at https://github.com/DieterMayerOSS/cheali-charger where over the past few weeks I have been doing maintenance work that would be useful to anyone starting a port. Highlights, in case any of it saves you time:
It is on a branch called sim, version bumped to 3.0. There are also rebuilt .hex files under hex/ for the 20 atmega32 targets in case you want a known-good baseline before swapping to STM32. Feel free to cherry-pick anything that is useful.
Which board are we talking about?
Hi,
In 2017 I ported the cheali-charger firmware to an ATmega644, and
it worked well.
I am currently considering porting the cheali firmware to an
ESP32, or possibly to an STM32 platform.
If there is enough interest, I could design a new schematic and
PCB, build a prototype, and work on the firmware port.
For me, porting the firmware to STM32 or ESP32 is possible, but I
would only start such a project if there is
enough interest from other users/developers. Since this would be a
hobby project, it would take a considerable amount of time.
Best regards,
Rob

