User Activity

I am trying to write data into 16GB micro SD card(ADATA Premier microSDHC UHSI class10). initialization is O.K.I am using an HAL_SPI_Transmit(&hspi1,wr_buf,6,100) commandProgram is as follows:             #define CMD24    (0x40+24)    /* WRITE_BLOCK ...
I am using STM32 Cube MX to generate 32L443RCTx code.In function HAL_I2C_Master_Transmit always returns != HAL_OKAny ideas why?