Hi,
In my project P0_2 MISO and p0_3 MOSI is used for spi, then I assigned dma channel 3 and 4 for tx and rx. (DMA has 5 channels total, 0 is for flash).
HAL_UART_SPI=1, It runs OK.
Then, I want to install uart. P1_7 for RX P1_6 for TX.
I used HAL_UART_ISR=2, I find a data corruption and loss. (no power saving mode, no division of the clock.)
Since, DMA channel 3 and 4 is already used for SPI, Is that possible that I assign Channel 1 and 2 to UART. And both DMA run the same time?
Or any other way to solve the data corruption and loss?
My configuration:
NT_HEAP_LEN=2072
HAL_LCD=FALSE
HAL_LED=FALSE
HAL_DMA=TRUE
CC2540_MINIDK
HAL_UART=TRUE
DMA_ENABLE=TRUE
HAL_UART_DMA=2
xHAL_UART_ISR=0
HAL_UART_SPI=1
xPOWER_SAVING
//HCI_EXT_ClkDivOnHaltCmd( HCI_EXT_ENABLE_CLK_DIVIDE_ON_HALT );
Thanks.