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.

CCS3.3 C5502sim Pin connect issue

I am following the directions from spru599d, TMS320C55x Instruction Set Simulator, for pin and port connect.

I connect INT1 to a file with "1000 (+1000) rpt EOS" but when I run the code via the debugger with a break point set in the handler, I do not get to the handler.

My code looks like:

extern interrupt void int_fpga_50_khz_isr(void)
{
...
}

void main(void)
{
 CSL_init();
 ...
 IRQ_plug(IRQ_EVT_INT1, int_fpga_50_khz_isr);
 IRQ_enable(IRQ_EVT_INT1);
 IRQ_globalEnable();
 for ( ; ; )
 {
 ...
 
}
}

If I set a breakpoint in the for() and in int_fpga_50_khz_isr I always get to the break in the for and never get the break in the handler. Any words of wisdom would be greatly appreciated.

Thanks
Rob

  • More findings on this. It seems that there are two things interfering with the pin_connect success:

    1) it is only successful if done after loading the executable and before execution, otherwise it gets a non descript error.

    2) a call to EMIF_init() will inhibit the delivery of the pulse, so I commented the call to it out.

    So, if I Pin_Connect after loading and before execution and do not call EMIF_INIT() at the top of my main() the delivery of the pulses work. A constraint I think I can live with.

    Rob.