2013-02-01 03:10 AM
Hi,
I have connected external flash memory to my board and using stm32f103vet6 controller. I want to drive this flash memory. So how can i drive that one? And after driving flash memory how can i make sure that flash memory drived? Means after driving it successfully how can i understand that i have finished with driving part of flash memory? I have gone through FSMC configuration part, i get confused in that. Reply me soon. Thanks and Regards, Jonam2013-02-01 06:44 AM
NAND or NOR Flash? Does it have a part number?
FSMC will depend on how fast it is, how it's wired. Look at the ST EVAL series boards both for wiring, and software examples/templates. NAND Flash will require software to manage the blocks and handle the ECC, a Google search should bring up plenty of examples. NOR review the data sheet for programming/erase details, examples in Keil tool chain, on the net.2013-02-01 08:34 PM
2013-02-03 10:21 PM
2013-02-04 07:31 AM
An infinite loop. Probably a Hard Fault. This will likely occur if you touch an address not supported by the CPU, your handler or debug process will need to decode the fault state the CPU stacked to identify the address and registers at the faulting instruction. The external memory should be in the 0x60000000 region. Remember NAND is not a linear access device.
Look at your .MAP and check the address of HardFault_Handler. The NAND is 64MB 8-bit wide, accessed with 512+16 byte pages, 16K+512 blocks.