Power_On_Self_Test

Hi, 

I am not able to run the SPI flash test for the "Power_On_Self_Test" BF706.

static int adi_spi_bf6xx_recv_until (int (*condition)(const uint8_t))
{
uint8_t data;

*pREG_SPI_RXCTL = ENUM_SPI_RXCTL_RX_EN | ENUM_SPI_RXCTL_RTI_EN;

do
{
while (*pREG_SPI_STAT & BITM_SPI_STAT_RFE)
;
data = *pREG_SPI_RFIFO;
}
while (!condition(data));

*pREG_SPI_RXCTL = 0;

return 0;
}

The value for the data is 255 (while (!condition(data));) and therefore it is running inside the loop for ever. Any idea? 

Thanks

  • 0
    •  Analog Employees 
    on Mar 6, 2020 2:12 PM

    Hello,

    We have tested the"Power_On_Self_Test" code on ADSP-BF706 Ez-Kit MINI and it is working fine.

    1) Are you working with Ez-Kit MINI? If no, what is the flash part are you working with?  If you are using the different flash part then Ez-Kit MINI, please note that you have to edit the code corresponding to your flash part.
    2) Please let us know the steps you are following to test this? We recommend you to refer the 'Readme' note in the Power_On_Self_Test project file.

    Regards,
    Anand.S