AN 955: Programmer’s Configuration Debugger Tool

ID 691274
Date 4/01/2024
Public
Document Table of Contents

2.10.2. Command Options for Sending SDM Mailbox Command

Table 8.  New Command Options for Sending SDM Mailbox Command
Options Type Description
cmd_code Required Option to specify the SDM mailbox command code. The input value is an 11-bit command code. The tool formats the code into a valid header.
cmd_param Optional Option to specify the SDM mailbox command parameters. The input value can be a single word or a list of words.

Example 1. Sending an NOOP [0x0] Command

Command:
quartus_pgm -c 2 -m jtag --cmd_code=0x0
Example of response returned:
Command:
       00001000
Response:
       00000000

Example 2. Sending a CONFIG_STATUS [0x4] Command

Command:

quartus_pgm -c 2 -m jtag --cmd_code=0x4

Example of response returned:

Command:
       00001004
Response:
       00006000
       00000000
       00150300
       C000000F
       0000000B
       00000000
       00000000

Example 3. Sending a QSPI Command

i. Executing QSPI_OPEN command (0x32):

quartus_pgm -c 2 -m jtag --cmd_code=0x32 

Example of response returned:

Command:
        00001032
Response:
        00000000

ii. Executing QSPI_SET_CS command (0x34) with 1 command parameter:

quartus_pgm -c 2 -m jtag --cmd_code=0x34 –cmd_param=”0x0” 

Example of response returned:

Command:
        00003034
        00000000
Response:
        00000000

iii. Executing QSPI_READ command (0x3A) with 2 command parameters:

quartus_pgm -c 2 -m jtag --cmd_code=0x3A –cmd_param=”0x0 0x5” 

Example of response returned:

Command:
        0000303A
        00000000
        00000005
Response:
        00005000
        62294895
        00000030
        00000400
        00000000
        00000000

iv. Executing QSPI_CLOSE command (0x33):

quartus_pgm -c 2 -m jtag --cmd_code=0x33

Example of response returned:

Command:
        00001033
Response:
        00000000