Comments (16)
Thanks for your reply!
I've downloaded and unpacked the keil pack from the Cmsemicon site and copied the CMSIS
, Device
, and Driver
folders to a new folder at src\hardware\cmsemicon-CMS32L051\cpu\CMSIS
and I've copied and adjusted the cmsis.cmake
from the nuvoton-M051
cpu present in this repo.
However, some CMSIS drivers/files are missing. From the files included in the nuvoton-M051
cmsis.cmake
file, the following files are missing in the cmsemicon-CMS32L051
CMSIS pack: timer.c
, uart.c
, pwm.c
, FMC.c
, sys.c
, and _syscalls.c
. I suppose I have to write them myself?
Also, the CMSIS\Include\core_cm0plus.h
file from the pack tries to include cmsis_version.h
and cmsis_compiler.h
, but they're missing from the pack. Can I copy them from the here: ARM-software/CMSIS_5/CMSIS/Core/Include?
Your job sound really cool btw!
I really appreciate your time.
from cheali-charger.
Hi,
i purchased also a B6 clone with a CMS32L051 chip. Hopefully there will be a solution for these ones too!...
from cheali-charger.
Depends on the clone; can't tell by just looking at the listings. In general though, the ones that advertise 32-bit CPUs are safer bets than just going for the cheapest possible listing because the chances its a reprogrammable ARM are higher
from cheali-charger.
Hi, I hope you are doing well.
I bought such a B6 80W clone from here on AliExpress. It has a CMS32L051.
Would this be compatible? And would 80W theoretically work with the cheali firmware?
I know 80W is a BS number because the included power supply only outputs
Thanks
from cheali-charger.
Hi @silvio2402, this MCU is currently not supported. Fortunately, it's an ARM with enough storage, so it's definitely doable. The only issue I see is reference manual in chinese. Then someone has to add support for it (C++ coding).
from cheali-charger.
Hi @diggit, I have some electronics and coding knowledge and I'd be willing to invest some time to collaborate to make this work. Is this the reference manual you're referring to?
Also, are there any resources available from the cheali-charger project which files need to be created/edited? If you could mention some commits/pull requests which could help me understand what it takes to support another MCU it would be very helpful. I'll have to get familiar with the codebase so is there any documentation?
If I need help, is the Google Group an appropriate place to ask about the development?
Thanks
Edit: Do I need an IDE/which one would you recommend?
from cheali-charger.
Yes, that is reference manual I've found. Maybe it's not exactly necessary to study it, as there is also some code in that keil pack on their website (it's just zip archive).
Regarding cheali development
I did not contribute any code here 😅.
You'll need new directory here https://github.com/stawel/cheali-charger/tree/master/src/hardware that includes some drivers and hw configurations. Look into those already there. Then some changes to cmake configs https://github.com/stawel/cheali-charger/blob/master/CMakeLists.txt etc.
About development tools...
I use VSCode/VSCodium with cortex-debug and cmake plugins (some other plugins for higher comfort).
As compiler: GCC (arm-none-eabi) works well.
STlink/J-Link as SWD probes, but there are other options...
I do this stuff as daily job, so I can also have a look, if you need help. Why everyone has to copy most ugly charger in the world? I'll probably also get one anyway, for science...
from cheali-charger.
Hi Silvio,
were you able to move forward with this CMS32L051 project?...
from cheali-charger.
Hi @RadioControl,
Unfortunately, I wasn’t.
@diggit are you still interested in helping? If not, that’s completely fine and I understand if it’s just not worth your time.
from cheali-charger.
Yeah I can help. I just was not able to persuate myself to buy another B6 clone, so I don't have hw.
Keep in mind, that I am not that deeply familiar with cheali internals. I know cmake, C++ and I do embedded FW development (even from scratch), but I will have to look up most of the cheali related stuff may be asking. Anyway, I'll do my best to help.
from cheali-charger.
I think a lot of CMS32L051 owner would appreciate that they could use Cheali on their charger. If You were here in the near i would offer mine for the the project. The charger cost about 20 euros, but if someone claim a refund like i did due to misleading description (see pic), it cost just the half...
from cheali-charger.
@RadioControl where did you get yours?
from cheali-charger.
from cheali-charger.
Received my new clone with a nice Atmega32A inside...
from cheali-charger.
Cool! Do you mind sharing the purchase link?
Btw I haven’t had the time to develop it further for the other chip.
from cheali-charger.
Just click on "clone" ;) ...Diggit found out that the CMS ones have not the best hw #340. I charged some 3 cell lipos with mine CMS clone in balance mode. I think it's not that bad. Other modes i didn't try.
from cheali-charger.
Related Issues (20)
- auto go to main screen during charing HOT 1
- B6AC: Keypad is not working, charger beeps randomly after powering on HOT 15
- B6AC original - target does not answer HOT 15
- HK ECO 6-10 200W HOT 17
- Current (1A) is flowing when entering calibration menus HOT 5
- GT Power B6 mini status
- Inaccurate voltage for cells 1 and 2 when charging HOT 8
- Imax B6 with CMS32L051 status HOT 17
- Feature Request: Is it possible to add Iggnus features to this firmware? HOT 3
- Bantam bc-6 AC/DC is it possible? HOT 5
- DC power supply mode HOT 2
- Feature request: sodium ion battery charging and discharging HOT 1
- Any currently available chargers (December 2023) that support this firmware? HOT 2
- MA84G564AD48 support? HOT 1
- Timer speed issue? HOT 1
- Quattro B6AC Invalid device signature.
- Imax b6 new 1.8 version board HOT 8
- Temp issue LM35 - Dual-Power-B6AC-80W HOT 2
- Is this the port for fan control? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cheali-charger.