cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F405 HAL SPI Communication Problem

Sandeep Dhokne
Associate II
Posted on July 20, 2017 at 06:22

Hello,

I want to interface STM32F405 with Atmel memory chip AT45DB041.

In which i want to send hex commands and character array for write and read.

which API is most suitable for this application.

When i tried send a hex command then it's a error!!!

please help me to resolve this issue.

doe.john.016

st.mcu

‌

Thank you.

null
2 REPLIES 2
S.Ma
Principal
Posted on July 20, 2017 at 09:28

A normal SPI with NSS by SW, MOSI+DMA, MISO+DMA, SCK should be able to do the trick.

However, it would be worth checking if SDIO meet the spec of this part in 1 bit mode.

The benefit? The external memory would be mapped directly by HW into the STM32 addressing space in read mode: Can be used for DMA2D/DMA/XIP (execute in place).... if unsure, maybe connect both SPI and SDIO-1bit pins to the serial memory for a future SW upgrade. With proper looking at the GPIO AF table in the datasheet, you might have a smart selection of the GPIO pins. 

Posted on July 23, 2017 at 07:50

Thank you.