Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

edma3_lld DSPBIOS to SYSBIOS Migration

$
0
0

I have an ADC driver which works on C6748. I developed it for DSPBIOS with edma3_lld 1.xx..xx. I'm migrating my application from DSPBIOS to SYSBIOS and I have stuck on EDMA. I followed the steps below.

1 - I have installed CCSv6, bios_6_40_01_15, xdctools_3_30_01_25, edma3_lld_02_11_11_13.

2 - I set include directory, file search paths for linker and libraries of edma3_lld (edma3_lld_drv.a674, edma3_lld_drv_sample.a674, edma3_lld_rm.a674).

3 - I enabled C674/event combiner and set event group 0 hwi to 7, 1 to 8, 2 to 9, 3 to 10 respectively on cfg file.

4 - I copied the older codes to the SYSBIOS project.

5 - I had created OsSem dynamically and I migrated the semaphore creation codes to SYSBIOS.

6 - I built my application with only a warning: "#10247-D creating output section ".fardata" without a SECTIONS specification dsp_app C/C++ Problem"

7 - I started to debug and EDMA3_DRV_create function returns -128.

8 - I added the following lines to cfg file. 
Program.sectMap[".fardata"] = "DDR";
Program.sectMap[".far"] = "DDR";

9 - I compiled without a warning and debugged. EDMA3_DRV_create function started to return 0. But EDMA3_DRV_requestChannel function returns -132.

I guess I have an initial mistake like not capable cfg file. I may need to set sections. Please share a working sysbios project with edma3_lld.

I have moved edma3_lld folder under CCS directory. Eclipse find the plug-in and added to code composer studio. Now I can select edma3_lld when I initiate the project. But selecting edma3_lld during project creation gives me nothing. No predefined header, no setup, etc. What is the point of adding edma3_lld to code composer studio?

I know it's not relevant but also I couldn't write Semaphore_Post function as Function of clock instance. This is an approach I frequently used in DSPBIOS applications.

Thanks in advance

Serdar


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>