#350 STM32 UART driver redundant initialization

closed-fixed
2014-05-09
2012-12-05
Gereon
No

While using an STM32F4, I found a bug when calling uartStart mutiple times:
Everytime uartStart is called the dmaMode is reset to (STM32_DMA_CR_DMEIE | STM32_DMA_CR_TEIE)
void uart_lld_start(UARTDriver *uartp) {
432
433 uartp->dmamode = STM32_DMA_CR_DMEIE | STM32_DMA_CR_TEIE;
434
435 if (uartp->state == UART_STOP) {
..... ....
436 }

Discussion

  • Giovanni Di Sirio

    • labels: --> STM32 drivers
    • milestone: --> 2.4.0
    • priority: 5 --> 3
    • assigned_to: nobody --> gdisirio
    • status: open --> open-later
     
  • Giovanni Di Sirio

    • status: open-later --> open-accepted
     
  • Giovanni Di Sirio

    Will be fixed in 2.4.3stable and 2.5.1ubstable, fixed on repository.

     
  • Giovanni Di Sirio

    • status: open-accepted --> open-fixed
     
  • Giovanni Di Sirio

    • summary: UART STM32F4 Bug --> STM32 UART driver redundant initialization
     
  • Giovanni Di Sirio

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.