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.

function not entering from start point

Hi

I was trying the BIOS audio example and did some simple modification to see of what and how the program is running. Basically in the audio.c I am assign the pipRx buffer to a tempbuffer. I am trying to send this buffer to cbrev , which is an asm file also found in the library supplied. however when the function gets called from the C program, I noticed that it does not begin from the function start, but jumps to middle of the function directly. It is thus not able to read the function parameters correctly, and hence I am not getting the expected result. I am not understanding why the function does not get called from the point where  it starts with _cbrev. attaching screenshots

  • Well it looks like the PC and the pointer displayed in the CCS GUI are not synchronised. While the PC is having address of inst#1 the Gui pointer is off by a few instructions below at maybe Inst#4 and hence the confusion. I will try to debug more and see how and where it goes doing single step.

  • I am also observing some offset between the PC and the actual instruction being executed.

    For eg while the PC is pointing to 28006 : MVKD *SP(4h),12h the CPU executes and instruction from 2 steps before

    28004 : RSBX SXM

    Is this offset normal?