danielnilsson9 / bbs-fw

Open source firmware for multiple electric bike motor controllers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unable to find MCU on BBS02 controller

jonaslechot opened this issue · comments

Hello,
I'm trying to install your firmware onto the bbs02 controller (new controller from this year). however Following the instructions, I'm unable to even find the mcu. after unpotting I can confirm that it is an STC 15F2KS60S2 which should be compatible.
can you give me some advice on how to proceed?
best regards Jonas

Check the display cable connection, double check the pinout with a multimeter and be sure that the power enable pins are shorted. Do not forget to plug the battery in!

Ok so the connection should be ok.
Try to disconnect the battery, then click on Check MCU and only then plug the battery in.
I'm assuming that you set the baudrate as shown in the picture and the correct serial port. Other settings should be useless for this step.

I have a bbs02 controller, not so experienced but I'm developing a custom display, esp32 based, with more features :)
Hope to publish the project soon.

Oh.. so you're trying to replace the original firmware and you have never clicked on Download/Program button?
This eliminate any fault by you.. It seems a defective unit.
I suggest to you, if you're in time, to use the warranty.

BTW, try to use stc 6.88 instead of 6.86

Last chance, try a different usb-serial adapter, maybe an FTDI.
I know that it works for the configurator but the firmware programming occurs at an higher baudrate which may cause problems if you do not have the correct TTL voltages

You probably have done this correctly but I just want to confirm you are power cycling the controller after clicking flash button, some people forgot this step.

I do it with my switch one the battery, if you don't have a battery switch you will have to disconnect the battery or the programming cable.

Leave disconnected for at least 5 seconds

Alright yes that wierd, I have flash with many USB serial chips, CH340, CP2102 and FTDI. I hope Bafang haven't decided to make some changes...

commented

thanks for the tip, I'll get another adapter and try. the one I have now is from pswpower (see picture)

I received BBS02 controller(750w 48v, fwiw.) last week from pswpower, and got no issues flashing it.

Does the stc-isp just keep looping with "Checking target MCU ...", when you press "Check MCU".
or what does it actually do ?
A simple switch you can flip does work well, while "too smart" BMS might cause issues with flashing I guess.

btw., as you replied via email, we don't actually see the picture here on github.

commented

have you also experienced pas disabling after modifying parameters through the configuration app or eggrider app ?

No, I didn't try configuring it at all, and didn't even drive it before flashing bbs-fw,
because throttle wasn't working with it. Flashing naturally didn't solve anything, as I found out
with multimeter that my throttle was actually also broken, and I'm still waiting for replacement.