- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I need to send 256 bytes, with a 4 bytes header, for a total of 260 bytes via SPI master.
Everything works fine with TX/RX buffers set to 16bytes, and a 16 bytes data buffer.
No matter what I do, when I increase the size of the data buffer, or the TX/RX buffers, or both, if stalls on the receive buffer full, I cannot find an example with a buffer larger than 8 or data buffer larger than 8, can someone help me understand what I am missing?
I know it is interrupt related, but I cannot figure out what to handle to make this work?
H
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @HeGi_2497906,
- Which device or kit are you using?
- Are both the master and the slave in the same kit, or are you using two different kits?
Regards,
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am using a CYBLE-012011 on a custom pcb, using SPI to access a MX253235F Macronix serial flash device. I have to rewrite the flash from a BLE down load of data, one page is 256Bytes.
I can see the 260Bytes going out the MOSI line (header+page of data), but the function locks up on checking the receive buffer, never leaves that function, so the buffer is not managed properly to complete the transaction. I just need to know what I need to do to get it to complete the transaction?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @HeGi_2497906,
Please, refer to the thread "PSOC6 DMA block selection for SPI " and the response from HARI as follows:
Thank you
Best Regards
Raj Chaudhari
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
RaJ, That link is for PSoC6, I am using PSoC4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @HeGi_2497906,
You can refer to the above example and implement it in the PSoC 4. Implement a ping-pong descriptor that transmits the required data.
Thank you
Best Regards
Raj Chaudhari