mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
20 lines
310 B
INI
20 lines
310 B
INI
# Set WORKAREASIZE based on RAM size of 20kb
|
|
set WORKAREASIZE 0x4fff
|
|
source [find target/stm32f1x.cfg]
|
|
|
|
proc init_stm32 {} {
|
|
init
|
|
reset halt
|
|
adapter_khz 1500
|
|
}
|
|
|
|
proc program_flash {bin_file} {
|
|
init_stm32
|
|
wait_halt
|
|
flash erase_sector 0 0 last
|
|
flash write_bank 0 $bin_file 0
|
|
reset run
|
|
shutdown
|
|
}
|
|
|