Hello All,
Currently am working on OMAPL-137. Also, i want to work on spi interrupt. sm470r1b1m is my master and omapl-137 is my slave. Whenever i send data from my master and i need to recieve the data under the interrupt mechanism. But, i don't have the code available for spi slave configuration.
Currently my rx-uart is working under interrupt mechanism. I have the changes in the .asm file of the example project. Where i have configured for SPI0 interrupt and when i build it . It gives the following errors.
For uartrx pin this is the sample code and it is working.
static void setup_DSP_INTC (void)
{
// Map UART2 system interrupts to DSP INT4
CSL_FINS(dspintcRegs->INTMUX1, DSPINTC_INTMUX1_INTSEL4,
CSL_INTC_EVENTID_UARTINT2);
// Assign the address of the IST to the IST pointer
ISTP = (unsigned int)intcVectorTable;
// Clear all CPU maskable interrupts
ICR = DSPINTC_IST_ALL_MASK_INT;
// Enable INT4 interrupts
IER = DSPINTC_IST_NMI | DSPINTC_IST_INT4;
}
Where do i find this below registers in the datasheet?? Please tell me wrt to OMAPL-137 processor.
ISTP ??
ICR ??
IER ??
These are the changes made in .asm file
; Global symbols defined here
.global _intcVectorTable
.global _c_int00
.global _UART2_isr
.global _SPI_isr // This is what i have done
;******************************************************************************
;* VEC_ENTRY: Macro that instantiates one entry in the interrupt service table.
;******************************************************************************
VEC_ENTRY .macro addr
STW B0,*--B15
MVKL addr,B0
MVKH addr,B0
B B0
LDW *B15++,B0
NOP 2
NOP
NOP
.endm
;******************************************************************************
;* vec_dummy: Dummy interrupt service routine used to initialize the IST.
;******************************************************************************
_vec_dummy:
B B3
NOP 5
;***************************************************************************************
;* Map interrupt service table (IST) to corresponding interrupt service routines (ISR)
;***************************************************************************************
.sect ".vecs"
.align 1024
_intcVectorTable:
_vector0: VEC_ENTRY _c_int00; RESET
_vector1: VEC_ENTRY _vec_dummy; NMI
_vector2: VEC_ENTRY _vec_dummy; RSVD
_vector3: VEC_ENTRY _vec_dummy ;RSVD
_vector4: VEC_ENTRY _UART2_isr ;DSP Maskable INT4 : Mapped to func 'UART2_isr'
_vector5: VEC_ENTRY _SPI_isr ;DSP Maskable INT5 : Empty
_vector6: VEC_ENTRY _vec_dummy ;DSP Maskable INT6 : Empty
_vector7: VEC_ENTRY _vec_dummy ;DSP Maskable INT7 : Empty
_vector8: VEC_ENTRY _vec_dummy ;DSP Maskable INT8 : Empty
_vector9: VEC_ENTRY _vec_dummy ;DSP Maskable INT9 : Empty
_vector10: VEC_ENTRY _vec_dummy ;DSP Maskable INT10: Empty
_vector11: VEC_ENTRY _vec_dummy ;DSP Maskable INT11: Empty
_vector12: VEC_ENTRY _vec_dummy ;DSP Maskable INT12: Empty
_vector13: VEC_ENTRY _vec_dummy ;DSP Maskable INT13: Empty
_vector14: VEC_ENTRY _vec_dummy ;DSP Maskable INT14: Empty
_vector15: VEC_ENTRY _vec_dummy ;DSP Maskable INT15: Empty
I have made the changes for SPI0 . But, when i build it gives me the
unresolved symbol _SPI_isr, first referenced in ./intvecs.obj HT_DSP_SPI_INTRPT_TESTING C/C++ Problem
unresolved symbol _UART2_isr, first referenced in ./intvecs.obj HT_DSP_SPI_INTRPT_TESTING C/C++ Problem
Waiting for reply at the earliest!!
Thanks & Regards
Naveen Chandra