Skip to main content
Visitor II
October 17, 2023
Question

STM32F746 FMC NWE periodically goes high

  • October 17, 2023
  • 3 replies
  • 1914 views

Hello. I'm using STM32F745VET.

I want to connect SRAM via FMC, but when I run a simple app, the waveform look like below.

image.png

The code I made is just write data "0x28". and It does not work.

As you see, NWE signal work high-low periodically. I think this is the problem why data failed to write to SRAM.

Is there any idea why NWE works like that?

This topic has been closed for replies.

3 replies

waclawek.jan
Super User
October 17, 2023

I'm not sure why a single write would generate multiple write pulses, but generally, the Cortex M7 core is very complicated, including caches, and reads and writes are far from being simple and straighforward.

Start with setting the FMC area as Device in MPU, or use remap if it's available and sets the desired area as Device without setting in MPU.

JW

Associate II
November 8, 2023

Hi @Kourinho,

Just my 2p worth, but it looks like your NWE is set to be active low. The changes of value from '0' to '1' look like the end of access. Could you post your code that you are using to achieve this wave form? It sort of looks like you are accessing a long word (32bits) thats being cut up into 2-16 bit accesses.

Show us your code...

Toneski.

mƎALLEm
ST Technical Moderator
November 8, 2023

Hello,

Please post the code that reproduces the behavior so we can help you.

Thanks

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.