s32ds spi intterupt request

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32ds spi intterupt request

534 Views
rlaxortn
Contributor IV

hello. 

i am using s32k314 mcu, and s32ds 3.6.1 version. RTD is 4.0.0

and i don't use mcal, and autosar. i only can use low drivers.

 

1. To use SPI interrupts, do I need to add Dma_Ip to the drivers in S32DS Peripherals? Can I use it by adding only Intctrl_Ip without Dma_Ip?

 

2. if i can use spi interrupt without Dma_Ip, how i can find callback function? and how i set callback function name?

 

thanks.

Tags (2)
0 Kudos
Reply
1 Reply

506 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi

I checked the non-AUTOSAR MCAL version of Lpspi, and it seems the S32 Configuration Tool does not support configuring callback of LPSPI. 

I suggest referring to the following sections in RTD_SPI_UM.pdf:
6.4.4.1 Lpspi_Ip_CallbackType
6.4.5.1 Lpspi_Ip_EventType
6.4.6.4 Lpspi_Ip_AsyncTransmit

The Handler's name needs to be filled in IntCtrl_Ip, for example, Lpspi_Ip_LPSPI_0_IRQHandler. The name can be found in /RTD/src/Lpspi_Ip_Irq.c.

The name of the LPSPI callback is mentioned in "6.3 Calls to Notification Functions, Callbacks, Callouts" of RTD_SPI_IM.pdf:
6.3 Calls to Notification Functions, Callbacks, Callouts RTD_SPI_IM.png

RTD_SPI_UM.pdf and RTD_SPI_IM.pdf are located at: C:\NXP\S32DS.3.5\S32DS\software\PlatformSDK_S32K3\RTD\Spi_TS_T40D34M40I0R0\doc\

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "ACCEPT AS SOLUTION" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2333152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Es32ds%20spi%20intterupt%20request%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2333152%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehello.%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20am%20using%20s32k314%20mcu%2C%20and%20s32ds%203.6.1%20version.%20RTD%20is%204.0.0%3C%2FP%3E%3CP%3Eand%20i%20don't%20use%20mcal%2C%20and%20autosar.%20i%20only%20can%20use%20low%20drivers.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E1.%20To%20use%20SPI%20interrupts%2C%20do%20I%20need%20to%20add%20Dma_Ip%20to%20the%20drivers%20in%20S32DS%20Peripherals%3F%20Can%20I%20use%20it%20by%20adding%20only%20Intctrl_Ip%20without%20Dma_Ip%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E2.%20if%20i%20can%20use%20spi%20interrupt%20without%20Dma_Ip%2C%20how%20i%20can%20find%20callback%20function%3F%20and%20how%20i%20set%20callback%20function%20name%3F%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ethanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2333332%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20s32ds%20spi%20intterupt%20request%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2333332%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%0A%3CP%3EI%20checked%20the%20non-AUTOSAR%20MCAL%20version%20of%20%3CSTRONG%3ELpspi%3C%2FSTRONG%3E%2C%20and%20it%20seems%20the%20%3CSTRONG%3ES32%20Configuration%20Tool%3C%2FSTRONG%3E%20does%20not%20support%20configuring%20callback%20of%20LPSPI.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20suggest%20referring%20to%20the%20following%20sections%20in%20%3CSTRONG%3ERTD_SPI_UM.pdf%3C%2FSTRONG%3E%3A%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E6.4.4.1%20Lpspi_Ip_CallbackType%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E6.4.5.1%20Lpspi_Ip_EventType%3C%2FEM%3E%3C%2FSTRONG%3E%3CBR%20%2F%3E%3CSTRONG%3E%3CEM%3E6.4.6.4%20Lpspi_Ip_AsyncTransmit%3C%2FEM%3E%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EThe%20Handler's%20name%20needs%20to%20be%20filled%20in%20%3CSTRONG%3EIntCtrl_Ip%3C%2FSTRONG%3E%2C%20for%20example%2C%20%3CSTRONG%3ELpspi_Ip_LPSPI_0_IRQHandler%3C%2FSTRONG%3E.%26nbsp%3BThe%20name%20can%20be%20found%20in%20%2FRTD%2Fsrc%2FLpspi_Ip_Irq.c.%3C%2FP%3E%0A%3CP%3EThe%20name%20of%20the%20LPSPI%20callback%20is%20mentioned%20in%20%22%3CSTRONG%3E6.3%20Calls%20to%20Notification%20Functions%2C%20Callbacks%2C%20Callouts%3C%2FSTRONG%3E%22%20%3CSTRONG%3Eof%20RTD_SPI_IM.pdf%3C%2FSTRONG%3E%3A%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226.3%20Calls%20to%20Notification%20Functions%2C%20Callbacks%2C%20Callouts%20RTD_SPI_IM.png%22%20style%3D%22width%3A%20822px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%226.3%20Calls%20to%20Notification%20Functions%2C%20Callbacks%2C%20Callouts%20RTD_SPI_IM.png%22%20style%3D%22width%3A%20822px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F379344i070B718EBB392D29%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%226.3%20Calls%20to%20Notification%20Functions%2C%20Callbacks%2C%20Callouts%20RTD_SPI_IM.png%22%20alt%3D%226.3%20Calls%20to%20Notification%20Functions%2C%20Callbacks%2C%20Callouts%20RTD_SPI_IM.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ERTD_SPI_UM.pdf%3C%2FSTRONG%3E%20and%20%3CSTRONG%3ERTD_SPI_IM.pdf%3C%2FSTRONG%3E%20are%20located%20at%3A%20C%3A%5CNXP%5CS32DS.3.5%5CS32DS%5Csoftware%5CPlatformSDK_S32K3%5CRTD%5CSpi_TS_T40D34M40I0R0%5Cdoc%5C%3C%2FP%3E%0A%3CP%3EBest%20Regards%2C%3CBR%20%2F%3ERobin%3CBR%20%2F%3E-------------------------------------------------------------------------------%3CBR%20%2F%3ENote%3A%3CBR%20%2F%3E-%20If%20this%20post%20answers%20your%20question%2C%20please%20click%20the%20%22ACCEPT%20AS%20SOLUTION%22%20button.%20Thank%20you!%3C%2FP%3E%0A%3CP%3E-%20We%20are%20following%20threads%20for%207%20weeks%20after%20the%20last%20post%2C%20later%20replies%20are%20ignored%3CBR%20%2F%3EPlease%20open%20a%20new%20thread%20and%20refer%20to%20the%20closed%20one%2C%20if%20you%20have%20a%20related%20question%20at%20a%20later%20point%20in%20time.%3CBR%20%2F%3E-------------------------------------------------------------------------------%3C%2FP%3E%3C%2FLINGO-BODY%3E