cancel
Showing results for 
Search instead for 
Did you mean: 

Handling SPI software interrupts on stm32f303 discovery board

prasanna
Associate II
Posted on June 10, 2015 at 14:31

Hi all,Trying to make the serial communication between L3GD20 gyroscope and STM32F3 an software interrupt based one, the code written for it in ''demo'' is based on polling,suggest me a procedure to modify it.

4 REPLIES 4
Posted on June 10, 2015 at 17:41

The STM32 parts function in very similar manners, would suggest you go look for some example code dealing with SPI and IRQs, and leverage that with your coding skills.

STM32F30x_DSP_StdPeriph_Lib_V1.0.0\Project\STM32F30x_StdPeriph_Examples\SPI\SPI_TwoBoards\SPI_DataExchangeInterrupt

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..
prasanna
Associate II
Posted on June 11, 2015 at 14:06

Thank you sir,We are new to work on stm boards,We tried this code to enable SPI interrupts and make gyroscope to communicate with stm32f303vct6 but the code is not even getting debugged,We didn't got any errors while building,so please help us in this regard.

________________

Attachments :

main.c.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I1CF&d=%2Fa%2F0X0000000bjj%2FyxIGXZ58LTcQ41HmsiyZHnjCe347CEgWg4rsY.Q7lhM&asPdf=false
prasanna
Associate II
Posted on June 11, 2015 at 14:08

Sir,we have attached our file containing the code in the above post.Please kindly find the attachment.

prasanna
Associate II
Posted on June 12, 2015 at 07:56

Sir,we have modified the existing code(in main.c & stm32f3_discovery_l3gdc) and created a new IRQ handler ,the modified part we have attached to this post.We are unable to debug this part of code,Please notify us where the fault exists.Thanking you sir.

________________

Attachments :

IRQ_handler.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0on&d=%2Fa%2F0X0000000bjk%2FrQengSThu8jPAvxRJXKhmuZOLPvOaLW26iRxKh0r0po&asPdf=false

lgd20.txt : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I0nD&d=%2Fa%2F0X0000000bjl%2Fl8esbK6SBC6XlSItryrpTbOFmA8ur4D7PyPKaNiDQy4&asPdf=false