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.

RTOS/AM4376: EDMA3 example issues

Part Number: AM4376

Tool/software: TI-RTOS

Hi,

I really am trying to find a simple edma3 example that works.

Reading many threads I found that I should try the example at C:\ti\edma3_lld_2_12_05_30B\examples\edma3_driver\evmAM437x_A9

There was nowhere an explanation of how to import this example to ccs, but I finally managed to do it manually.

I have two issues with this example:

1. printf to console works extremely slow. About 1 char per second. Impossible to work with. What could be the cause?

2. I disabled the printf to do the tests, but the test fails on basic memcopy example because the buffers are not aligned. It seems that the compiler (Linaro gcc) disregard the #pragma DATA_ALIGN that should have aligned the data. Anything I can do to align the data with Linaro?

Thanks!

shai

  • The RTOS team have been notified. They will respond here.
  • Hi,

    Ok, I have solved issue #2: Just need to add a define symbol: GCC_BUILD, this fixed it, and the test passed.
    regarding issue #1: the print is still very slow. Though it is not critical, its still problematic when I want to print debug lines.

    Thanks!

    shai
  • Hi,

    Do you use a GEL file to initialize the AM437x EVM you have?

    The EDMA DRV user guide is under packages\ti\sdo\edma3\drv\docs. The 2.4.2 Building the EDMA3 Driver Stand-alone Applications explained how to build the standard alone application, it is makefile based, not CCS. Can you follow the steps to build it using makefile approach to see if you still have slow printf issue?

    Regards, Eric
  • Hi Eric,

    Thank you for your answer. Here is how I solved it. I have already a main application that I'm working on where the printf works correctly. So I have copied the code from the EDMA3 example into my app, so now I have both edma3 code working, and printf as well. So although I'm still curious as to what caused the slow printf, I can continue the development of our product which is more important.

    Thank you for pointing out the doc location of the the EDMA3. I was helplessly looking for it on line, and all the time it sat on my PC. Thanks!

    shai