Q24plus spi no clock?


#1

spi subscribe:
spi_hdl=adl_busSubscribe(
ADL_BUS_TYPE_SPI|ADL_BUS_SPI_ADDR_CS_NONE,
ADL_BUS_SPI_SCL_SPEED_812Khz|ADL_BUS_SPI_CLK_MODE_0|ADL_BUS_SPI_CS_POL_HIGH|ADL_BUS_SPI_MSB_FIRST
);
struct:
adl_busAccess_t sBusAccess;

////
sBusAccess.Opcode=0x9f;
sBusAccess.OpcodeLength=8;

write:
//SPI write
s8 SPI_WRITE(u8 *Data,u32 Len){
s8 ret;

SPI_DATA_WRITE();
SPI_CS_LOW();
ret = adl_busWrite(spi_hdl,&sBusAccess,Len,Data);

SPI_CS_HIGH();
Debug_Printf("SPI_WRITE %d\r\n",ret);
return ret;

}

/////
spi_write=SPI_WRITE(0x9F,1);

no clock ,why?


#2

Have you solved this? What versions of the Firmware and of OpenAT are you using?


#3

Hi Jan,
Same problem I am facing :frowning:
Please give me any solution if you have…
Thanks,
Darshan