This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x UART FIFO RESET command?

Hi all!

Is it true I do reset FIFO: 

HWREGH(0x48024008)|=0x2;

?

  • Vladimir,

    Are you referring to RX_FIFO_CLEAR bit 1 in the FCR register? Setting it to 1 clears the RX_FIFO. Did you try it?

    Lali
  • Lalindra,


     Problem solved!
    Writing to the register needed to do through the operation "=" no "| ="
    As a result of the operation, "read - modify - write", reads the value of the register IIR, as written down in the register FCR.

    Сorrect variant:

           1.  fcrRegValue=UART_FCR_PROGRAM(rxTrigLevel, txTrigSpace, UART_DMA_MODE_1_ENABLE, 0, 1, 1);
            2. HWREG(hwAttrs->baseAddr + UART_FCR) = fcrRegValue;

    The technical documentation is information:

    Regards,