• 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 » BIOS » BIOS forum » how to run sys/bios example on C674x core of C6A8168?
Share
BIOS
  • Forum
  • Announcements
Options
  • Subscribe via RSS

how to run sys/bios example on C674x core of C6A8168?

how to run sys/bios example on C674x core of C6A8168?

This question is answered
peng wang
Posted by peng wang
on Feb 22 2012 03:21 AM
Intellectual450 points

Hi all,

I create a sys/bios helloworld project in CCSv5.

I am using c6a8168.I load the gel evm816x.gel and add a C6A816X.cmd to the project.

But when building project it comes errors "DDR0 memory range overlaps existing memory""L3OCMC0 memory range overlaps existing memory".

My .cmd file is downloaded from http://processors.wiki.ti.com/images/a/a7/C6A816x.zip.

Then I remove the C6A816x.cmd, building succes.But when I load program to core C674x, it prints nothing.

How to run a sys/bios example on c6a8168's dsp core?

francis

SYS/BIOS ccs v5 8168 xds100v2
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • judahvang
    Posted by judahvang
    on Feb 22 2012 09:52 AM
    Genius16715 points

    Peng,

    SYSBIOS has its *.cfg file.  This file along with the platform that you are building for generates a linker.cmd file for the project.
    In general, you should not be adding another *.cmd to your project.  Its okay to add another *.cmd if necessary.

    What are you using for print?  Is it System_printf()?  In some cases, you need System_flush to see the prints in the console window.

    Judah

    If my reply answers your question please mark the thread as answered

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

    Regarding the output, you can look at it in Tools->ROV also. Look in the SysMin output tab.

    Here is a discussion of SysMin vs SysStd (under the Configuring the System Module section): http://rtsc.eclipse.org/docs-tip/Overview_of_xdc.runtime/Example_1http://rtsc.eclipse.org/docs-tip/Overview_of_xdc.runtime/Example_1

    Todd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Feb 23 2012 00:04 AM
    Intellectual450 points

    The hello example is like this:

    //////////////////

    #include<xdc/std.h>

    #include<xdc/runtime/System.h>

    #include<ti/sysbios/BIOS.h>

    void main(){

    System_printf("hello world\n");

    BIOS_exit(0);

    }

    ////////////////

    I build the sys/bios example,and load .out into  core C674x.
    I think I should see "hello world" printed in the concole window. But there is nothing.

    each time I click suspend button when program running, It seems the program pause at code" timer->tiocpCfg == obj->tiocpCfg | 0x2;" in Timer.c at line 186.

    Could you tell me what's wrong with it?

    thank you.

    francis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ToddMullanix
    Posted by ToddMullanix
    on Feb 23 2012 12:01 PM
    Genius15630 points

    Can you look in ROV and see if there is SysMin. If there is, please read the "Configuring the System Module" section on the following web site: http://rtsc.eclipse.org/docs-tip/Overview_of_xdc.runtime/Example_1

    Todd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Feb 23 2012 19:59 PM
    Intellectual450 points

    Hi Todd,

    I have tried your idea.But what troubles me is the program seems to stop at line 186 {function deviceConfig()} of Timer.c file.

    So it is  never able to  run into main() function , let alone run the system_printf() function.

    The line 186 of Timer.c file is " timer->tiocpCfg = obj->tiocpCfg | 0x2;// reset the timer".This file locates in /root/ti/bios_6_32_05_54/packages/ti/sysbios/timers/gptimer/ .

    francis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Feb 23 2012 20:03 PM
    Intellectual450 points

    hi,

     what troubles me is the program seems to stop at line 186 {function deviceConfig()} of Timer.c file.

    So it is  never able to  run into main() function , let alone run the system_printf() function.

    The line 186 of Timer.c file is " timer->tiocpCfg = obj->tiocpCfg | 0x2;// reset the timer".This file locates in /root/ti/bios_6_32_05_54/packages/ti/sysbios/timers/gptimer/ .

    francis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ToddMullanix
    Posted by ToddMullanix
    on Feb 23 2012 20:28 PM
    Genius15630 points

    Are you loading the C674x core from CCS? Is it at line 186 or in the while loop, a couple lines below, waiting for the reset to finish?

    Which timer is reseting (e.g. obj->id value)?

    Todd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Feb 27 2012 20:27 PM
    Intellectual450 points

    hi Todd,

    I connect to C674x core as the page http://processors.wiki.ti.com/index.php/Connecting_to_DSP_on_C6A8168,_DM8168,_DM8148 says.

    It is at line 186 . Because I kick out while loop below and it also halt at line 186.

    I find     obj->id=0, obj->tiocpCfg=1

    .

    francis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • ToddMullanix
    Posted by ToddMullanix
    on Mar 01 2012 15:57 PM
    Genius15630 points

    Can you attach your .cfg file?

    When this happens, can you see anything the ROV->timers pages?

    Todd

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Mar 02 2012 00:26 AM
    Intellectual450 points

    3252.hellobios.zip

    I can see " address:0x8000e8c0,  ||||  halTimerHandle: 0x8000e670,|||| id: 0,name: GPTimer4 ,||||

    startMode :startMode_AUTO, ||||   runMode:RunMode_CONTINUOUS,  ||||  period:1000,    ||||    periodType:periodType_MICROSECS,   ||||

    intNum :15,    ||||    tickFxn:ti_sysbios_knl_Clock_doTick_I,    ||||    arg:0x00000000,    ||||    extFreqLow:0x0,   ||||

    extFreqHigh:0x0,    ||||    hwiHandle: 0x8000e660" at ROV->All Modules->ti->sysbios->timers->dmtimer-Timer.

     

     

    francis

     

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Mar 14 2012 22:28 PM
    Intellectual450 points

    Now I can run a hello example of SYS/BIOS under simulation mode. I choose dsp core of C64x+ and platform of ti.platform sim64Pxx.

    But when I choose C674x core and platform  ti.platform.simDM8168   I get the same error like in emulation mode as I posted above.It seems timers can't be initialized.

    how can the SYS/BIOS example of  C6A8168 be simulated? Is it under developing or I make some mistakes?

    francis

    SYS/BIOS 6 dm8168
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tom Kopriva
    Posted by Tom Kopriva
    on Mar 16 2012 17:12 PM
    Expert6660 points

    Hi Francis,

    I'm going to try to replicate the example to see if I can reproduce the error.

    Can you send the complete .cfg file, please?

    Thanks,

    Tom

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • peng wang
    Posted by peng wang
    on Mar 20 2012 11:09 AM
    Intellectual450 points

    hi,

    The .cfg is in the .zip file.

    I didn't make any changes to it.Do you mean I need to modify the .cfg to run the hello example in simulation mode?

    thank you!

    francis

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Tom Kopriva
    Posted by Tom Kopriva
    on Mar 20 2012 15:56 PM
    Expert6660 points

    Hi Francis,

    I'm getting the same problem using the TI simulator (C67x CPU Cycle Accurate Simulator LE). Let me see what I can do to get the timer work with the simulator.

    Thanks,

    Tom

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • NITIN MEWADA
    Posted by NITIN MEWADA
    on Mar 23 2012 16:38 PM
    Prodigy120 points

    Hello everybody

    I am getting same problem in simulator mode . But when i selected the ti.platforms.sim64Pxx platform , and then when i run the program it running in lines of Idle.c and Hwi_stack.c.

    Here just i was testing, i need to run SYS/BIOS in C64x+ dsp of DM3730, i am getting the same problem ...what should i do ???

    Should i use system flush()  instead of system printf().. Please help asap, because everything is fine except this error for project. I am doing some serious analysis problems.

    With regards

    Nitin Mewada

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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