该项目为STM32微控制器自举程序的上位机ISP协议代码
本项目已经在ubuntu、windows进行过STM32F40xx系列擦除写入测试,波特率115200能够正常工作
2025-01-19 初始化项目,完成一些基础功能
Activation() error
使用前需要执行激活函数,使stm32进入自举程序
RightCode() error
连接成功后需要进行波特率对码同步
GetCommand() error
GetVersion() (version float64, option1 uint8, option2 uint8, err error)
GetID() (pid uint16, err error)
ReadoutProtect() error
ReadoutUnprotect() error
ExtendedEraseMemory() error
WriteMemory(addr uint64, data []byte) error
WriteFile(addr uint64, path string, verify bool, progress func(float64)) error