• 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…

  • Frame width of PL022 PrimeCell SPI controller

    Hi all,

    I'm trying to make ARM SPI controller PL022 work with Maxim MAX5134, which can be found here:

    http://datasheets.maximintegrated.com/en/ds/MAX5134-MAX5137.pdf

    PL022 support 16 bits width frame, while MAX5134 demand 24 bits.

    From Max5134 datasheet…