This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Developing mp3 decoder for c64x+ CPU with sysbios and RTSC platform in ccsv5.

Other Parts Discussed in Thread: OMAP3530, SYSBIOS

 

Hi, everyone 

Let me tell you guys what i am using first,

CCSv5.0.2.00006

OMAP3530 beagleboard.

xds100v2 emulator 

Windows xp/windows 7

Note: i am not using any of the linux based applications.

I had mp3 decoder code for c64x+ CPU which i had successfully debugged and tested usng the CCSv5 and  DSP/BIOS 5 okay.

Now choosing empty RTSC project, i targeted to use CCSv5 along with SYSBIOS and XDCtools.

I changed my code according to that up to my knowledge.Here i am attaching my project every details is there itself.

3568.MP3Decoder.zip

In the main file MP3Decoder.c, there are some lines like this,

#include <xdc/std.h>

#include <ti/sysbios/family/c64p/Cache.h>

#include "TestAppDecoder.h"

#include "imp3dec.h"

#include "alg.h"

 

/* Input buffer allocation */

XDAS_UInt8 inputData[INPUT_BUFFER_SIZE];

 

/* Output buffer allocation */

XDAS_UInt16  outputData[OUTPUT_BUFFER_SIZE];

 

/* Output buffer allocation */

XDAS_Void TestApp_EnableCache(void);

 

extern const IMP3DEC_Fxns MP3DEC_TII_IMP3DEC; 

.

.

.

.................................

Note: rest of the header files and stuff is there in the project itself

now when i am building the project, i am getting the error like this

 

Description Resource Path Location Type

errors encountered during linking; "MP3Decoder.out" not built MP3Decoder C/C++ Problem

Linking failed. Check the Console window for details. MP3Decoder Unknown C/C++ Problem

unresolved symbol _MP3DEC_TII_IMP3DEC, first referenced in ./TestAppDecoder.obj MP3Decoder C/C++ Problem

But, when i am declaring this one as below prescribed one

const IMP3DEC_Fxns MP3DEC_TII_IMP3DEC;

then i am getting no error and .out file is generating.while running program there is instruction fetch problem between core registers.Anyway this has to be like this, because i have changed declaration to constant from global constant (extern relates to the global declaration, i mean its value exists equivalent to whole program.)
So, to get rid of the error with instruction fetch, i need to declare it as extern const, bu i am  getting problems with it. Is there any kind of including file am i missing or something ?

Instruction fetch error was:

If anybody knew something about it, then download the project and can have shot on this. suggestions will be welcomed. If my information is not up to he required to someone, then please let me know about it.

Regards,

Nitin Mewada

  • Hi everyone,

    I resolved the _MP3DEC_TII_IMP3DEC, problem.

    But what about instruction fetch error,

    [C64XP_0] Decoding ..\Input\davinci.mp3 file. Please wait..................

    [C64XP_0] A0=0x9f7bcefb A1=0x1

    A2=0x0 A3=0x2

    A4=0x4 A5=0x42a

    A6=0x80007890 A7=0x0

    A8=0x1080a480 A9=0x0

    A10=0x1 A11=0x80000000

    A12=0xfffffff8 A13=0x80007890

    A14=0x0 A15=0x0

    A16=0x8000759a A17=0x0

    A18=0x80007590 A19=0x0

    A20=0x0 A21=0xffffffff

    A22=0x0 A23=0x107fdd14

    A2[C64XP_0] 4=0x0 A25=0x0

    A26=0x0 A27=0x0

    A28=0x0 A29=0x0

    A30=0x23 A31=0x72

    B0=0x1 B1=0x0

    B2=0x0 B3=0x10805bb8

    B4=0x0 B5=0x8

    B6=0x42 B7=0x80008e04

    B8=0x80005d87 B9=0x80007590

    B10=0x0 B11=0x80004398

    B12=0x1680 B13=0x0

    B14=0x80000000 B15=0x80007778

    B16=0xa B17=0x445c737[C64XP_0] 4

    B18=0x0 B19=0x0

    B20=0x69 B21=0x0

    B22=0x0 B23=0x0

    B24=0x0 B25=0x0

    B26=0x0 B27=0x0

    B28=0x0 B29=0x80004888

    B30=0x0 B31=0xffffffff

    NTSR=0x1000c

    ITSR=0x0

    IRP=0x0

    SSR=0x0

    AMR=0x0

    RILC=0x0

    ILC=0x0

    Exception at 0x9f7bcef8

    EFR=0x2 NRP=0x9f7bcef8

    Internal exceptio[C64XP_0] n: IERR=0x1

    Instruction fetch exception

    The same is there in the error picture of previous post, please can anybody help me in this one.

    As in the RTSC plateform, for omap3530.evm 

    L1D=32k

    L1P= 0k

    L2 =0k

    my code memory in the IRAM and data and stack are in the DDR2. I have optimization level -O3.

    suggestions are welcomed.

    Regards

    Nitin Mewada

     

  • We’re closing out this old thread. If you feel there is more discussion on the topic, please feel free to "Reply".