最近在调试JTAG,通过对ATOM的GPIO 操作,把ATOM的GPIO口模拟成JTAG信号,然后把CPLD的firmware,从ATOM平台烧进CPLD中。
这里主要是使用了Altera的 STAPL工具, 叫jamplayer, 这是一个开源的工具,再source下,直接make就能生成jamplayer工具。
还需要在quartusII中把xxx.pof 格式的CPLD firmware转换成xxx.jam格式。jam文件才能被jamplayer操作。
主要的使用命令如下:
jamplayer [option] file
jamplayer -acheck_idcode xxx.jam //check the CPLD id and jam file id, if the same tell the id number and return success
jamplayer -averify xxx.jam //compare the cpld contents and the file contents, if the same, return success.
jamplayer -aprogram xxx.jam // flash the firmware, it will erase first, then program, then verify.
jamplayer -aerase xxx.jam //it will erase CPLD firmware
jamplayer -ablankcheck xxx.jam //check if it's blank.return succeed if it's blank.
option 还可以有很多, 如:
-d
-ddo_bypass_ufm=1 //不对ufm进行操作
-ddo_bypass_cfm

本文介绍了通过ATOM的GPIO模拟JTAG信号,使用Altera的开源工具jamplayer对CPLD maxII进行编程的方法。涉及到的主要步骤包括将CPLD firmware转换为jam格式,理解JTAG的TMS、TCK、TDI和TDO信号,以及JTAG状态机的工作原理。文中还提到了JTAG协议中的DR和IR寄存器操作流程,并给出了运行jamplayer的脚本示例。
最低0.47元/天 解锁文章
1万+

被折叠的 条评论
为什么被折叠?



