cancel
Showing results for 
Search instead for 
Did you mean: 

St Link Utility : writing a new external loader

Emmanuel FROCHOT
Associate
Posted on June 06, 2017 at 08:42

Hello,,

I need to write (or modify) a new External flash loader for StLink utility.

I'm using a STM32F475RCT6 with a N25Q128A13EF840E Quad Spi Flash.

It's seems to be very similar to the example given with StLink Utility (STM32L476G_EVAL\Examples\QSPI\N25Q256A_STM32L476G-EVAL).

For me, the first step is to compile the software given as example.

Compiler : IAR

Version : 7.70.1

After renaming the elf file in stldr and copying it in the directory C:\Program Files\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ExternalLoader\, the external loader is seen by StLink Utility.

But :

- the external loader has no name

- the 2 features available are Sector Erase and Program

- no sector description is available for sector erase

- Erasing, Programming or reading the externam flash is impossible

What are the good conditions (Define, ...) for compiling the project given as example?

Thanks

4 REPLIES 4
Leo Cheng
Associate II
Posted on June 16, 2017 at 05:40

Hi, I have the same issue.

kim taehyung
Associate
Posted on September 06, 2017 at 13:28

Try it in IAR 7.4 version.

Klaas de Boer
Associate II
Posted on September 26, 2017 at 13:28

Hi there!

You were talking about the following folder?:

ExternalLoader\\N25Q256A_STM32L476G-EVAL_Cube\Projects\STM32L476G_EVAL\Examples\QSPI\N25Q256A_STM32L476G-EVAL\

 

We can't find this folder anywhere. 

For our project we are also searching for this example. Is it possible to send us a zipped file with that template?

Best regards,

Posted on September 26, 2017 at 22:37

C:\Program Files (x86)\STMicroelectronics\STM32 ST-LINK Utility\ST-LINK Utility\ExternalLoader\N25Q256A_STM32L476G-EVAL\Sources\Loader_Files\Loader_Src.c

from the v3.9.0 or v4.x.x installs as I recall

________________

Attachments :

N25Q256A_STM32L476G-EVAL.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HyMY&d=%2Fa%2F0X0000000b79%2FiAULu2h2wDVQVOFkbP9i78kyuDQyZwL5QaP4iskN57o&asPdf=false
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..