Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[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
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

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top