![]() |
![]() ![]()
Experimental Physics and
| ||||||||||||||||
|
Hi Andrew, Thank you very much Andrew for your response. Regarding the patch ( GitHub PR #206), we are using it. This patch fixed the problem that we had with the PMAC driver (https://epics.anl.gov/tech-talk/2022/msg00026.php). Then, we continued with the Bancomm driver using the same patch. Regarding the “spurious interrupt”, I was searching for information about it and trying to understand the problem. Yesterday, I created an IOC only with the Bancoom driver to isolate the problem, where the IOC only initializes the Bancom driver and the error appears again. The BC635VEC macro expands out to 0x40. The driver, after associating the isr_bc635 function with the interrupt, disables the system clock because it will use the one provided by Bancomm. To do this, it calls the sysClockOff function which calls directly to the rtems function BSP_disconnect_clock_handler(). Perhaps this is causing the exception. The system does not return the prompt and keeps showing the message "spurious interrupt: 32" indefinitely. Honestly, thank you very much Andrew for your help in solving the problems I have been encountering. It is appreciated! #define BC635VEC 0x40 void sysClockOff(void) { #if defined (__rtems__) BSP_disconnect_clock_handler(); #endif #if defined (vxWorks) sysClkDisable(); #endif } int bcClkRateSet (int intPerSecond, int intPerTick) { /* Set up periodic pulse frequency */ if (intPerSecond > 0) { …. /* Ensure interrupt source enabled */ pbc635->mask = pbc635->mask | 0x02; /* Clear interrupt status */ pbc635->intstat = pbc635->intstat | 0x02; /* Save tick frequency value */ tickFrequency = intPerSecond/bcIntPerTick; bcUseper = TRUE; /* Set flag to use BC periodics */ sysClockOff(); /* disable system clock */ clock_rate_set(tickFrequency); /* set system tick rate */ } else { /* re-enable system clock */ sysClockOn(); …. } Regards, El lun, 24 ene 2022 a las 21:26, Johnson, Andrew N. (<anj at anl.gov>) escribió:
| ||||||||||||||||
ANJ, 14 Sep 2022 |
![]() · Download · Search · IRMIS · Talk · Documents · Links · Licensing · |