cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F417ZG burn data to external NOR flash issue

i51211314
Associate II
Posted on August 03, 2012 at 06:16

Hi, guys

Recently, i'm working on a board based on STM32F417ZG chip. And i connect the FSMC bank1 NE1 to M29W128GH NOR flash chip, the address is 0x6000 0000. My tool chain is ARM MDK + J-link, and i make the flash algorithm according to 'Flash\S29GLxxx' in Keil MDK, and make the NOR flash init file according to 'FLASH_NOR.ini' in 'STM32F10x_StdPeriph_Examples\FSMC\NOR_CodeExecute\binary'. Now, my problem is, i can erase the NOR flash chip, but it always failed at address 0x6008 0000 in programming, that say, i can only write 512k data to the NOR flash!!! This is so weird, because i also write one NOR test program which runs in the internal flash, just like 'STM32F10x_StdPeriph_Examples\FSMC\NOR' do, everything is OK. I can't find anything wrong, so does anyone can give me some suggestions???

Thanks.

I attach my NOR init file and flash algorithm here.

#metoo #fsmc #stm32 #stm32f4
6 REPLIES 6
xavier
Associate
Posted on December 12, 2014 at 17:39

Hello Vincent,

I am having exactly the same problem, did you manage to eventually solve it? Does anyone have any suggestion?

Thanks,

Posted on December 12, 2014 at 17:59

Try to describe your particular problem in as much detail as possible.

JW
Posted on December 12, 2014 at 18:45

One might reasonably conclude that you've failed to initialize the FSMC pin, clocks, properly, or wired it up incorrectly.

Restate your question with actual details relating to your implementation that can be critically analyzed.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
jpeacock
Associate II
Posted on December 14, 2014 at 22:02

The NOR is a 2MByte x 8 (or 1Mword x 16) device, so it would require 21 or 22 address lines, 21 in 16 bit mode plus byte lanes, A0 on NOR not used, or 22 in 8 bit mode with A0 connected. 

If FSMC is configured for 16 bit mode (optimum for transfers) then FSMC A0-A20 goes to NOR A1 to A21, A0 unused.  The two byte lanes control byte read and write.

If FSMC is set to 8 bit mode, connect FSMC A0-A21 to NOR A0-A21.  Access the NOR a byte at a time.

Did you set up all the address lines?  Sounds like the hi address bits are not being sent to the NOR.

  Jack Peacock

hainguyen9x4
Associate II
Posted on July 27, 2016 at 12:30

Hello every one!

I'm using flash memory Spansion Fl256S

I try with code on threat :[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Query%20on%20External%20flash%20memory%20interfacing%20with%20STM32F072XX%20over%20SPI%20bus&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=97]https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FQuery%20on%20External%20flash%20memory%20interfacing%20with%20STM32F072XX%20over%20SPI%20bus&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=97

But I can't Select one sector to read data from

Have you  

success  on it, pleases help me!

So sorry about my skill English!!!

Thanks

Posted on July 27, 2016 at 13:58

Not sure this is an appropriate thread to discuss SPI Flash, let's do that on the other thread..

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