KingQueenWong said:
I am trying to run the original controller,next i will try your firmware,finally i will change your firmware.
Good plan!!
I see that you are not using the LCD -- I bought the LCD and is useful as it shows some error code and motor do not runs. What I know for my case:
- need to connect the hall sensors, without that motor will not run and LC will show an error
-- seems you are shunting that wires to avoid using the LCD
- I use the throttle, never tested with PAS
If you can't make it working, maybe it is faster to flash the firmware!! The instructions:
- wire first the STLinkV2 and explained here: https://opensourceebikefirmware.bitbucket.io/Development_tools--Flash_and_debug_connector_on_S_Series_controller.html
- install the usual development software, at least to build the firmware and flash it using "stm8flash"
-- https://opensourceebikefirmware.bitbucket.io/Development_tools--Debug_OpenOCD_and_Eclipse--stm8-binutils-gdb.html
-- https://opensourceebikefirmware.bitbucket.io/Development_tools--Flash_programming.html
- Unlock the memory (just need to make first time):
echo "00 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff 00 ff" | xxd -r -p > factory_defaults.bin
stm8flash -c stlinkv2 -p stm8s105?6 -s opt -w factory_defaults.bin
-- more info: https://opensourceebikefirmware.bitbucket.io/Various--How_to_unlock_proteced_read_memory.html
- Get the firmware, build it, flash it and profit: https://github.com/OpenSource-EBike-firmware/BMSBattery_S_controllers_firmware (master branch, on the commit with log: Motor now runs with 6 steps. Also break coast the motor)