Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ST-Util to newer version #119

Open
c-grant opened this issue Jul 12, 2021 · 7 comments
Open

Update ST-Util to newer version #119

c-grant opened this issue Jul 12, 2021 · 7 comments
Assignees

Comments

@c-grant
Copy link

c-grant commented Jul 12, 2021

Not sure if this is the right place for this issue

It looks like the version of st-util included in GNAT Studio is 1.3.1. This does not support the new ST-link V3 dev boards. The STLINK-org has been upgraded to support this newer interface.

@JCGobbi
Copy link

JCGobbi commented Aug 24, 2021

The GNAT Studio doesn't install ST-Link utilities, it uses the version installed on your system (that must be in your PATH). So you need to install a newer version on your system to update the installed ST-Link.

@c-grant
Copy link
Author

c-grant commented Aug 24, 2021

It appears to be installed with the Adacore Arm tools for Gnatstudio to use, so not with Gnatstudio proper. Is there a better place to submit this ticket?

@JCGobbi
Copy link

JCGobbi commented Aug 24, 2021

This is the suitable place to put this ticket because flashing files inside GNAT Studio uses ST-Link tools, but Adacore doesn't furnish them, neither with the ARM compiler. If you didn't have it installed on your system, the GNAT Studio would report that it didn't find st-link.
If you are using Linux, open a terminal and try the command "find / -name st-flash" or use the file manager "search" to get a list of directories where the ST-Link tools are installed. If you are using Windows, search st-link*.exe with the file manager.
If you are a beginner with Ada, take a look at https://github.com/JCGobbi/Documentation/tree/master/Ada, where you will find good manuals for starting.

@c-grant
Copy link
Author

c-grant commented Aug 24, 2021

I am running it on Windows and have taught a number of classes with it.

Using the executable gnat-2021-20210519-arm-elf-windows64-bin.exe provided from the community download links it indeed does get installed.

The files are located in the following folder with a fresh install C:\GNAT\2021-arm-elf\bin of the Arm toolchain.

see attached image

image

@JCGobbi
Copy link

JCGobbi commented Aug 24, 2021

Yes, you are correct, the 2021 ARM toolchain installs a not actual version of the ST-Link tools. But I have tested the solution for the upgrade of the installed ST-Link.
I have downloaded the last 1.7.0 version of ST-Link compiled for Windows from https://github.com/stlink-org/stlink/releases/tag/v1.7.0 (x86_64 version) and unzipped it in any directory and did the following:

  1. I copied the files st-flash.exe, st-info.exe and st-util.exe from the "bin" folder of the new installation into C:\GNAT\2021-arm-elf\bin, with overwrite.
  2. I copied the files libstlink.a, libstlink.dll and libstlink.dll.a from the "lib" folder of the new installation into C:\GNAT\2021-arm-elf\lib, and deleted the old files.

And it works fine for my Nucleo with ST-Link V2, but not with my Nucleo with ST-Link V3. For while, not all V3 boards are serviced with this version. Perhaps with your ST-Link V3 board it works fine.
Good luck!

@c-grant
Copy link
Author

c-grant commented Aug 27, 2021

Yes, that was what I did to get it working with newer boards. The purpose of the ticket was to see if the newer version could be included by default in the future as the included version is outdated and does not support many of the newer ST development boards.

@AnthonyLeonardoGracio
Copy link
Collaborator

Hello,

We furnished our own version of ST-Link utilities because of bugs with their version. We'll see if this has been solved since then.

Regards,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants