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.

UART ezdsp c5535

Hi,

I´m trying to implement uart functionality on my ezdsp 5535, and I have some problems getting consistent results. I had the  CSL_UART_dmaExample up and running two times via j2.

But the majority of the times I try to run this example the code stops after "UART_init Successful".

If I halt the code in this state, it always stops on the following line:

	/* Write 0 to DLAB to access IER*/
-> CSL_FINST(hUart->uartRegs->LCR, UART_LCR_DLAB, DLABON);

I have pin2 on sw3 set on to enable UART via j2.

Any ideas what can be the cause of this problem?

Best regards
Marcus
  • Hi,

    Can you recheck of SW3 pin2 position? I check my board and don't see any issue.

    Regards,

    Hyun

  • Hi,

    the problem was that I had flashed the audioFramework on to the SPI flash. When I connected j2 I had to "Connect Target" int ccs before the four leds (gpio 14-17) was turned off, or disable booting from SPI with sw3 pin 4.

    However, now I have a new problem. Since I want to implement UART in the audio framework. But when I run the audio framework the gpio LEDs are not lit and this seems to be connected to UART functionality. Especially gpio15 from what I understand, based upon reading the Technical Reference for ezdsp c5535.

    When I run the UART example code the orange LED (gpio 15), turns on and off if I switch pin 2 on sw3. I´m not sure how to enable this functionality for gpio15. If I code the LED to shine it shines even if I switch pin2 on sw3.

    Best regards

    Marcus