Skip to main content
Y.P. Lin
Associate
November 22, 2019
Question

I want use external loader in STM32F767 with W25Q256, but have no idea,anyone can help me or give me some advice.

  • November 22, 2019
  • 6 replies
  • 1655 views

If i want to use external loader and not in basic list,how can i  write a custom external loader?

I only use cubeIDE and cubeMX,can I write the file(*.stldr)?

I find the W25Q256.flm but can't use it.

This topic has been closed for replies.

6 replies

Tesla DeLorean
Guru
November 22, 2019

What pins are you using for the QSPI interface?

Sorry not using CubeIDE nor CubeMX, so can't help you with those. The .STLDR is an ELF object, the linker should be able build these.

My primary recommendation would be start by getting a working BSP that can erase, write and read the device. Test it thoroughly in an environment you can debug in.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Y.P. Lin
Y.P. LinAuthor
Associate
November 22, 2019

0690X00000AsKeTQAV.png

thx your advice!: )

I use QSPI example can test this ,but I want do some image to external flash like this,my spi flash is W25Q256 is not in this list, how can I create it?

​

Tesla DeLorean
Guru
November 22, 2019

Writing them is complex, not something I can describe in a couple of minutes in a forum.

​

The loader is not a full application, but rather an object file that can be loaded into RAM, potentially with others, and providing an API to the programming tool. Testing should be done on the code via an application framework that exercises the loader functionality in a way you can use normal debugging tools and methods.

​

What pins, specifically, are you using in your board design?​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
waclawek.jan
Super User
November 22, 2019

There are example sources/projects in [STM32 ST-LINK Utility]\ST-LINK Utility\ExternalLoader\, you can start by reading what's in these. Some of them are Cube-based, although not CubeMX. There's some rudimentary documentation in UM0892 (ST-LINK Utility UM.pdf) chapter 5. Note, that the functions are intended to be run from RAM, so it's important to observe the attached linker files. Also, they can't use interrupts, which makes things even a bit more challenging.

As an alternative to using STLinkUtility (or the Cube Programmer), you may be better off writing a simple application for your board, enabling to transfer data to be programmed e.g. through USART, using some simple protocol e.g. XMODEM.

JW

PS. Change your username to a normal nick.