Tool/software: TI C/C++ Compiler
hi
According to manufactorer of spi flash
Read Manufacturer / Device ID (90h)
The instruction is initiated by driving the /CS pin low and shifting the instruction code “90h” followed by a 24-bit address (A23-A0) of 000000h. After which, the Manufacturer ID for Winbond (EFh) and the Device ID are shifted out on the falling edge of CLK with most significant bit (MSB) first as shown in Figure 39. The Device ID values for the W25Q64JV are listed in Manufacturer and Device Identification table. The instruction is completed by driving /CS high.
Basically how I can execute this sequence using SPI_transfer(*spihandle, &masterTransaction)
I do transaction count = 4
First byte of write_buffer[0] = 0x90;
My read_buffer and write buffer is 64 bytes and all initaized as 0.
According to flash manufacture I should get back 2 bytes.
How I can write 4 bytes but read only 2?
According to manufacture spec I should get 1st bytes 0xEF ,
If I d just SPI_transfer for 4 bytes count and {0x90,0,0,0,0 };
what is coming back is all 0.
If I am tring to do second spi_trancefer for expected 2 bytes my system crashes in second spi transfer
How I can execute this command on spi bus using spi transfer api call.
thanks.