Casting / Pointers creating immense grief???
I have the array of character strings that I am trying to printout to Real Term using a Nucleo -F072. The code compiles with no warnings or errors, yet every time I run this it jumps into the HardFault_Handler....Can someone please tell me what am I doing incorrectly??? My lack of knowledge on pointers and casting is somehow the cause.......
char t[][4] = {"1234", "3455", "1121", "0032", "0621"};
for (k = 0; k < NO_ADC_CH; k++)
{
//test = hex2Ascii(stream + k);
HAL_UART_Transmit_IT(&huart2, (uint8_t*)(&test[k]), sizeof(test[k]));
//HAL_Delay(1);
while(!ISR.UART_TxComplete);
ISR.UART_TxComplete = F;
}
void HAL_UART_TxCpltCallback(UART_HandleTypeDef *huart)
{
ISR.UART_TxComplete = T;
}