XC Memory access exception

Technical questions regarding the XTC tools and programming with XMOS.
Bayanaa
Active Member
Posts: 33
Joined: Fri Feb 07, 2014 3:03 pm

XC Memory access exception

Post by Bayanaa »

I am testing dsp applications in c on xr-usb-audio-2.0-mc.

after compiling the source code:

Code: Select all

Creating app_usb_aud_l2_2ioxx.xe
Constraint check for "tile[0]" (node "0", tile 0):
  Cores available:            8,   used:          4 .  OKAY
  Timers available:          10,   used:          8 .  OKAY
  Chanends available:        32,   used:         17 .  OKAY
  Memory available:       65536,   used:      39288 .  OKAY
    (Stack: 2324, Code: 23144, Data: 13820)
Constraints checks PASSED.
Constraint check for "tile[1]" (node "1", tile 0):
  Cores available:            8,   used:          3 .  OKAY
  Timers available:          10,   used:          4 .  OKAY
  Chanends available:        32,   used:          5 .  OKAY
  Memory available:       65536,   used:      24972 .  OKAY
    (Stack: 10200, Code: 10516, Data: 4256)
Constraints checks PASSED.
Build Complete
there is enough memory space. However when I run the .xe xtimeCOmposer gives following error.

boardxrun: Program received signal ET_LOAD_STORE, Memory access exception.
[Switching to tile[1] core[2]]

What is the problem. Please let me know.

Thank you


User avatar
Ross
XCore Expert
Posts: 972
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

You haven't given us much to go on!

Where does the debugger say the exception has occurred?
Bayanaa
Active Member
Posts: 33
Joined: Fri Feb 07, 2014 3:03 pm

Post by Bayanaa »

I added dsp.xc with one core between decouple and audio. In dsp.xc cfuntion.c sits. In which I am trying to implement ringbuffer. Ring buffer (including pointer) code causes this error. But pointer is used in C code not XC.