Having seen a number of posts and documents stating it was possible to run examples from this text on the C6748LCDK, I bought the book, LCDK and XDS100V2 and had a go.
1)I downloaded the LCDK code examples from the Wiley ftp site: ftp.wiley.com/.../signal_processing
2)As per the document found here: http://e2e.ti.com/group/universityprogram/educators/f/776/t/223997
I downloaded the zip file 1020489B_CCSv4-2-4_with_SOM-M1_BSL_WS.zip
I am assuming this collection of files available from TI is similar to the BSL supplied by Logic PD to purchasers of the OMAP-L138 eXperimenter. I wouldn't be surprised if differences between these BSLs is one of the issues.
3)I created a new project (including a main.c) in CCS with the target set as "LCDKC6748" and the connection set to "Texas Instruments XDS100V2 USB Debug Probe" as per my specific hardware.
This step created a file LCDK6748.ccxml which I ASSUME has the correct details as I couldn't find one that looked appropriate in the downloads listed above.
I copied this file to "c:\User\Your_ID\user\CCSTargetConfigurations" as per step 9 on page 10 of the text book.
4)I also copied the file "c6748.gel" from the download "1020489B_CCSv4-2-4_with_SOM-M1_BSL_WS.zip" above to the directory "c:\User\Your_ID\user\CCSTargetConfigurations"
as per step 10 on page 10 of the text book.
5) I set my .ccxml file as default as per step 11 on page 10 of the text book.
6)At this stage I can launch the debugger and I can debug my very basic program and my variables change etc. I have to assume things are working up to this point.
7)Steps 14-16 in the textbook work well with my input signal appearing at the output. Again things appear to be working.
8) The problems start in the "link the support files to project" section on page 16 of the text:
I add "L138_LCDK_aic3106_init.c" "L138_LCDK_aic3106_init.h" "linker_dsp.cmd" and "vectors_intr.asm" from the "LCDK\L138_support" directory of the ftp download mentioned above as per the text book.
I also add "LCDK\L138_support" and "LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\inc" to the "#include search path" for the project as per the text.
I also add "LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" to the "include library file" field for the project as per the text.
9) Now I try and debug my code with the following errors appearing:
**** Build of configuration Debug for project L138_sine48_buf_intr ****
"C:\\ti\\ccsv6\\utils\\bin\\gmake" -k all
'Building target: L138_sine48_buf_intr.out'
'Invoking: C6000 Linker'
"C:/ti/bin/cl6x" -mv6740 --abi=eabi -g --define=c6748 --display_error_number --diag_warning=225 --diag_wrap=off -z -m"L138_sine48_buf_intr.map" --heap_size=0x800 --stack_size=0x800 -i"C:/ti/lib" -i"C:/ti/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="L138_sine48_buf_intr_linkInfo.xml" --rom_model -o "L138_sine48_buf_intr.out" "./L138_LCDK_aic3106_init.obj" "./vectors_intr.obj" "../C6748.cmd" "../linker_dsp.cmd" -l"libc.a" -l"C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib"
<Linking>
"../linker_dsp.cmd", line 8: error #10264: dsp_l2_ram memory range overlaps existing memory range SHDSPL2RAM
"../linker_dsp.cmd", line 9: error #10264: shared_ram memory range overlaps existing memory range SHRAM
"../linker_dsp.cmd", line 10: error #10264: external_ram memory range overlaps existing memory range DDR2
warning #10373-D: library "C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" contains TI-COFF object files which are incompatible with the ELF output file. Ensure you are using the proper library.
warning #10373-D: library "C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib" contains TI-COFF object files which are incompatible with the ELF output file. Ensure you are using the proper library.
undefined first referenced
symbol in file
>> Compilation failure
--------- ----------------
_interrupt4 ./vectors_intr.obj
main C:\ti\lib\rts6740_elf.lib<args_main.obj>
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "L138_sine48_buf_intr.out" not built
gmake: *** [L138_sine48_buf_intr.out] Error 1
gmake: Target `all' not remade because of errors.
**** Build Finished ****
I have tried numerous combinations of the steps above and tried to compile at each stage. So far I have determined:
A)The errors relating to the "ram memory range" are due to a clash between "linker_dsp.cmd" as above and "C6748.cmd" which is created by CCS as part of the new project process. Removing "C6748.cmd" from the project gives different errors.
Removing "linker_dsp.cmd" and leaving "C6748.cmd" seems to prevent these errors.
B) The ""C:\LCDK\CCSv4-2-4_with_SOM-M1_BSL_WS\DSP BSL\lib\evmomapl138_bsl.lib"" errors appear to be due to the inclusion of that library. I can't find any other libraries in any of the downloads above that provide different results.
I would sincerely appreciate any help in getting these code examples, particularly "L138_loop_edma_triple", running.