lukegluke opened a new issue #1598:
URL: https://github.com/apache/incubator-nuttx/issues/1598


   stm32f7/stm32_uart.h miss defining of SERIAL_HAVE_CONSOLE_DMA as it is done 
in general stm32:
   
https://github.com/apache/incubator-nuttx/blob/85428036abfe5d2e8fc9caec8b573dc2dafed7ac/arch/arm/src/stm32/stm32_uart.h#L338-L357
   
   This can leads to hardfault when trying to write with not yet initialized 
serial dma in case when serial is used for console and something try to write 
to console on boot (for example board_hardfault_init in px4 can write to syslog 
(and to console if CONFIG_SYSLOG_CONSOLE defined), just for your note @davids5 
if it is important). 
   
   I could done a PR, but I wonder with several things:
   1) Why CONFIG_USARTx_TXDMA are not listed in [configuration 
variables](https://cwiki.apache.org/confluence/display/NUTTX/Configuration+Variables)?
   2) Can TXDMA be used without RXDMA? Because now TXDMA checks are performed 
inside SERIAL_HAVE_RXDMA
   
https://github.com/apache/incubator-nuttx/blob/85428036abfe5d2e8fc9caec8b573dc2dafed7ac/arch/arm/src/stm32f7/stm32_serial.c#L89
   3) Why stm32/stm32_uart.h checks only **RX** DMA to define 
SERIAL_HAVE_CONSOLE_DMA?
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to