Other Parts Discussed in Thread: ADS7844
Hi,
I am learning about writing and reading data to/from SPI Flash using the EVM board from LogicPD, with a C6748 SOM. I am using a tutorial example - spiSample_io.c from TI.
I would like to know how those macros definitions such as SPI_CHIPSELECT_SPIFLASH, SPI_FLASH_ADDR_MSB1, etc. that defines the flash addresses, and the SPI Flash opcodes work. I don't find any information how the definitions were derived, e.g. why SPI_FLASH_SECTOR_ERASE is defined as 0xD8? What I see is that this are all nicely setup and passed to the GIO_write() via the dataparam structure.
Could you lead me to some relevant documents to this tutorial? Or you could explain to me here in the forum. Really appreciate it. This exercise is very important as I have a project that requires me to perform data logging onto a SPI Flash.
Thank you and best regards.
Chee-Beng