2016-08-05 03:06 AM
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 *) deviceAddressIf 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 #nand2016-08-05 06:27 AM
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 FMCcontaining 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.''