An ISP (In-system programming) tool for HPMicro MCUs.
cargo install hpm_ispsudo cp 70-hpm_bootrom.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules# Write to flash (use default memory config)
hpm_isp flash 0 write 0x400 flash.bin
# Write to flash (use custom memory config)
# Note: if hpm_isp.toml exists in the working directory, it will be used by default.
# So you don't need to pass -c option explicitly.
hpm_isp flash -c hpm_isp.toml 0 write 0x400 flash.bin
# Read from flash
hpm_isp flash 0 read 0x0 0x4000 flash.bin
# Use config wizard to generate config file (save as hpm_isp.toml)
hpm_isp wizardMemory config files are TOML:
[memory_config]
flash_type = "sfdp_sdr"
port_connection = "port_a_cs0"
pin_group = "group1"
quad_io_enable_sequence = "none"