Other Parts Discussed in Thread: IWR6843, AWR1243, , AWR2243
Hi,
I'm trying to download an image to my mmWave IWR6843 board via SPI.
I've read the Bootloader Flow document, but it is short on the detail I need to implement an application to download an image.
For example, I believe the command sequence should be:
1. Wait for device ready (single GPIO line)
2. Send OPEN command (with StorageType=4, FileType=4)
3. Send WRITE TO RAM command for an image chunk
4. Poll for an ACK response
5. Repeat steps 3 & 4 until all data chunks have been sent
6. Send GET STATUS command
7. Poll for Status response
8. Send CLOSE command (with StorageType=4)
Assuming the above steps are correct, my question is this:
1. How do I poll for an ACK response over SPI when clock pulses are sent in bursts of 16-bit SPI transactions (ie. bounded by Chip Select assert and de-assert), when an ACK Response comprises a 16-bit, an 8-bit, and a 16-bit element (in that order)? Do I need to wait for a certain period of time before polling for an ACK response, or do I keep sending clock pulses until I receive the byte sequence 00, 04, 0C, 00, CC?
2. Similarly, how do I poll for a STATUS response?
3. If there is an ACK response, then is there also a NAK response in the event of failure? If so, where is this detailed?
4. Do I need to poll for an ACK response after the OPEN command?
Usually for a SPI Slave device, when the Chip Select is de-asserted it signifies that a transaction is complete. However for this device it doesn't appear to be so.
Is there any other significant information that I need in order to get this to work? If so, would you point me at it please?