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
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
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
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.
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
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/ .
hi,
what troubles me is the program seems to stop at line 186 {function deviceConfig()} of Timer.c file.
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)?
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
.
Can you attach your .cfg file?
When this happens, can you see anything the ROV->timers pages?
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.
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?
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
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!
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.
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