
Technical discussions about the TI C6000 DSPs (including the c62x, c64x and c67x DSPs).
hello moto~~
a joke first~:)
i got the same problem with the c6720 emulation operation just like what peter described.the
run button works,but the code just can`t load into the target curretly.here`s the asm code
displayed in the asm window after the EMULATOR set connected in the ccs.the first line is where
the green arrow pointed to.
→00001DDC 00008000 NOP 5
00001DE0 000C0362 B.S2 B3
00001DE4 00008000 NOP 5
00001DE8 07BE09C2 SUB.D2 SP,0x10,SP
00001DEC 033C62F4 STW.D2T1 A6,*+SP[3]
00001DF0 023C42F6 STW.D2T2 B4,*+SP[2]
00001DF4 023C22F4 STW.D2T1 A4,*+SP[1]
00001DF8 00000000 NOP
00001DFC 00000390 B.S1 0x1DFC (PC+28 = 0x00001dfc)
HERE is the asm code displayed in the asm window after the program loaded..
there are 4 green arrows point from the second line to the fifth line like
100079A0 c_int00:
→100079A0 19004161 .word 0x19004161
→100079A4 952C174B || [!A1] EXT.S2 B11,0,23,B10
→100079A8 4C2960C3 || .word 0x4c2960c3
→100079AC 558102A0 || [!B1] XOR.S1 8,A0,A11
100079B0 CEEBD557 .word 0xceebd557
100079B4 C97E4223 || .word 0xc97e4223
100079B8 DD762FC6 || .word 0xdd762fc6
100079BC 6BCDDB8E [ B2] LDHU.D2T2 *+B15[19931],B23
100079C0 C91AAD0B [ A0] EXTU.S2 B6,21,13,B18
after that,i press the 'go main' button,the ccs looks did nothing.
and here are the codes in mixmode
#include <_csl_intc.h>
#include <cpureg.h> // this is just definations to the registors
#include <stdio.h>
main()
{
int a=1,b=1,c=a+b;
printf("c=%x",c);
10007AA0 main:
10007AA0 66293DCC || [ B2] LDH.D2T1 *+B15[10557],A12
10007AA4 991A148C [!A1] LDHU.D2T1 *+B15[6676],A18
for(;;)
10007AA8 20034A6B [ B0] MVKH.S2 0x6940000,B0
10007AAC 4D2B8F81 || [ B1] MPYU.M1 A28,A10,A26
10007AB0 AF7F1E68 || [ A2] MVKH.S1 0xfe3c0000,A30
10007AB4 6B325AFE [ B2] STW.D2T2 B22,*+B15[12890]
10007AB8 57F497CE [!B1] LDH.D2T2 *+B15[29847],SP
10007ABC FF75C335 .word 0xff75c335
10007AC0 40B05A6A || [ B1] MVKH.S2 0x60b40000,B1
10007AC4 3003D465 [!B0] LDW.D1T1 *A0--[30],A0
10007AC8 446D42B2 || .word 0x446d42b2
{;;}
10007ACC BEE37621 .word 0xbee37621
10007AD0 878C36BE || [ A1] STB.D2T2 SP,*+B15[3126]
10007AD4 B64F6D9F [!A2] LDBU.D2T2 *+B15[20333],B12
10007AD8 1E3B1AFC || ADDAW.D1X B15,15130,A28
10007ADC AC7B87CC [ A2] LDH.D2T1 *+B15[31623],A24
10007AE0 9C31B770 .word 0x9c31b770
10007AE4 5E281D21 [!B1] SHR.S1 A11:A10,0x0,A29:A28
}
10007AE8 C$DW$L$_main$2$B, C$L1, C$RL0:
10007AE8 FA478AC8 || .word 0xfa478ac8
10007AEC 6449A150 [ B2] ADDK.S1 -27838,A8
i tried to set the PC to the main func and press the run button,it works and stopped at the
for() func.
i really dont know whats happend to it cus am a new in c6x dsp chip.
i`v read some docs about the c6000 pin setting,and don`t sure if the
c672x needs pin setting,but the datasheets never claim that it does.
it getting me a crazy.
i wish sombdoy could help me to handle this,and many thanks.
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
liqunchao,
On Fri, Sep 5, 2008 at 12:55 PM, <l...@163.com> wrote:
> hello moto~~
> a joke first~:)
>
> i got the same problem with the c6720 emulation operation just like what peter
described.the run button works,but the code just can`t load into the target curretly.here`s the
asm code displayed in the asm window after the EMULATOR set connected in the ccs.the first line
is where the green arrow pointed to.
<mld>
FYI- I don't think that you have the same problem.
>
> $B"*(B00001DDC 00008000 NOP 5
> 00001DE0 000C0362 B.S2 B3
> 00001DE4 00008000 NOP 5
> 00001DE8 07BE09C2 SUB.D2 SP,0x10,SP
> 00001DEC 033C62F4 STW.D2T1 A6,*+SP[3]
> 00001DF0 023C42F6 STW.D2T2 B4,*+SP[2]
> 00001DF4 023C22F4 STW.D2T1 A4,*+SP[1]
> 00001DF8 00000000 NOP
> 00001DFC 00000390 B.S1 0x1DFC (PC+28 = 0x00001dfc)
>
<mld>
The above are internal ROM addresses that are executed when the chip comes up.
>
> HERE is the asm code displayed in the asm window after the program loaded..
> there are 4 green arrows point from the second line to the fifth line like
>
> 100079A0 c_int00:
> $B"*(B100079A0 19004161 .word 0x19004161
> $B"*(B100079A4 952C174B || [!A1] EXT.S2 B11,0,23,B10
> $B"*(B100079A8 4C2960C3 || .word 0x4c2960c3
> $B"*(B100079AC 558102A0 || [!B1] XOR.S1 8,A0,A11
> 100079B0 CEEBD557 .word 0xceebd557
> 100079B4 C97E4223 || .word 0xc97e4223
> 100079B8 DD762FC6 || .word 0xdd762fc6
> 100079BC 6BCDDB8E [ B2] LDHU.D2T2 *+B15[19931],B23
> 100079C0 C91AAD0B [ A0] EXTU.S2 B6,21,13,B18
>
<mld>
This is not good. The instruction packet at 100079A0 does not appear
to be correct for the c672x according to the disassembler.
A. The code was either incorrectly generated [the 64plus/davinci
processor type was used although if that were the case, I would expect
the the file not to load]
or
B. The code was loaded incorrectly by the emulator.
Q1. Check the project build options to verify that the correct
processor type was used to build your '.out' file. What option did you
use??
Q2. Disassemble your '.out' file and locate 'c_int00:'. Is it the same
as the info above??
How to disassemble an out file.
1. Open a 'DOS prompt' in the directory containing the out file.
2. Append the path to the disassembler to your path [I use
'set path=C:\CCStudio_v3.3\C6000\cgtools\bin;%path%
for CCS 3.3
3. enter 'dis6x myfile.out > myfile.out.txt'' on the command line.
4. open 'myfile.out.txt' in a text editor and find 'c_int00' to
compare with your output above.
Q3. Do the 2 disassemblies match?? [the text may differ slightly]
mikedunn
> after that,i press the 'go main' button,the ccs looks did nothing.
>
> and here are the codes in mixmode
>
> #include <_csl_intc.h>
> #include <cpureg.h> // this is just definations to the registors
> #include <stdio.h> main()
> {
> int a=1,b=1,c=a+b;
> printf("c=%x",c);
> 10007AA0 main:
> 10007AA0 66293DCC || [ B2] LDH.D2T1 *+B15[10557],A12
> 10007AA4 991A148C [!A1] LDHU.D2T1 *+B15[6676],A18
> for(;;)
> 10007AA8 20034A6B [ B0] MVKH.S2 0x6940000,B0
> 10007AAC 4D2B8F81 || [ B1] MPYU.M1 A28,A10,A26
> 10007AB0 AF7F1E68 || [ A2] MVKH.S1 0xfe3c0000,A30
> 10007AB4 6B325AFE [ B2] STW.D2T2 B22,*+B15[12890]
> 10007AB8 57F497CE [!B1] LDH.D2T2 *+B15[29847],SP
> 10007ABC FF75C335 .word 0xff75c335
> 10007AC0 40B05A6A || [ B1] MVKH.S2 0x60b40000,B1
> 10007AC4 3003D465 [!B0] LDW.D1T1 *A0--[30],A0
> 10007AC8 446D42B2 || .word 0x446d42b2
> {;;}
> 10007ACC BEE37621 .word 0xbee37621
> 10007AD0 878C36BE || [ A1] STB.D2T2 SP,*+B15[3126]
> 10007AD4 B64F6D9F [!A2] LDBU.D2T2 *+B15[20333],B12
> 10007AD8 1E3B1AFC || ADDAW.D1X B15,15130,A28
> 10007ADC AC7B87CC [ A2] LDH.D2T1 *+B15[31623],A24
> 10007AE0 9C31B770 .word 0x9c31b770
> 10007AE4 5E281D21 [!B1] SHR.S1 A11:A10,0x0,A29:A28
> }
> 10007AE8 C$DW$L$_main$2$B, C$L1, C$RL0:
> 10007AE8 FA478AC8 || .word 0xfa478ac8
> 10007AEC 6449A150 [ B2] ADDK.S1 -27838,A8
>
> i tried to set the PC to the main func and press the run button,it works and stopped at
the for() func.
>
> i really dont know whats happend to it cus am a new in c6x dsp chip.
> i`v read some docs about the c6000 pin setting,and don`t sure if the
> c672x needs pin setting,but the datasheets never claim that it does.
> it getting me a crazy.
>
> i wish sombdoy could help me to handle this,and many thanks.
>
> ------------------------------------
>
> OMAP35x EVM jump-starts low-power apps
> ------------------------------------
> The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start
building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
HIHI
Glad to know that my posts are able to help some one else.
Let's assume that there is no hardware problem on ur target board and the
connection between the emulator and target board is well established.
What type of emulator do u used?
CCS version?
Can u see and modify the internal registers?
Have u setup the GEL file for EMIF and PLL?
Best regards
Peter Wu
2008/9/6 Michael Dunn <m...@gmail.com>
> liqunchao,
>
> On Fri, Sep 5, 2008 at 12:55 PM, <l...@163.com<liqunchao_001%40163.com>>
> wrote:
> > hello moto~~
> > a joke first~:)
> >
> > i got the same problem with the c6720 emulation operation just like what
> peter described.the run button works,but the code just can`t load into the
> target curretly.here`s the asm code displayed in the asm window after the
> EMULATOR set connected in the ccs.the first line is where the green arrow
> pointed to.
>
> <mld>
> FYI- I don't think that you have the same problem.
>
> >
> > $B"*(B00001DDC 00008000 NOP 5
> > 00001DE0 000C0362 B.S2 B3
> > 00001DE4 00008000 NOP 5
> > 00001DE8 07BE09C2 SUB.D2 SP,0x10,SP
> > 00001DEC 033C62F4 STW.D2T1 A6,*+SP[3]
> > 00001DF0 023C42F6 STW.D2T2 B4,*+SP[2]
> > 00001DF4 023C22F4 STW.D2T1 A4,*+SP[1]
> > 00001DF8 00000000 NOP
> > 00001DFC 00000390 B.S1 0x1DFC (PC+28 = 0x00001dfc)
> >
> <mld>
> The above are internal ROM addresses that are executed when the chip comes
> up.
>
> >
> > HERE is the asm code displayed in the asm window after the program
> loaded..
> > there are 4 green arrows point from the second line to the fifth line
> like
> >
> > 100079A0 c_int00:
> > $B"*(B100079A0 19004161 .word 0x19004161
> > $B"*(B100079A4 952C174B || [!A1] EXT.S2 B11,0,23,B10
> > $B"*(B100079A8 4C2960C3 || .word 0x4c2960c3
> > $B"*(B100079AC 558102A0 || [!B1] XOR.S1 8,A0,A11
> > 100079B0 CEEBD557 .word 0xceebd557
> > 100079B4 C97E4223 || .word 0xc97e4223
> > 100079B8 DD762FC6 || .word 0xdd762fc6
> > 100079BC 6BCDDB8E [ B2] LDHU.D2T2 *+B15[19931],B23
> > 100079C0 C91AAD0B [ A0] EXTU.S2 B6,21,13,B18
> >
> <mld>
> This is not good. The instruction packet at 100079A0 does not appear
> to be correct for the c672x according to the disassembler.
> A. The code was either incorrectly generated [the 64plus/davinci
> processor type was used although if that were the case, I would expect
> the the file not to load]
> or
> B. The code was loaded incorrectly by the emulator.
>
> Q1. Check the project build options to verify that the correct
> processor type was used to build your '.out' file. What option did you
> use??
> Q2. Disassemble your '.out' file and locate 'c_int00:'. Is it the same
> as the info above??
>
> How to disassemble an out file.
> 1. Open a 'DOS prompt' in the directory containing the out file.
> 2. Append the path to the disassembler to your path [I use
> 'set path=C:\CCStudio_v3.3\C6000\cgtools\bin;%path%
> for CCS 3.3
> 3. enter 'dis6x myfile.out > myfile.out.txt'' on the command line.
> 4. open 'myfile.out.txt' in a text editor and find 'c_int00' to
> compare with your output above.
>
> Q3. Do the 2 disassemblies match?? [the text may differ slightly]
>
> mikedunn
> > after that,i press the 'go main' button,the ccs looks did nothing.
> >
> > and here are the codes in mixmode
> >
> > #include <_csl_intc.h>
> > #include <cpureg.h> // this is just definations to the registors
> > #include <stdio.h>
> >
> > main()
> > {
> > int a=1,b=1,c=a+b;
> > printf("c=%x",c);
> > 10007AA0 main:
> > 10007AA0 66293DCC || [ B2] LDH.D2T1 *+B15[10557],A12
> > 10007AA4 991A148C [!A1] LDHU.D2T1 *+B15[6676],A18
> > for(;;)
> > 10007AA8 20034A6B [ B0] MVKH.S2 0x6940000,B0
> > 10007AAC 4D2B8F81 || [ B1] MPYU.M1 A28,A10,A26
> > 10007AB0 AF7F1E68 || [ A2] MVKH.S1 0xfe3c0000,A30
> > 10007AB4 6B325AFE [ B2] STW.D2T2 B22,*+B15[12890]
> > 10007AB8 57F497CE [!B1] LDH.D2T2 *+B15[29847],SP
> > 10007ABC FF75C335 .word 0xff75c335
> > 10007AC0 40B05A6A || [ B1] MVKH.S2 0x60b40000,B1
> > 10007AC4 3003D465 [!B0] LDW.D1T1 *A0--[30],A0
> > 10007AC8 446D42B2 || .word 0x446d42b2
> > {;;}
> > 10007ACC BEE37621 .word 0xbee37621
> > 10007AD0 878C36BE || [ A1] STB.D2T2 SP,*+B15[3126]
> > 10007AD4 B64F6D9F [!A2] LDBU.D2T2 *+B15[20333],B12
> > 10007AD8 1E3B1AFC || ADDAW.D1X B15,15130,A28
> > 10007ADC AC7B87CC [ A2] LDH.D2T1 *+B15[31623],A24
> > 10007AE0 9C31B770 .word 0x9c31b770
> > 10007AE4 5E281D21 [!B1] SHR.S1 A11:A10,0x0,A29:A28
> > }
> > 10007AE8 C$DW$L$_main$2$B, C$L1, C$RL0:
> > 10007AE8 FA478AC8 || .word 0xfa478ac8
> > 10007AEC 6449A150 [ B2] ADDK.S1 -27838,A8
> >
> > i tried to set the PC to the main func and press the run button,it works
> and stopped at the for() func.
> >
> > i really dont know whats happend to it cus am a new in c6x dsp chip.
> > i`v read some docs about the c6000 pin setting,and don`t sure if the
> > c672x needs pin setting,but the datasheets never claim that it does.
> > it getting me a crazy.
> >
> > i wish sombdoy could help me to handle this,and many thanks.
> >
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
hello moto~~
>a joke first~:)
>
>i got the same problem with the c6720 emulation operation just like what peter
described.the run button works,but the code just can`t load into the target curretly.here`s the
asm code displayed in the asm window after the EMULATOR set connected in the ccs.the first line
is where the green arrow pointed to.
>
>→00001DDC 00008000 NOP 5
> 00001DE0 000C0362 B.S2 B3
> 00001DE4 00008000 NOP 5
> 00001DE8 07BE09C2 SUB.D2 SP,0x10,SP
> 00001DEC 033C62F4 STW.D2T1 A6,*+SP[3]
> 00001DF0 023C42F6 STW.D2T2 B4,*+SP[2]
> 00001DF4 023C22F4 STW.D2T1 A4,*+SP[1]
> 00001DF8 00000000 NOP
> 00001DFC 00000390 B.S1 0x1DFC (PC+28 = 0x00001dfc)
>
>HERE is the asm code displayed in the asm window after the program loaded..
>there are 4 green arrows point from the second line to the fifth line like
>
>100079A0 c_int00:
>→100079A0 19004161 .word 0x19004161
>→100079A4 952C174B || [!A1] EXT.S2 B11,0,23,B10
>→100079A8 4C2960C3 || .word 0x4c2960c3
>→100079AC 558102A0 || [!B1] XOR.S1 8,A0,A11
> 100079B0 CEEBD557 .word 0xceebd557
> 100079B4 C97E4223 || .word 0xc97e4223
> 100079B8 DD762FC6 || .word 0xdd762fc6
> 100079BC 6BCDDB8E [ B2] LDHU.D2T2 *+B15[19931],B23
> 100079C0 C91AAD0B [ A0] EXTU.S2 B6,21,13,B18
>
>after that,i press the 'go main' button,the ccs looks did nothing.
>
>and here are the codes in mixmode
>
>#include
>#include // this is just definations to the registors
>#include
>
>main()
>{
> int a=1,b=1,c=a+b;
> printf("c=%x",c);
> 10007AA0 main:
> 10007AA0 66293DCC || [ B2] LDH.D2T1 *+B15[10557],A12
> 10007AA4 991A148C [!A1] LDHU.D2T1 *+B15[6676],A18
> for(;;)
> 10007AA8 20034A6B [ B0] MVKH.S2 0x6940000,B0
> 10007AAC 4D2B8F81 || [ B1] MPYU.M1 A28,A10,A26
> 10007AB0 AF7F1E68 || [ A2] MVKH.S1 0xfe3c0000,A30
> 10007AB4 6B325AFE [ B2] STW.D2T2 B22,*+B15[12890]
> 10007AB8 57F497CE [!B1] LDH.D2T2 *+B15[29847],SP
> 10007ABC FF75C335 .word 0xff75c335
> 10007AC0 40B05A6A || [ B1] MVKH.S2 0x60b40000,B1
> 10007AC4 3003D465 [!B0] LDW.D1T1 *A0--[30],A0
> 10007AC8 446D42B2 || .word 0x446d42b2
> {;;}
> 10007ACC BEE37621 .word 0xbee37621
> 10007AD0 878C36BE || [ A1] STB.D2T2 SP,*+B15[3126]
> 10007AD4 B64F6D9F [!A2] LDBU.D2T2 *+B15[20333],B12
> 10007AD8 1E3B1AFC || ADDAW.D1X B15,15130,A28
> 10007ADC AC7B87CC [ A2] LDH.D2T1 *+B15[31623],A24
> 10007AE0 9C31B770 .word 0x9c31b770
> 10007AE4 5E281D21 [!B1] SHR.S1 A11:A10,0x0,A29:A28
>}
> 10007AE8 C$DW$L$_main$2$B, C$L1, C$RL0:
> 10007AE8 FA478AC8 || .word 0xfa478ac8
> 10007AEC 6449A150 [ B2] ADDK.S1 -27838,A8
>
>i tried to set the PC to the main func and press the run button,it works and stopped at the
for() func.
>
>i really dont know whats happend to it cus am a new in c6x dsp chip.
>i`v read some docs about the c6000 pin setting,and don`t sure if the
>c672x needs pin setting,but the datasheets never claim that it does.
>it getting me a crazy.
>
>i wish sombdoy could help me to handle this,and many thanks.
>
>------------------------------------
>
>OMAP35x EVM jump-starts low-power apps
>------------------------------------
>The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start
building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
thank you so much. the problem has been solved. I made a phone call to WINTECH,
they told me that I should copy the tixds672x.drv file under the CCS3.1 `s driver path to
cover the the same file under the ccs3.3 ...I found that
there is no such file there in the 3.3,,,so I just copy the file to the floder,run ccs,but
nothing happend.it was the same situation,the code is still wrong.so I format the
disk,reinstall the win system,made it clear.
and,install the CCSv3.1,drive the emulator,update the ccs31 program,run again the code,it
works. the c code works the same as it is in ASM.
although the problem has been solved, but i still can`t find out why this could be.
and now i would like to thank mike and peter `s help. i can`t
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
sorry i push the wrong button. i don`t speak english,and i just can use few words to discribe my mind, and really sorry that i post this reply so late.and thanks again to mike and peter.:) ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
liqunchao,
On Tue, Sep 9, 2008 at 12:02 PM, <l...@163.com> wrote:
> hello moto~~
>>a joke first~:)
>>
>>i got the same problem with the c6720 emulation operation just like what peter
described.the run button works,but the code just can`t load into the target curretly.here`s the
asm code displayed in the asm window after the EMULATOR set connected in the ccs.the first line
is where the green arrow pointed to.
>>
>>$B"*(B00001DDC 00008000 NOP 5
>> 00001DE0 000C0362 B.S2 B3
>> 00001DE4 00008000 NOP 5
>> 00001DE8 07BE09C2 SUB.D2 SP,0x10,SP
>> 00001DEC 033C62F4 STW.D2T1 A6,*+SP[3]
>> 00001DF0 023C42F6 STW.D2T2 B4,*+SP[2]
>> 00001DF4 023C22F4 STW.D2T1 A4,*+SP[1]
>> 00001DF8 00000000 NOP
>> 00001DFC 00000390 B.S1 0x1DFC (PC+28 = 0x00001dfc)
>>
>>HERE is the asm code displayed in the asm window after the program loaded..
>>there are 4 green arrows point from the second line to the fifth line like
>>
>>100079A0 c_int00:
>>$B"*(B100079A0 19004161 .word 0x19004161
>>$B"*(B100079A4 952C174B || [!A1] EXT.S2 B11,0,23,B10
>>$B"*(B100079A8 4C2960C3 || .word 0x4c2960c3
>>$B"*(B100079AC 558102A0 || [!B1] XOR.S1 8,A0,A11
>> 100079B0 CEEBD557 .word 0xceebd557
>> 100079B4 C97E4223 || .word 0xc97e4223
>> 100079B8 DD762FC6 || .word 0xdd762fc6
>> 100079BC 6BCDDB8E [ B2] LDHU.D2T2 *+B15[19931],B23
>> 100079C0 C91AAD0B [ A0] EXTU.S2 B6,21,13,B18
>>
>>after that,i press the 'go main' button,the ccs looks did nothing.
>>
>>and here are the codes in mixmode
>>
>>#include
>>#include // this is just definations to the registors
>>#include
>>
>>main()
>>{
>> int a=1,b=1,c=a+b;
>> printf("c=%x",c);
>> 10007AA0 main:
>> 10007AA0 66293DCC || [ B2] LDH.D2T1 *+B15[10557],A12
>> 10007AA4 991A148C [!A1] LDHU.D2T1 *+B15[6676],A18
>> for(;;)
>> 10007AA8 20034A6B [ B0] MVKH.S2 0x6940000,B0
>> 10007AAC 4D2B8F81 || [ B1] MPYU.M1 A28,A10,A26
>> 10007AB0 AF7F1E68 || [ A2] MVKH.S1 0xfe3c0000,A30
>> 10007AB4 6B325AFE [ B2] STW.D2T2 B22,*+B15[12890]
>> 10007AB8 57F497CE [!B1] LDH.D2T2 *+B15[29847],SP
>> 10007ABC FF75C335 .word 0xff75c335
>> 10007AC0 40B05A6A || [ B1] MVKH.S2 0x60b40000,B1
>> 10007AC4 3003D465 [!B0] LDW.D1T1 *A0--[30],A0
>> 10007AC8 446D42B2 || .word 0x446d42b2
>> {;;}
>> 10007ACC BEE37621 .word 0xbee37621
>> 10007AD0 878C36BE || [ A1] STB.D2T2 SP,*+B15[3126]
>> 10007AD4 B64F6D9F [!A2] LDBU.D2T2 *+B15[20333],B12
>> 10007AD8 1E3B1AFC || ADDAW.D1X B15,15130,A28
>> 10007ADC AC7B87CC [ A2] LDH.D2T1 *+B15[31623],A24
>> 10007AE0 9C31B770 .word 0x9c31b770
>> 10007AE4 5E281D21 [!B1] SHR.S1 A11:A10,0x0,A29:A28
>>}
>> 10007AE8 C$DW$L$_main$2$B, C$L1, C$RL0:
>> 10007AE8 FA478AC8 || .word 0xfa478ac8
>> 10007AEC 6449A150 [ B2] ADDK.S1 -27838,A8
>>
>>i tried to set the PC to the main func and press the run button,it works and stopped at
the for() func.
>>
>>i really dont know whats happend to it cus am a new in c6x dsp chip.
>>i`v read some docs about the c6000 pin setting,and don`t sure if the
>>c672x needs pin setting,but the datasheets never claim that it does.
>>it getting me a crazy.
>>
>>i wish sombdoy could help me to handle this,and many thanks.
>>
>>------------------------------------
>>
>>OMAP35x EVM jump-starts low-power apps
>>------------------------------------
>>The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start
building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
>>
>> thank you so much. the problem has been solved. I made a phone call to WINTECH,
> they told me that I should copy the tixds672x.drv file under the CCS3.1 `s driver path to
cover the the same file under the ccs3.3 ...I found that
> there is no such file there in the 3.3,,,so I just copy the file to the floder,run ccs,but
nothing happend.it was the same situation,the code is still wrong.so I format the
disk,reinstall the win system,made it clear.
> and,install the CCSv3.1,drive the emulator,update the ccs31 program,run again the code,it
works. the c code works the same as it is in ASM.
>
> although the problem has been solved, but i still can`t find out why this could be.
<mld>
Congratulations on resolving the problem!! and thanks for the feedback.
I cannot tell what the problem is since I do not use a WinTech
emulator. If I understand your experience, you say that the WinTech
did not work with the CCS 3.3 driver but it did work with the CCS 3.1
tixds672x.drv.
mikedunn
>
> and now i would like to thank mike and peter `s help. i can`t
>
> ------------------------------------
>
> OMAP35x EVM jump-starts low-power apps
> ------------------------------------
> The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start
building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
yes ,mike. that`s what i mean.the emulator dont work with the ccsV3.3,it just could read the silicon data,chang the data in the registor,but seems readback the wrond one.. and,i think the problem seems like,the program just can jump the right address,so it can`t load currectly. ------------------------------------ OMAP35x EVM jump-starts low-power apps ------------------------------------ The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x
HIHI liqunchao Sorry reply so late. Glad to hear that the problem is solved. I think this issue happens to a lot of people who use the non-SpectrumDigit emulator. Replace the drive seems to be the only way to fix it. Best regards Peter 2008/9/10 <l...@163.com> > yes ,mike. that`s what i mean.the emulator dont work with the ccsV3.3,it > just could read the silicon data,chang the data in the registor,but seems > readback the wrond one.. > > and,i think the problem seems like,the program just can jump the right > address,so it can`t load currectly. >
liqunch,
The display after the asm is loaded is not code.
and before the code is loaded, the ram is always going to contain trash.
My first thought is the linker has produced trash.
How are you loading the code?
R. Williams
---------- Original Message -----------
From: l...@163.com
To: c...@yahoogroups.com
Sent: Tue, 09 Sep 2008 13:02:12 -0400
Subject: [c6x] Re: a c6720 emulation probluem ,just like peter`s
> hello moto~~
> >a joke first~:)
> >
> >i got the same problem with the c6720 emulation operation just like what
peter described.the run button works,but the code just can`t load into the
target curretly.here`s the asm code displayed in the asm window after the
EMULATOR set connected in the ccs.the first line is where the green arrow
pointed to.
> >
> >→00001DDC 00008000 NOP 5
> > 00001DE0 000C0362 B.S2 B3
> > 00001DE4 00008000 NOP 5
> > 00001DE8 07BE09C2 SUB.D2 SP,0x10,SP
> > 00001DEC 033C62F4 STW.D2T1 A6,*+SP[3]
> > 00001DF0 023C42F6 STW.D2T2 B4,*+SP[2]
> > 00001DF4 023C22F4 STW.D2T1 A4,*+SP[1]
> > 00001DF8 00000000 NOP
> > 00001DFC 00000390 B.S1 0x1DFC (PC+28 = 0x00001dfc)
> >
> >HERE is the asm code displayed in the asm window after the program loaded..
> >there are 4 green arrows point from the second line to the fifth line like
> >
> >100079A0 c_int00:
> >→100079A0 19004161 .word 0x19004161
> >→100079A4 952C174B || [!A1] EXT.S2 B11,0,23,B10
> >→100079A8 4C2960C3 || .word 0x4c2960c3
> >→100079AC 558102A0 || [!B1] XOR.S1 8,A0,A11
> > 100079B0 CEEBD557 .word 0xceebd557
> > 100079B4 C97E4223 || .word 0xc97e4223
> > 100079B8 DD762FC6 || .word 0xdd762fc6
> > 100079BC 6BCDDB8E [ B2] LDHU.D2T2 *+B15[19931],B23
> > 100079C0 C91AAD0B [ A0] EXTU.S2 B6,21,13,B18
> >
> >after that,i press the 'go main' button,the ccs looks did nothing.
> >
> >and here are the codes in mixmode
> >
> >#include
> >#include // this is just definations to the registors
> >#include
> >
> >main()
> >{
> > int a=1,b=1,c=a+b;
> > printf("c=%x",c);
> > 10007AA0 main:
> > 10007AA0 66293DCC || [ B2] LDH.D2T1 *+B15[10557],A12
> > 10007AA4 991A148C [!A1] LDHU.D2T1 *+B15[6676],A18
> > for(;;)
> > 10007AA8 20034A6B [ B0] MVKH.S2 0x6940000,B0
> > 10007AAC 4D2B8F81 || [ B1] MPYU.M1 A28,A10,A26
> > 10007AB0 AF7F1E68 || [ A2] MVKH.S1 0xfe3c0000,A30
> > 10007AB4 6B325AFE [ B2] STW.D2T2 B22,*+B15[12890]
> > 10007AB8 57F497CE [!B1] LDH.D2T2 *+B15[29847],SP
> > 10007ABC FF75C335 .word 0xff75c335
> > 10007AC0 40B05A6A || [ B1] MVKH.S2 0x60b40000,B1
> > 10007AC4 3003D465 [!B0] LDW.D1T1 *A0--[30],A0
> > 10007AC8 446D42B2 || .word 0x446d42b2
> > {;;}
> > 10007ACC BEE37621 .word 0xbee37621
> > 10007AD0 878C36BE || [ A1] STB.D2T2 SP,*+B15[3126]
> > 10007AD4 B64F6D9F [!A2] LDBU.D2T2 *+B15[20333],B12
> > 10007AD8 1E3B1AFC || ADDAW.D1X B15,15130,A28
> > 10007ADC AC7B87CC [ A2] LDH.D2T1 *+B15[31623],A24
> > 10007AE0 9C31B770 .word 0x9c31b770
> > 10007AE4 5E281D21 [!B1] SHR.S1 A11:A10,0x0,A29:A28
> >}
> > 10007AE8 C$DW$L$_main$2$B, C$L1, C$RL0:
> > 10007AE8 FA478AC8 || .word 0xfa478ac8
> > 10007AEC 6449A150 [ B2] ADDK.S1 -27838,A8
> >
> >i tried to set the PC to the main func and press the run button,it works and
stopped at the for() func.
> >
> >i really dont know whats happend to it cus am a new in c6x dsp chip.
> >i`v read some docs about the c6000 pin setting,and don`t sure if the
> >c672x needs pin setting,but the datasheets never claim that it does.
> >it getting me a crazy.
> >
> >i wish sombdoy could help me to handle this,and many thanks.
> >
> >------------------------------------
> >
> >OMAP35x EVM jump-starts low-power apps
> >------------------------------------
> >The modular and extensible OMAP35x Evaluation Module (EVM) enables developers
to start building applications based on the OMAP35x architecture:
http://www.DSPRelated.com/omap35x
> >
> > thank you so much. the problem has been solved. I made a phone call to
> WINTECH, they told me that I should copy the tixds672x.drv file under
> the CCS3.1 `s driver path to cover the the same file under the ccs3.3
> ...I found that there is no such file there in the 3.3,,,so I just
> copy the file to the floder,run ccs,but nothing happend.it was the
> same situation,the code is still wrong.so I format the disk,reinstall
> the win system,made it clear. and,install the CCSv3.1,drive the
> emulator,update the ccs31 program,run again the code,it works. the c
> code works the same as it is in ASM.
>
> although the problem has been solved, but i still can`t find out why
> this could be.
>
> and now i would like to thank mike and peter `s help. i can`t
>
------------------------------------
OMAP35x EVM jump-starts low-power apps
------------------------------------
The modular and extensible OMAP35x Evaluation Module (EVM) enables developers to start building
applications based on the OMAP35x architecture:http://www.DSPRelated.com/omap35x