Skip to main content
Fadi.Albaghdadi
Associate III
May 21, 2021
Question

how i can create file .flm for w25q128 and set the setting in keil

  • May 21, 2021
  • 2 replies
  • 5241 views

I have tried a lot in creating a FLM file as well as how to configure the necessary settings in the Keil program. I am using w25q128 serial memory with quadspi protocol with stm32f746igt processor

Use this method because the processor is low on memory

#quadspi #w25q128

This topic has been closed for replies.

2 replies

Tesla DeLorean
Guru
May 21, 2021

Do you have your own BSP code which works successfully with the W25Q128 in your system? That supports, read, write, erase, etc?

How well tested is that? Can you write a .BIN or .HEX from the UART to the QSPI Flash successfully? I would generally get all that working properly before trying to port it into a .FLM file.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Fadi.Albaghdadi
Associate III
May 21, 2021

Yes it works well and use this example

Tesla DeLorean
Guru
May 21, 2021
Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Fadi.Albaghdadi
Associate III
May 22, 2021

Unfortunately it did not work ever. Since Keil cannot see the file that you sent me to try it. Can I have the basic program that generates the memory code?

struct FlashDevice const FlashDevice = {

  FLASH_DRV_VERS,       // Driver Version, do not modify!

  "W25Q128 Flash",  // Device Name 

  EXTSPI,           // Device Type

  0x10000000,         // Device Start Address

  0x01000000,         // Device Size in Bytes (256kB)

  4096,            // Programming Page Size

 // 0,             // Reserved, must be 0

  0xFF,            // Initial Content of Erased Memory

  200,            // Program Page Timeout 100 mSec

  3000,            // Erase Sector Timeout 3000 mSec

// Specify Size and Address of Sectors

  0x001000, 0x000000,     // Sector Size 4kB (4096 Sectors)

  SECTOR_END

};

I tried to generate the keil program code it sees but it does not work Are the settings correct