Please help to check the setting is right? I neet a MC56F84786 DMA uart demo,here is my pe setting:
in main.c,add the send code as below:
/* Write your local variable definition here */
unsigned char test_data[26] = "abcdefghijklmnopqrstuvwxyz";
unsigned char *pointer;
pointer = &test_data[0];
/*** Processor Expert internal initialization. DON'T REMOVE THIS CODE!!! ***/
PE_low_level_init();
/*** End of Processor Expert internal initialization. ***/
/* Write your code here */
AS1_Init();
AS1_SendBlock(pointer,26,0);
But it seems not work,can not receive any character in putty terminal,Does NXP have an official UART DMA Demo or application notes?
Solved! Go to Solution.
Hi,
The Sendblock() function just copies the array you want to transfer to a buffer, then use the interrupt mode to transfer the data.
char array[10]={'a','b'.....}
uint16_t number;
while(number!=10)
{
AM1_SendBlock(&array[0],10,&number)
}
Pls have a try
BR
XiangJun Rong
Dear,Rong:
Thanks for you quick reply,the demo works well ,but how to generate the sendblock api?
When i enable tx and rx dma channel ,the sendblock api is aviable but can not work ,anyother setting
need to set?
Hi,
The Sendblock() function just copies the array you want to transfer to a buffer, then use the interrupt mode to transfer the data.
char array[10]={'a','b'.....}
uint16_t number;
while(number!=10)
{
AM1_SendBlock(&array[0],10,&number)
}
Pls have a try
BR
XiangJun Rong