I'm reasonably confident in getting DMA to the SPI buffer, but am struggling for how to actually read and write to the external SPI flash. The information I've been going off of so far is this Microchip example code for SPI DMA transfer: This is working OK as far as transmitting data TO the SPI buffer, but my receive interrupt never gets triggered. I was hoping to use DMA so that could handle the reading/writing and the CPU could continue with the control loops. However, I can't deal with the slow write times because I have a variety of control loops that must not be delayed. The motivation is that I want to eliminate an EEPROM chip and write all of my stored data to external flash. I am looking for some advice trying to implement DMA to transfer data between a PIC32MX and an external SPI Flash. Using DMA with external SPI Flash (Winbond W25Q16DV) (PIC32MX757F512L)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |