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.
Thank you Susan.
My problem solved finally.
You have to clear MODER register before you set if you work with PA15. It was my CS pin. I checked all of my SPI registers but I don't care GPIO that much and it dropped me to trap.
By the way my final Read Jedec ID function is:
// 8.2.27. Read...
First signal is DATA IN,
bottom signal is CLK,
I am trying to send 0x9F (1001 1111)
and I think its OK?
But when I check Data Out pin of flash, i see 0xFF first for 1-2 times, and then nothing.
But I need to see 0xEF:
What am I missing? :-(
OK. I will try to read JEDEC ID.
I think understand this now, about SPI communication isn't send & read, I should do it all once.
So if I want to read jedec id then my function will be like:
uint8_t read_ID(uint8_t data)
{
//base config.
uint32_t spixbase = 0x00;
spixbase = (uint32_t)SPI3...
Hello,
I am trying to log data via SPI to external flash with STM32F302VB.
(Winbond W25Q32FV)
I guess SPI section is OK, I tested it with logic analyzer and able to see the data I sent. There is no problem. But when I try to talk with flash, I see meaningless(irregular) values (like: 0xFF...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.