• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Multimedia Software Codecs » Multimedia Software Codecs forum » how to build the JPEGDEC demo on C6678L(CCS5.0.3)
Share
Multimedia Software Codecs
  • Forum
Options
  • Subscribe via RSS

Forums

how to build the JPEGDEC demo on C6678L(CCS5.0.3)

This question is answered
Shiqiang Lee
Posted by Shiqiang Lee
on Feb 19 2012 07:32 AM
Intellectual290 points

hi,

I want to know how to organize the project about JPEGDEC on C6678L in CCS5.0.3.

I download the DEMO at http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C6678_Video_Codecs/01_00_001/index_FDS.html (windows version), but the user guide in extract folder says that the project is built in CCS4, I want to konw how to port it to CCS5.

I do ti for long time, but it seems does work, even I can't let it build successful. I think it must be something wrong when I organize the project.

could you tell me sth on how to port the jpec_demo project to CCS5? Any user guide or detail steps will be OK.

Thanks.

CCS5 JPEGDEC DEMO CCS4 EVM6678L Emulation
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Uday
    Posted by Uday
    on Feb 20 2012 15:20 PM
    Expert3910 points

    Hi Shiqiang,

    I've downloaded and imported the project into CCSv5 (5.0.3) and you are right it does look like the 'build variables' and 'include options' JPEG decoder project properties and source file paths are hard-coded to specific CCSv4 paths on the developer's computer. Essentially for this to work you'll have to modify these and make them generic. I'm in the process of trying this and will get back to you with specific steps for a successful port to CCSv5. 

    - Uday

    --- If you need more help, please reply. If this answers your question, please Verify Answer below this post ---

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Uday
    Posted by Uday
    on Feb 21 2012 11:17 AM
    Verified Answer
    Verified by tscheck
    Expert3910 points

    Hi Shiqiang

    I have imported the JPEGDEC TestAppDecoder project to CCSv5.0.3, resolved the main issues in porting and have created an interim zip package for you so you can move on with your project. Please note that this is only an interim quick zip for your purpose and all formal releases are made by the Codecs team through the main download page for these Codecs.

    Please click on the link here 0830.TestAppDecoder_zip.txt to download the zip.

    I had to change the extension so it can be shared here. Once you have the file please change the name to TestAppDecoder.zip and unzip in the folder "Codecs\C66x_jpegdec_03_01_00_01_ELF\packages\ti\sdo\codecs\jpegdec\App\Client\Build." Next, import the project into CCSv5. After this, It should be a simple clean, build, load and run.

    For your reference, I had to make the following changes to the project properties:

    • Replaced user-defined environment variables for FC, BIOS, etc.with generic RTSC-based variables (eg: FRAMEWORK_COMPONENTS_CG_ROOT instead of a user-defined FRMWRK_ROOT). 
    • Modified “Include Options” in project properties to reflect above changes
    • Modified Linker “File Search Path” to reflect above changes
    • Modified RTSC “Other Repositories” to reflect above changes
    • Modified XDC Tools -> Package Repositories to reflect above changes
    • Modified C6000 Compiler -> Directory Specifier. Changed Mode to Automatic and removed all manual references.
    • Changed path to source files to a generic one
    • Included a macros.ini for project root directory references
    • Selected required RTSC components. Note that these are the same as the user guide points out, i.e. DSP/BIOS version 6.31.00.18, Bios IPC version 1.22.04.25, XDC Tools version 3.20.08.88 & Framework Component (FC) version 3.20.02.29.

    Note that at this point the project only has the Debug mode. You are welcome to try and create a Release mode build configuration too using the Debug mode as a reference and add the necessary optimizations. 

    Regards,
    Uday 

    - Uday

    --- If you need more help, please reply. If this answers your question, please Verify Answer below this post ---

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shiqiang Lee
    Posted by Shiqiang Lee
    on Feb 22 2012 01:15 AM
    Intellectual290 points

    Hi, 

    Thanks very much for your detail instructions. I have downed the file your provided and imported to CCS5.0.3, then built successful. I will load it to EVM6678L through JTAG at night and to see if it will work.

    I have two more questions when I change the project properties as you said below:

    1. where are the environment  variables FRAMEWORK_COMPONENTS_CG_ROOT and  BIOS_CG_ROOT defined? I have checked Properties-> C/C++ Build -> Build variables -> Show system variables, and seen variables such as CG_TOOL_ROOT, but haven't seen the two.

    2. When I change the project properties, it says that "Could not write file:Could not write file: E:\TI\TMS320C66x\Codecs\packages\ti\sdo\codecs\jpegdec\App\Client\Build\TestAppDecoder\.project." and the details says "E:\TI\TMS320C66x\Codecs\packages\ti\sdo\codecs\jpegdec\App\Client\Build\TestAppDecoder\.project (access denied.)". I am sure that although I change the authority of all files in the project, the error is always on.

    could give some advise on the previous two problems?

    Regards,
    Shiqiang 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Uday
    Posted by Uday
    on Feb 22 2012 01:28 AM
    Expert3910 points

    Hi Shiqiang,

    The variables FRAMEWORK_COMPONENTS_CG_ROOT and BIOS_CG_ROOT get automatically defined when the relevant RTSC packages are selected (which is already done in the project I sent you). You do not need to make any changes to the project properties. The project once imported should build successfully as provided. From your post, it looks like you were able to successfully do that.

    - Uday

    --- If you need more help, please reply. If this answers your question, please Verify Answer below this post ---

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shiqiang Lee
    Posted by Shiqiang Lee
    on Feb 22 2012 02:12 AM
    Intellectual290 points

    Hi Gurnani,

    It's right that after I import the project, I build it successfully.

    But i just want to learn more to specify CCSv5 settings, so I just do the steps as you listed.

    In the steps, I don't understand "• Changed path to source files to a generic one", could you show more details to me?

    Thanks anyway.

    Regards,
    Shiqiang 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Uday
    Posted by Uday
    on Feb 22 2012 10:47 AM
    Expert3910 points

    Hi Shiqiang,

    The "Changed path to source files to a generic one" refers to the following:

    In the zip I've provided, if you right click on any source file, for example, alg_create.c, you'll see that the file location now points to "JPEGDEC_ROOT\Client\Test\Src\alg_create.c," where JPEGDEC_ROOT is defined as JPEGDEC_ROOT=./../../../ in macros.ini. It is generic in the sense that it isn't dependent on an absolute path on any computer. This way when you received the project, you could import and build without making any changes to any paths / environment variables.

    - Uday

    --- If you need more help, please reply. If this answers your question, please Verify Answer below this post ---

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Shiqiang Lee
    Posted by Shiqiang Lee
    on Feb 22 2012 18:35 PM
    Intellectual290 points

    hi Gurnani,

    I have got it. Thanks.

    but when I load the program to EVM6678L and run it, it still have some problems. I posted a new post at http://e2e.ti.com/support/embedded/multimedia_software_codecs/f/356/t/166901.aspx#608513, It may be the problem of the version of CCS, and I'll try more.

    Regards, 
    Shiqiang 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • dp
    Posted by dp
    on Mar 02 2012 01:42 AM
    Intellectual985 points

    Hi, Gurnani,

    Thanks for your porting work of c6678 jpeg at ccs5.

    And I encounter the same problems about H264 TestAppEncoder demo.

    Could you help? 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • weber de souza calixto
    Posted by weber de souza calixto
    on Apr 16 2012 09:46 AM
    Expert1070 points

    Hi,

    I've followed the steps to import the adapted project. There is no variable errors and such.

    However, the linker crashes, and I can't figure out why. I'm using CCS 5.1.1.00031

    There is the linker output error:

    'Building target: TestAppDecoder.out'
    'Invoking: C6000 Linker'
    "C:/CCs_v5/ccsv5/tools/compiler/c6000/bin/cl6x" -mv6600 -g --define="XDM1" --diag_warning=225 --gen_func_subsections=on --no_bad_aliases --abi=eabi --auto_inline=256 --output_all_syms --strip_coff_underscore -z -m"TestAppDecoder.map" --warn_sections -i"C:/CCs_v5/ccsv5/tools/compiler/c6000/lib" -i"C:/CCs_v5/ccsv5/tools/compiler/c6000/include" -i"C:/multicore/TestAppDecoder" -i"C:/multicore/TestAppDecoder/../../../Build" -i"C:/CCSTUD~1.3/C6000/csl/lib" -i"C:/multicore/TestAppDecoder/../../../../Lib" -i"C:/Program Files (x86)/Texas Instruments/bios_6_33_02_31/packages/ti/bios/lib" --reread_libs --rom_model -o "TestAppDecoder.out" -l"./configPkg/linker.cmd" "./tsc_h.obj" "./ijpegdec.obj" "./alg_malloc.obj" "./alg_create.obj" "./TestAppDecoder.obj" "./TestAppConfigParser.obj" -l"C:\Program Files (x86)\Texas Instruments\C66x_jpegdec_03_01_00_01_ELF\packages\ti\sdo\codecs\jpegdec\lib\jpegdec_ti.le66" -l"libc.a" "../JPEGDecApp.cmd"
    <Linking>

    This application has requested the Runtime to terminate it in an unusual way.
    Please contact the application's support team for more information.
    user_msg_api.c:211:internal fatal error #99926: (ofile_error_handler():
    TestAppDecoder.out: illegal operation: writing 0x1fffffbc bytes to offset
    0x0 in section ".text:JPEGIDEC_TI_cSect" exceeds its formatted size
    (0x227a0))

    INTERNAL ERROR: C:\CCs_v5\ccsv5\tools\compiler\c6000\bin\lnk6x.exe aborted


    This is a serious problem. Please contact Customer
    Support with this message and a copy of the input file
    and help us to continue to make the tools more robust.

    Can someone please help. The error output itself says to ask for support.

    Weber

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Uday
    Posted by Uday
    on Apr 16 2012 09:54 AM
    Expert3910 points

    I don't know the answer to this. Please do not reply to answered posts with new questions. Please write a new post in the Codecs forum. That way your question won't get lost in previous posts, and more experts from the Codec forum will be able to look at this and comment.

    Thanks!

    - Uday

    --- If you need more help, please reply. If this answers your question, please Verify Answer below this post ---

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • weber de souza calixto
    Posted by weber de souza calixto
    on Apr 16 2012 10:04 AM
    Expert1070 points

    I've created a new post. http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/182781.aspx

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use