-
Notifications
You must be signed in to change notification settings - Fork 138
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
falsh Protocol error: uncalibrated, please provide a trim value #96
Comments
(base) crisqifawei@CRISQIFAWEI-MC0 tiny51_os % make flash |
New MCUs are not calibrated for a specific frequency yet. Like the message says, you need to provide a trim value with -t. Otherwise stcgal doesn't know what clock speed it shall use. |
thank you! |
(base) crisqifawei@CRISQIFAWEI-MC0 tiny51_os % make flash
rm -rf *.bin *.hex *.asm *.ihx *.lk *.lst *.map *.mem *.rel *.rst *.sym *.adb *.omf *.cdb
sdcc --model-large --debug -c ./task_scheduling_core/task_scheduling_core.c
sdcc --model-large --debug -c ./chip_platform/platform_interface.c
sdcc --model-large --debug -c ./drivers/lcd1602.c
sdcc --model-large --debug -c ./drivers/uart.c
./drivers/uart.c:8: warning 283: function declarator with no prototype
sdcc --model-large --debug main.c task_scheduling_core.rel platform_interface.rel lcd1602.rel uart.rel
packihx main.ihx > main.hex
packihx: read 67 lines, wrote 113: OK.
stcgal -P stc15 -b 1500000 -l 2400 -p /dev/tty.usbserial-110 main.hex
Waiting for MCU, please cycle power: done
Target model:
Name: STC15L2K60S2
Magic: F488
Code flash: 60.0 KB
EEPROM flash: 1.0 KB
Target frequency: 0.000 MHz
Target BSL version: 7.2.5S
Target wakeup frequency: 26.975 KHz
Target options:
reset_pin_enabled=False
clock_source=internal
clock_gain=high
watchdog_por_enabled=False
watchdog_stop_idle=True
watchdog_prescale=64
low_voltage_reset=False
low_voltage_threshold=3
eeprom_lvd_inhibit=False
eeprom_erase_enabled=True
bsl_pindetect_enabled=False
por_reset_delay=long
rstout_por_state=high
uart2_passthrough=False
uart2_pin_mode=normal
cpu_core_voltage=unknown
Loading flash: 1649 bytes (Intel HEX)
Protocol error: uncalibrated, please provide a trim value
Disconnected!
make: *** [flash] Error 1
The text was updated successfully, but these errors were encountered: