Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It works with IAP15W4K61S4 #103

Open
sinatosk opened this issue Feb 4, 2024 · 0 comments
Open

It works with IAP15W4K61S4 #103

sinatosk opened this issue Feb 4, 2024 · 0 comments

Comments

@sinatosk
Copy link

sinatosk commented Feb 4, 2024

I have a Bafang BBSHD 1000W which uses the IAP15W4K61S4 controller

with a "Bafang USB Programming cable"

using the command as root

stcgal

output is

Protocol detected: stc15
Target model:
Name: IAP15W4K61S4
Magic: F56A
Code flash: 61.0 KB
EEPROM flash: 0.0 KB
Target frequency: 18.461 MHz
Target BSL version: 7.2.5T
Target wakeup frequency: 36.677 KHz
Target options:
reset_pin_enabled=False
clock_source=internal
clock_gain=high
watchdog_por_enabled=False
watchdog_stop_idle=False
watchdog_prescale=256
low_voltage_reset=True
low_voltage_threshold=4
eeprom_lvd_inhibit=True
eeprom_erase_enabled=False
bsl_pindetect_enabled=False
por_reset_delay=short
rstout_por_state=high
uart2_passthrough=False
uart2_pin_mode=normal
cpu_core_voltage=unknown

I then later flashed the controller with the following

stcgal -P stc15 -b 57600 -l 2400 -t 18432 /path/to/code_image.bin

i didn't save the output for that but it worked. I tried it with two controllers

The package I used on Arch Linux is here version 1.10 commit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant