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.

CSL UART example (CSL_UART_IntExample) on eZdsp5535



Hi,

I was able to run the UART interrupt-based example from CSL (CSL_UART_IntExample). Everything works fine on the given example.

Now, for my project, I need the parallel port Mode 1 on the EBSR register.

The given example works on Mode 5.

I edited the "csl_uart.c" file (from the cslVC5505 library), the "UART_init()" function and I replaced the following line:

CSL_FINST(uartObj->sysAddr->EBSR,SYS_EBSR_PPMODE,MODE5);

with:

CSL_FINST(uartObj->sysAddr->EBSR,SYS_EBSR_PPMODE,MODE1);

I've recompiled the cslVC5505 library and the CSL_UART_IntExample and run again the example. I was expecting to get the same output on the serial terminal application but I got no character. I also tried to push some keys but with no result. I paused the code and the UART registers, IER and the related seemed to be fine. However, no interrupt was triggered.

Changing back the line into "csl_uart.c" to use Mode 5, gave me back the working example.

Is there anything extra I need to do in order to have the UART working in Mode 1?

Thanks!

Bogdan

  • A last minute information.

    I tried to change the above mentioned line to another mode supposed to support the UART multiplexing.

    CSL_FINST(uartObj->sysAddr->EBSR,SYS_EBSR_PPMODE,MODE4);

    I was able to run the example and see the expected UART data in the terminal window.

    So, the fact that UART doesn't work only in Mode 1 makes me think that it can be either a datasheet error or some HW issue with the DSP on my board.

    Can someone confirm these findings?

    Thanks,

    Bogdan

  • I have the exact same problem, trying to implement UART in the audio framework using MODE1. I have no solution so far unfortunately.

    Best regards

    Marcus

  • Thanks for sharing this info, Marcus!

    And seeing your message I realize more and more this might really be some HW issue.

    Thanks again!

  • Hi again,

    I got my UART up and running!

    For me at least the problem was that in mode1 gpio15 was turned off (the orange led on ezdsp5535), since in mode 4 and 5 this pin is not enabled as gpio it automatically was turned on there. Gpio15 is required to be turned on in combination with pin2 on sw3 for UART to be enabled via the j2 USB. So when I turned on gpio15 UART started working for me.

    Hope this helps!

    Best regards

    Marcus

  • Great news!

    Thanks a lot, Marcus!

    I will try it sometime this week.

    Cheers,

    Bogdan

  • Hi,

    I want to run the  same example (INTERRUPT MODE TEST) but it says in the documentation that I need  RS232 cable to conect with my computer.

    Can you tell me what model of cable did you use?

    Thank you!

    Diana

  • Hi Diana,

    Are you using the eZdsp5535 board? If yes, then you don't need a cable since the DSP's UART pins are tied to the Tx/Rx pins of the FTDI chip. The FTDI is used as an USB-JTAG debugger and also it's 2nd interface as an USB-UART adapter.

    So, if you put all the required FTDI driver you should have a COM port being shown in Device Manager. All you need to do is open a terminal application, setup the serial communication parameters and run the UART example on the DSP. You should see some characters being displayed in the terminal window.

    Hope that helps

    Good luck!

    Bogdan

  • Hi Bogdan,

    Thank you for your quicky response. I am using eZdspC5535 and I tried the UART polled example.I did what you said. But at the  UART_setup function I have these errors at every register instruction. 

    C55xx: Can't Single Step Target Program: (Error -2130 @ 0x400) Unable to access device memory. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Release 5.0.429.0) 

    C55xx: Trouble Reading PC Register: (Error -1143 @ 0x0) Device memory bus has an error and may be hung. Verify that the memory address is in valid memory. If error persists, confirm configuration, power-cycle board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Release 5.0.429.0).

    Then the program blocks.

    I use Termite as terminal aplication  and the COM port is  USB Serial Port.

    Do you have any idea?

    Thank you!

  • Hi Diana,

    Is your above problem solved..? If yes, how..?

    I'm also facing the same issue.

    Regards,

    Ashok