AnsweredAssumed Answered

CCES problem with Sharc interrupts

Question asked by mdabrowski on Jun 3, 2016
Latest reply on Jun 13, 2016 by Kader.M

Hello,

I am new with AD DSPs.

I am using cusom board with ADSP-21363 Sharc. I am working with CCES 2.2 and ICE1000 Debuger.

I try to use interrupts but always when interrupt is generated program jump to _fatal_error label:

On Console output i see:

A non-recoverable error or exception has occurred.

Description:   Configuring a build-time heap during setup returned an error.

  General Type:  LibraryError

  Specific Type: HeapSetupFailure

  Error PC:      0x00090fe5

 

I tried with core timer interrupts and with general purpose timers. The same effect.

 

example:

 

#include <services/int/adi_int.h>

#include "system/adi_initialize.h"

 

static volatile uint8_t ctr;

 

 

void tmrEvt(int sigInt)

{

  ctr++;

  *pTMSTAT = TIM2IRQ;

}

 

int tmrInit(void)

{

  *pTMSTAT = TIM2DIS;

  *pTM2PRD = 0x7FFFFFFF;

  *pTM2CTL = TIMODEEXT | PRDCNT | IRQEN;

  *pTMSTAT = TIM2EN;

  adi_int_InstallHandler(ADI_CID_GPTMR2I,(ADI_INT_HANDLER_PTR)tmrEvt, 0, true);

}

int main(void)

{

  adi_initComponents();

  tmrInit();

  while(1);

}

 

Any ideas why?

Outcomes