请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F2812 工具与软件:
我使用以下命令成功擦除了整个闪存和闪存引导加载程序.out 文件。
# Erasing the entire flash memory
try:
subprocess.run(
[
dslite_path,
"--config",
ccxml_path,
"-a",
"Erase",
],
check=True,
)
messagebox.showinfo("Info", "Entire flash memory erased successfully!")
except subprocess.CalledProcessError as e:
messagebox.showerror("Error", f"Failed to erase flash memory: {e}")
return# Flashing the bootloader
try:
subprocess.run(
[
dslite_path,
"--config",
ccxml_path,
"--flash",
bootloader_path,
],
check=True,
)
messagebox.showinfo("Info", "Bootloader flashed successfully!")
except subprocess.CalledProcessError as e:
messagebox.showerror("Error", f"Failed to flash bootloader: {e}")
return对于应用、我有一个.srec 格式的图像。
我可以在 uni-flash 中执行此操作。
但是、dslite 无法正常工作。
但是、当我像引导加载程序那样刷写 srec 文件时、
它擦除整个闪存、然后刷写 srec 文件。 我还尝试了-模式加载选项,但没有改变。
能不能在这个问题上为我提供帮助吗?
