JTAG指令寄存器长度,IR_LEN
JTAG instruction register length, IR_LEN
我需要为 JTAGenum Jtag 枚举实用程序指定用户配置设置。
特别是在这部分
// Target specific, check your documentation or guess
#define SCAN_LEN 1890 // used for IR enum. bigger the better
#define IR_LEN 5
// IR registers must be IR_LEN wide:
#define IR_IDCODE "01100" // always 011
#define IR_SAMPLE "10100" // always 101
#define IR_PRELOAD IR_SAMPLE
在用户manual中注意到IR_LEN定义了JTAG指令寄存器的长度。 "If you change this you should also add ‘0’s to each of the corresponding IR_** instruction definitions."
目标 CPU 的 JTAG 指令寄存器 (IR) 长度为 4 位。
所以我设置 IR_LEN = 4.
不清楚我是否还应该更改 #define IR_IDCODE
和 #define IR_PRELOAD
值,以及应该在何处添加提到的“‘0’到每个相应的 IR_** 指令定义。”
您的起始点的寄存器长度为 5,并显示五位代码。
根据您引用的说明,似乎在为具有 4 位寄存器的设备调整此代码时,您应该 将这些代码缩短 为四位,方法是删除每个最终零。
即
#define IR_LEN 4
// IR registers must be IR_LEN wide:
#define IR_IDCODE "0110" // always 011
#define IR_SAMPLE "1010" // always 101
我需要为 JTAGenum Jtag 枚举实用程序指定用户配置设置。 特别是在这部分
// Target specific, check your documentation or guess
#define SCAN_LEN 1890 // used for IR enum. bigger the better
#define IR_LEN 5
// IR registers must be IR_LEN wide:
#define IR_IDCODE "01100" // always 011
#define IR_SAMPLE "10100" // always 101
#define IR_PRELOAD IR_SAMPLE
在用户manual中注意到IR_LEN定义了JTAG指令寄存器的长度。 "If you change this you should also add ‘0’s to each of the corresponding IR_** instruction definitions."
目标 CPU 的 JTAG 指令寄存器 (IR) 长度为 4 位。 所以我设置 IR_LEN = 4.
不清楚我是否还应该更改 #define IR_IDCODE
和 #define IR_PRELOAD
值,以及应该在何处添加提到的“‘0’到每个相应的 IR_** 指令定义。”
您的起始点的寄存器长度为 5,并显示五位代码。
根据您引用的说明,似乎在为具有 4 位寄存器的设备调整此代码时,您应该 将这些代码缩短 为四位,方法是删除每个最终零。
即
#define IR_LEN 4
// IR registers must be IR_LEN wide:
#define IR_IDCODE "0110" // always 011
#define IR_SAMPLE "1010" // always 101