STM32F746 (STM32F746 Discovery)

From SEGGER Wiki
Revision as of 19:39, 19 January 2017 by Erik (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

QSPI Flash Programming Support

Before continuing with this article, please read the generic article about QSPI flash programming support: QSPI_Flash_Programming_Support

Setup

  • Hardware: STM32F746 Discovery board
  • Device: STM32F746
  • SPI Flash: Micron N25Q128A (16MB flash)

Port / Pin Configuration

Alternate function Port / Pin
QSPI_CLK PB2
QSPI_CS PB6
QSPI_D0 PD11
QSPI_D1 PD12
QSPI_D2 PE2
QSPI_D3 PD13

JLinkDevices.xml

<Database>
  <Device>
   <ChipInfo Vendor="ST" Name="STM32F746NG" Core="JLINK_CORE_CORTEX_M7" />
   <FlashBankInfo Name="QSPI Flash" BaseAddr="0x90000000" MaxSize="0x01000000" Loader="ST_STM32F746G_Disco_QSPI.elf" LoaderType="FLASH_ALGO_TYPE_OPEN" />
  </Device>
</Database>

Files

The example project contains a simple counter loop which is linked into the (Q)SPI flash memory region @ address 0x90000000. The project includes the JLinkDevices.xml file as well as the ST_STM32F446_Reference.elf. It runs out-of-the-box. Please note, that IAR EWARM must at least use the J-Link DLL version V6.01a, which supports the Open Flash Loader.