Does someone tested an external sram (16Bit) with Abraham memory test?
- May 6, 2020
- 4 replies
- 4316 views
Hi!
I have an external sram connected to a STM32H743. It has a 16 bit wide data bus.
I started a memory test and got lots of errors. So i had to look at the data in the sram with STM32CubeIDE 1.30.
For example:
I fill the complete memory with 0xFFFF. (no problem)
I'm writing 0x0000 at address 0x60001000. (no problem)
I'm writing 0x0000 at address 0x60001002. (no problem)
...
I'm writing 0x0000 at address 0x60001020. The data are set to 0x0000 at address 0x60001022, 0x60001024 and 0x60001026 too. :(
If i start with a higher address the error is at the address plus offset 0x20 :\
c++ code looks like:
*reinterpret_cast<uint16_t volatile*>(0x60001000) = uint16_t(0);
*reinterpret_cast<uint16_t volatile*>(0x60001002) = uint16_t(0);
...
FMC bank1 is set to sram (0) and 16bit width (1). Write FIFO is disabled. Data cache is disabled.
The data inside the ram is also not correct without starting the ide.
Why does the FMC generate four Writes? Do I have to change the configuration of AXI Target 5? Is there another fifo or cache?
Can anybody give me a hint?
Kind regards
Daniel