Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI transfer problem between SAM D21 and STM32 on MKRWAN1310 #86

Open
tohlh opened this issue Feb 17, 2021 · 2 comments
Open

SPI transfer problem between SAM D21 and STM32 on MKRWAN1310 #86

tohlh opened this issue Feb 17, 2021 · 2 comments

Comments

@tohlh
Copy link

tohlh commented Feb 17, 2021

I've managed to use SPI to transmit a byte from SAM D21 as master to STM32 as slave but not the other way around. The example codes I tested with HAL_SPI_TransmitReceive, HAL_SPI_TransmitReceive_IT and HAL_SPI_TransmitReceive_DMA on STM32 can be seen from https://github.com/tohlh/MKRWAN1310-SPI-Test. Appreciate if anyone can offer some help.

@tohlh
Copy link
Author

tohlh commented Feb 19, 2021

I also tested the device in the following GPIO modes on PB14 (MISO) pin:

  1. GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; GPIO_InitStruct.Pull = GPIO_NOPULL
  2. GPIO_InitStruct.Mode = GPIO_MODE_AF_OD; GPIO_InitStruct.Pull = GPIO_PULLUP

...but none of them is working.

@tohlh
Copy link
Author

tohlh commented Feb 22, 2021

Could it be possible that PA15 on SAM D21 is not connected to PB14 on STM32?

I was trying to detect the interrupt on PB14 if it's raised to HIGH on SAM D21, but nothing was detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant