AnsweredAssumed Answered

Hard fault when recieving uart RX interrupt

Question asked by okle__en.nejc on May 21, 2016
Latest reply on May 21, 2016 by Clive One
Hello.

As my title says, i keep getting hard fault when i get interrupt.

Now when debugging, i see that interrupt happend, i get into the function to recieve rx content ( UART_Receive_IT ) but when i come to line :

    else
    {
      *huart->pRxBuffPtr++ = (uint8_t)(huart->Instance->RDR & (uint8_t)uhMask); 
    }

i get a hard fault. 

I implemented uart example for my nucleo-l073rz to my existing project (also using HAL drivers) which uses RTOS.

Best regards,
Nejc

Outcomes