Part Number: DK-TM4C129X
Tool/software: TI-RTOS
Is there a reason I can't transmit SPI using TIVAuDMA from ROM? Whenever I call SPI_transfer with a ROM pointer for the transmit message, I get a crash and an error.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: DK-TM4C129X
Tool/software: TI-RTOS
Is there a reason I can't transmit SPI using TIVAuDMA from ROM? Whenever I call SPI_transfer with a ROM pointer for the transmit message, I get a crash and an error.
David,
The DK-TM4C129X requires that the flash be enabled for DMA read. Try adding this code:
// // Set up Flash Access for DMA // HWREG(FLASH_PP) |= FLASH_PP_DFA; HWREG(FLASH_DMASZ) = 0x4000; HWREG(FLASH_DMAST) = 0x0;