# BBUS\_DMA01\_INTERRUPT problem

**URL:** <https://forums.digi.com/t/bbus-dma01-interrupt-problem/4861>\
**Category:** NET+OS\
**Tags:** hardware\
**Created:** [November 29, 2011, 8:18pm UTC](https://forums.digi.com/t/bbus-dma01-interrupt-problem/4861 "2011-11-29T20:18:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinstp](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@vinstp](https://forums.digi.com/u/vinstp)\
**Post date:** [November 29, 2011, 8:18pm UTC](https://forums.digi.com/t/bbus-dma01-interrupt-problem/4861/1 "2011-11-29T20:18:23Z")

</div>

Hi all, I want to use an interrupt on serial port 1 (/com/0, configure to be UART). So when data will come to the RX pin, we will start a thread that will read the data on the port. When i use this function:  
naIsrInstall(SER1RX\_INTERRUPT,(NA\_ISR\_HANDLER)uartISR, NULL);  
I got a error that say that the interrupt: BBUS\_DMA01\_INTERRUPT is already use. So i try to do this:  
result = naIsrUninstall(BBUS\_DMA01\_INTERRUPT);  
if(result!=SUCCESS)  
{  
if(result==NA\_INVALID\_STATE)  
printf(“The ISR handler has not been initialized”);  
if(result==NA\_INVALID\_LEVEL)  
printf(“The value of id is invalid or there is no ISR installed for it”);   
}  
result = naIsrInstall(BBUS\_DMA01\_INTERRUPT,(NA\_ISR\_HANDLER)uartISR, NULL);  
if(result!=SUCCESS)  
{  
if(result==NA\_INTERRUPT\_IN\_USE)  
printf(“The interrupt level is already in use”);  
if(result==NA\_INVALID\_LEVEL)  
printf(“The value of id is invalid”);   
I can run the code above with no problem. But farther in my code when i use NASpiReadWrite with port 2 (/com/1, configure to be SPI), the software stop running. It is possible that the fonction NASpiReadWrite with /com/1 use the BBUS\_DMA01\_INTERRUPT???

---

<div class="post-metadata">

**Author:** ![bobthomas13](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bobthomas13](https://forums.digi.com/u/bobthomas13)\
**Post date:** [November 30, 2011, 11:37am UTC](https://forums.digi.com/t/bbus-dma01-interrupt-problem/4861/2 "2011-11-30T11:37:13Z")

</div>

You have to configure serial driver as :-  
#define BSP\_SERIAL\_PORT\_1 BSP\_SERIAL\_SPI\_DRIVER  
in  
\workspace\My\_Project\bsp\7\_X\connectcore9c\_a

---

<div class="post-metadata">

**Author:** ![vinstp](https://avatars.discourse-cdn.com/v4/letter/v/c0e974/32.png) [@vinstp](https://forums.digi.com/u/vinstp)\
**Post date:** [November 30, 2011, 3:09pm UTC](https://forums.digi.com/t/bbus-dma01-interrupt-problem/4861/3 "2011-11-30T15:09:11Z")

</div>

I just realize i make a mistake in my first message. My port 2 is configurate to be SPI and not /com/1…

if i do what you say a wont be able to use port 1 in uart mode (rs232)
