STM32F417ZG burn data to external NOR flash issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-08-02 9:16 PM
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- Labels:
-
FMC-FSMC
-
STM32F4 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-12 8:39 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-12 8:59 AM
Try to describe your particular problem in as much detail as possible.
JW- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-12 9:45 AM
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.Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2014-12-14 1:02 PM
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- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-27 3:30 AM
success on it, pleases help me!
So sorry about my skill English!!!Thanks- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2016-07-27 4:58 AM
Not sure this is an appropriate thread to discuss SPI Flash, let's do that on the other thread..
Up vote any posts that you find helpful, it shows what's working..
