AnsweredAssumed Answered

AD9371 ARM load problem

Question asked by currykobe on Jul 11, 2018
Latest reply on Jul 18, 2018 by gverma

I use ZC706+AD9371Evaluation board,A problem found when SDK run headless() function.

if (pllLockStatus & 0x01)
{
if ((mykError = MYKONOS_initArm(&mykDevice)) != MYKONOS_ERR_OK)
{
/*** < Info: errorString will contain log error string in order to debug failure > ***/
errorString = getMykonosErrorMessage(mykError);
}

/*** < Action: User must load ARM binary byte array into variable binary[98304] before calling next command > ***/
if ((mykError = MYKONOS_loadArmFromBinary(&mykDevice, &binary[0], count)) != MYKONOS_ERR_OK)
{
/*** < Info: errorString will contain log error string in order to debug why
* ARM did not load properly - check binary and device settings > ***/
/*** < Action: User code > ***/
errorString = getMykonosErrorMessage(mykError);
}

}

 

when I run MYKONOS_loadArmFromBinary() , the PLLLOCKSTATUS is 0x01 and MYKONOS_initArm() also succeed. But MYKONOS_loadArmFromBinary() run failed. The value(calculatedChecksum) in function(MYKONOS_verifyArmChecksum()) is always 0x00.

I found the MYKONOS_loadArmFromBinary() is also have problem. The founction is write reg 0xD04, 0xD05, 0xD06, 0xD07, 0xD04, 0xD050xD06, 0xD07 .....etc.But i read these regs, it is all 0x00.

E.g.:I write 0x90 to 0xd04, when write done, i read 0xd04 Immediately. The value is 0x00.

I wonder how to load the file to arm in AD9371.

The bin file "Mykonos_M3.bin" is found in C:\Program Files (x86)\Analog Devices\AD9371 Transceiver Evaluation Software\Resources

The SPI write function and SPI read function is verified by others regs.E.g.:I write 0x10 to 0x028, when write done, i read 0x028 Immediately. The value is 0x10. 

 

Best Regards. 

Thanks! 

Outcomes