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.

TMS570LC43x Help example_sci_dma.c fails

Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

I'm trying the example_sci_dma.c example on an TMS570LC43 LaunchPad.

I followed the step by step settings in HALCoGen, as described in the Help File, and performed flash and linker settings as explained in

processors.wiki.ti.com/.../LAUNCHXL2-570LC43-RM57L:_LinkerECCRecommendation

I cleared out HL_SYS_main.c and copied the content of the examples/example_sci_dma.c in it.

The kept LOOPBACKMODE=1

When running the program, it doesn't copy the data from TX_DATA into RX_DATA

(I'm expecting that after 

while(dmaGetInterruptStatus(DMA_CH1, BTC) != TRUE);

)

and the checkpoint failes when i == 1:

if(RX_DATA[i] != TX_DATA[i])

Program ends with: 

[CortexR5] Fail

HALCoGen 4.05.01

CCS 6.1.1.00022

Compiler TI v5.2.6

 

 

(additional info, may or may not be relevant: the red error flag on the launchpad also turns red as soon as the code is loaded to the launchpad (even with adapted linker file and adjusted flash loader setting as per link above), once you copy over examples/example_sci_dma.c. If you load the project with an empty HL_SYS_main.c file, this doesn't happen. Is there anything in the code that plays with the memory ECC ?)