• Flashing STM32L0

    I have made a custom board for STM32L072CZ by ST. I am flashing it using STM32Cube Programmer via UART. When I flash it, I get the application running(say blinking LED) for the first time and as soon as I reset it, the application stops running. I checked…

  • Dynamic memory allocation and UART

    Former Member
    Former Member

    Hi friends, I came across a problem with my UART communication.My codes are below.

    if I use

    rx_buffer = (uint8_t*)calloc(3,sizeof(uint8_t));
    HAL_UART_Receive_IT(&huart1,&rx_data,1);  and rx_buffer = (uint8_t*)realloc(rx_buffer,sizeof(uint8_t));

    program…