Initiate an SRAM read operation

I program the ARM chip (STM32F2) "bare-metal". In particular, I would like to read the values ​​stored in external SRAM. Reading the reference manual I understand that such memory transactions are performed using the FSMC (Flexible Static Memory Controller).

I understand how to initialize FSMC for SRAM read / write operations. (I have to set the corresponding GPIO contacts in the correct alternative function, change the group of control registers, etc.). However, I do not see how to initiate, for example, a read operation.

What registers should I touch to read (or write) SRAM after initialization?

+4
source share
1 answer

As I understand it, you are accessing memory using the FSMC. So, all you have to do is decide in which address space to display SRAM, and then just access it through pointers initialized to indicate there.

+4
source

Source: https://habr.com/ru/post/1401419/


All Articles