[ARM] SPI with STM32F103 as master and M25P80 as slave

Status
Not open for further replies.

harshan_behra

Newbie level 4
Joined
Dec 8, 2014
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
39
Greetings,
i am trying to interface M25P80 slave with stm32f103 master the main thing is after writing write enable instruction It won't set WEL bit in RDSR(0x05) !!! i am running SPI1 in master mode pin configuration for nss,sck,miso,mosi as GPIO_Mode_AF_PP, 50MHZ and HOLD as GPIO_Mode_Out_PP, 50MHZ
SPI configuration as 8bit data mode, msbfirst, CPOL =1, CPHA =1
after enable the RCC to GPIO pins and SPI1 making Chip select to low and HOLD to high then
->making chip select to low
->sending write enable(0x06)
->checking for status while(checkstatus(WEL) == Reset);
but after above it won't step to next instruction i think it won't set the WEL bit in status register !!
i observed using oscilloscope that MOSI sends the instruction correctly, and HOLD(low active) and W(write protect low active) is also high
but where might be the bug???

Thanks and Regards.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…