Part Number: TMS320C6654
Other Parts Discussed in Thread: SYSBIOS,
Tool/software: TI-RTOS
Hi,
My systeme is using gpio 18 falling edge as interrupt source. The first instruction of my interrupt routine is toggling gpio 22.
I've measured with oscilloscope time between falling edge of gpio 18 and edge of gpio 22 and get long time with jitter (even if this is the only interrupt that should occured):
most of measured time are between 1.45 µs and 1.65 µs or 1.65 µs and 1.85 µs but could sometimes reach 2.5 µs. I'm very far of the 233 cycles for hwi dispatcher mentionned in sysbios benchmark
My tms320c6654 is running at 850 MHz and I'm using sysbios 6.46.00.23, xdctool 3.32.00.06, compiler 7.4.16.
I've tried to compile with latest compiler 7.4.21. It doesn't change the 1.45 to 1.65 µs range, but it removed 1.65 to 1.85 µs and the longuer time.
Do you think these times are normal? If not how explain them (configuration, compil option, ...)?
Is there a way to trace execution from my gpio falling edge (I have a xds560v2stm)
This is my interrupt configuration:
int hwi_gpio18 = 6;
int sys_interrupt_gpio18 = 2;
int host_interrupt_gpio18 = 1;
CpIntc_mapSysIntToHostInt(0, sys_interrupt_gpio18, host_interrupt_gpio18);
CpIntc_enableHostInt(0, host_interrupt_gpio18);
CpIntc_enableSysInt(0, sys_interrupt_gpio18);
CpIntc_dispatchPlug(sys_interrupt_gpio18, &Application::interruptGpio18, sys_interrupt_gpio18, TRUE);
Hwi_Params_init(¶ms);
params.eventId = CpIntc_getEventId(host_interrupt_gpio18);
params.enableInt = 0;
params.arg = host_interrupt_gpio18;
hwi_handle_gpio18 = Hwi_create(hwi_gpio18, &CpIntc_dispatch, ¶ms, &eb);
Hwi_enableInterrupt(hwi_gpio18);
Thanks for your help
Following screenshot show gpio18 in khaki and gpio 22 in blue








