cancel
Showing results for 
Search instead for 
Did you mean: 

FMC NAND problem

Konmax
Associate II
Posted on August 05, 2016 at 12:06

Hi, I have a problem when you use the microcontroller STM32F746(NUCLEO-F746ZG)   FMC together with the NAND memory K9F1G08U0E. The documentation states that it is sufficient to read the data at the address 0x80000000 (FMC BANK3)

Accordingly, the data read out in this expression:

* (Volatile uint8_t *) deviceAddress

If such an expression look in the debugger, then each update watch window in IAR is sequential read and seen on the oscilloscope single reading.

But when doing:

volatile uint8_t tmp = * (volatile uint8_t *) deviceAddress;

after following instructions LDRB R0 [R7]

wherein R7 contains an address 0x80000000.

32 bytes are read from the NAND memory data (RE 32 cycles) and reading address 0x80000000 outputs the same data.

#stm32f7 #fmc #nand
1 REPLY 1
Posted on August 05, 2016 at 15:27

Is it cached and filling a cache line? Did you reconfigure the MPU?

''CPU AXI bus access 1: The target of this AXI bus is the external memory FMC

 

containing code or data. For the NAND Bank mapped at address 0x8000 0000 to

 

0x8FFF FFFF, the MPU memory attribute for this space must be reconfigured by

 

software to Device.''

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..