Hi All,
I am trying to use the memcpy() function to copy RXed data over UART to SRAM for the Stellaris LM4F120 board. I keep getting the error "uart_echo.c(100): error: #167: argument of type "int" is incompatible with parameter of type "void *restrict" and "uart_echo.c(96): error: #29: expected an expression".
I am using the uart_echo.c code from Stellarisware and added the following lines:
char mycharacter[];
while(ROM_UARTCharGetNonBlocking(UART0_BASE))
{
mycharacter = ROM_UARTCharGetNonBlocking(UART0_BASE);
memcpy(SRAM_BASE, mycharacter, sizeof(char)*8); // I am now trying to copy the first 16 bytes only
}
Please let me know what the issue is. Keep getting errors like "uart_echo.c(99): error: #167: argument of type "int" is incompatible with parameter of type "void *restrict" and "uart_echo.c(98): error: #513: a value of type "long" cannot be assigned to an entity of type "void *"
Thanks!
BR,
\Kashif