Tool/software: Code Composer Studio
Hello,
I am using CCS v8 on PC Windows7 targetting to XDS560v2 STM Traveler debugger from Spectrum Digital and TDA2Px EVM with Fusion application board.
I just want to test that a source code can be debugged on any processor in TDA2Px board through JTAG debugger at first. After succeeding the test, I would like to go further using real code.
But, I am lost from the beginning.
On CCS v8, I made "hello world" project, did target configuration and was enable to compile the project.
I got the following messages from the "Build Project" menu.
**** Build of configuration Debug for project test_cortex_m ****
"D:\\Tools\\ti\\ccsv8\\utils\\bin\\gmake" -k -j 8 all -O
Building file: "../hello.c"
Invoking: ARM Compiler
"D:/Tools/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7M4 --code_state=16 -me --include_path="D:/Tools/workspace_v8/test_cortex_m" --include_path="D:/Tools/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --define=CORE_NUM=0 --define=IPU_NUM=1 -g --diag_warning=225 --diag_wrap=off --display_error_number --preproc_with_compile --preproc_dependency="hello.d_raw" "../hello.c"
Finished building: "../hello.c"
Building target: "test_cortex_m.out"
Invoking: ARM Linker
"D:/Tools/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/bin/armcl" -mv7M4 --code_state=16 -me --define=CORE_NUM=0 --define=IPU_NUM=1 -g --diag_warning=225 --diag_wrap=off --display_error_number -z -m"test_cortex_m.map" --heap_size=0x800 --stack_size=0x800 -i"D:/Tools/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/lib" -i"D:/Tools/ti/ccsv8/tools/compiler/ti-cgt-arm_18.1.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="test_cortex_m_linkInfo.xml" --rom_model -o "test_cortex_m.out" "./hello.obj" -llibc.a
<Linking>
warning #10247-D: creating output section ".text" without a SECTIONS specification
warning #10247-D: creating output section ".const" without a SECTIONS specification
warning #10247-D: creating output section ".data" without a SECTIONS specification
warning #10247-D: creating output section ".bss" without a SECTIONS specification
warning #10247-D: creating output section ".cinit" without a SECTIONS specification
warning #10247-D: creating output section ".stack" without a SECTIONS specification
warning #10247-D: creating output section ".sysmem" without a SECTIONS specification
Finished building target: "test_cortex_m.out"
**** Build Finished ****
It seems that linker command file is not defined at all from the warning #7-D. But, I cannot find any information on linker command file or how to handle the memory allocation on target processor.
How to get rid of above warning messages?
Anyway the compilation is done with some warnings. So I tried to run the code on M4 in TDA2Px board through "Connect Target" menu in Debug window.
I got error messages saying:
Cortex_M4_IPU1_C0: Error connecting to the target: (Error -1170 @ 0x0) Unable to access the DAP. Reset the device, and retry the operation. If error persists, confirm configuration, power-cycle the board, and/or try more reliable JTAG settings (e.g. lower TCLK). (Emulation package 8.0.27.9)
CS_DAP_IPU_1_C0: Error: (Error -242 @ 0x0) A router subpath could not be accessed. The board configuration file is probably incorrect. (Emulation package 8.0.27.9)
How to solve this error?
Thank you in advance.
Sahng-Gyu Park