Part Number: J721S2XSOMXEVM
How we can unlock the JTAG on HS-SE devices using TISCI api mentioned in the secure debug document ?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: J721S2XSOMXEVM
How we can unlock the JTAG on HS-SE devices using TISCI api mentioned in the secure debug document ?
Please follow the below steps to unlock the JTAG using TISCI_MSG_OPEN_DEBUG_FWLS tisci API.

[ req ]
distinguished_name = req_distinguished_name
x509_extensions = v3_ca
prompt = no
dirstring_type = nobmp
[ req_distinguished_name ]
C = US
ST = SC
L = Dallas
O = Texas Instruments., Inc.
OU = PBU
CN = Albert
emailAddress = Albert@ti.com
[ v3_ca ]
basicConstraints = CA:true
1.3.6.1.4.1.294.1.3=ASN1:SEQUENCE:swrv
1.3.6.1.4.1.294.1.8=ASN1:SEQUENCE:debug
[ swrv ]
swrv = INTEGER:0
[ debug ]
debugUID = FORMAT:HEX,OCT:0000
debugType = INTEGER:5
coreDbgEn = INTEGER:0x010206070809
coreDbgSecEn = INTEGER:0x202180 
138 int32_t Sciclient_firewallDebugOpen(
139 const struct tisci_msg_open_debug_fwls_req *req,
140 struct tisci_msg_open_debug_fwls_resp *resp,
141 uint32_t timeout)
142 {
143 int32_t r;
144 Sciclient_ReqPrm_t sciReq = {0};
145 sciReq.messageType = TISCI_MSG_OPEN_DEBUG_FWLS;
146 sciReq.flags = TISCI_MSG_FLAG_AOP;
147 sciReq.pReqPayload = (const uint8_t *) req;
148 sciReq.reqPayloadSize = (uint32_t) sizeof(*req);
149 sciReq.timeout = timeout;
150
151 Sciclient_RespPrm_t sciResp = {0};
152 sciResp.flags = 0;
153 sciResp.pRespPayload = (uint8_t *) resp;
154 sciResp.respPayloadSize = (uint32_t) sizeof(*resp);
155
156
157 r = Sciclient_service(&sciReq, &sciResp);
158 if ((r != CSL_PASS) ||
159 ((sciResp.flags & TISCI_MSG_FLAG_ACK) != TISCI_MSG_FLAG_ACK)) {
160 r = CSL_EFAIL;
161 }
162
163 return r;
164 }
165 
cd <RTOS_SDK>/<pdk>/packages/ti/build make sciclient_boardcfg_hs BOARD=j721s2_evm CORE=mcu1_0 make pdk_libs BOARD=j721s2_evm CORE=mcu1_0 make sbl_mmcsd_img_hs BOARD=j721s2_evm CORE=mcu1_0
NOTE: Please remove the debug extension from the SBL/SPL bootlader certificate if you want to unlock the JTAG using TIFS service.