BotoX / xiaomi-m365-compatible-bms

Xiaomi M365 compatible, open source firmware for ATMega328p+BQ769x0 BMS. Ninebot in proto_test branch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Сlock generator

Elsta opened this issue · comments

commented

Hello BotoX!
Thank you for the work done and interesting project! Will this project work correctly if you connect external oscillator 16Mhz to the controller and change the fusebit without changing the m365 firmware?

commented

Yes it will if you change this firmware to use 115200 baud and change F_CPU to 16M.
Also need a different bootloader bin: https://t.me/XiaomiM365Hacking/39862

Yes it will if you change this firmware to use 115200 baud and change F_CPU to 16M.
Also need a different bootloader bin: https://t.me/XiaomiM365Hacking/39862

I found later posts from "White Power" claiming it did not work out:
"avrdude : verification error: content mismatch at byte 0x7e00"

Was it the reason you rolled back the 115200bps bootloader?

commented
commented

The quarz on the V1.6 BMS is 8MHz.

commented

The quarz on the V1.6 BMS is 8MHz.

Thanks! I am looking forward to program the BMS soon.

@Elsta Sorry for the confusion, I was referring to BotoX earlier commit. Thanks for your clarification too.

commented

You can only run this BMS with 115200 baud if you use a 16 MHz quarz OR calibrate it with OSCCAL so that you can do 115200 baud with 8 MHz.
See: https://codebender.cc/sketch:186647#OSCCAL.ino

commented