Other Parts Discussed in Thread: MSP-GANG, , MSP430FR5739
For this device the verify with CRC is possible? Or is not supported?
Thanks
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.
For this device the verify with CRC is possible? Or is not supported?
Thanks
Thanks for support. In linked pdf the "verify_PSA" is in Flash memory chapter, not in FRAM. Is also available for FRAM device? It's not clear for me.
Thanks.
Maybe, if it's possible, can you send me the entire oscilloscope frame for the Verify_PSA procedure? So I can try to check and replicate it to my tool.
Thanks. Best regards
Enrico
//This is my code. If you need more information ask to me. Command as "JTAG_WRITE_INSTR_REG","JTAG_SET_TCLK",... are for our FPGA, so it's packed data.
UINT16 read_data,progr_data,error_code;
UINT16 pulse_ena = PULSE_ON;
PSA_CRC = (UINT16)(start_addr-2);
if(MSP430Xv2_EXECUTE_POR()!=RET_OK) //function that execute a Power On Reset
if(MSP430Xv2_SET_PC(start_addr)!=RET_OK)
if(JTAG_SET_TCLK()!=RET_OK)
if(JTAG_WRITE_INSTR_REG(IR_CNTRL_SIG_16BIT,NULL,PULSE_OFF)!=RET_OK)
if(JTAG_WRITE16_DATA_REG(0x0501,NULL,PULSE_OFF)!=RET_OK)
if(JTAG_WRITE_INSTR_REG(IR_DATA_16BIT,NULL,PULSE_OFF)!=RET_OK)
if(JTAG_WRITE16_DATA_REG((UINT16)(start_addr-2),NULL,PULSE_OFF)!=RET_OK)
if(JTAG_WRITE_INSTR_REG(IR_DATA_PSA,NULL,PULSE_OFF)!=RET_OK)
while(word_length) //while loop that send data word
{
word_length--;
if(!word_length) // last reading cycle
{
pulse_ena=PULSE_OFF;
}
if(JTAG_SEND_PSA_CONF(pulse_ena)!=RET_OK) //set the lines as TI code. Command for our FPGA
error_code=OS_DAT_read(&progr_buffer[0],2);
if(error_code!=RET_OK)
{
if(error_code==FAT_EOF) // End of Source File
{
progr_data=0xFFFF;
}
}
else{
progr_data= (UINT16)progr_buffer[0]|(((UINT16)progr_buffer[1])<<8);
}
// Calculate PSA CRC
MSP430_CALCULATE_PSA_CRC(progr_data); //this calculate the PSA value with TI polinomy
if(JTAG_CLEAR_TCLK()!=RET_OK)
if(JTAG_SET_TCLK()!=RET_OK)
}
if(JTAG_WRITE_INSTR_REG(IR_SHIFT_OUT_PSA,NULL,PULSE_OFF)!=RET_OK)
}
// Read out the PSA value
if(JTAG_WRITE16_DATA_REG(0x0000,&read_data,PULSE_OFF)!=RET_OK)
if(MSP430Xv2_EXECUTE_POR()!=RET_OK)
if(read_data != PSA_CRC) //check the read PSA with the calculated one
return(RET_OK); //end
}
The MSP430FR5859 is a large memory model device with 20-bit addressing and MSP430Xv2 architecture and instructions.
Regards,
Ryan
I captured logic data of the MSP432 SBW replicator firmware from SLAA754 using a Saleae Analyzer and Logic v1.2, it's attached for your review. MSP432_SBW.logicdata
Regards, Ryan
Attached is a screenshot of the entire first VerifyPSA_4320Xv2 function. VerifyPSA_430Xv2.logicdata
Regards, Ryan
**Attention** This is a public forum