Skip to main content
Achar1
Associate II
October 22, 2021
Question

How to load and execute my .elf file from command line

  • October 22, 2021
  • 3 replies
  • 2279 views

I am using following command to execute the existing .elf file

JLinkGDBServerCL.exe -port 2331 -s -device STM32L462RE -endian little -speed 4000 -if swd -vd

where I need to change to load my newly generated elf (from command line) in the above command.

Pl send me the command line instructions to following

  1. How to open STM32CubeIDE with my workspace from command line?
  2. how to load and execute my newly generated .efl file from command line?
  3. How to read the content of buffer from command line commands?
  4. How to write read data in to one file?

Pl give your inputs on above queries.

thanks

This topic has been closed for replies.

3 replies

Uwe Bonnes
Chief
October 28, 2021

Ask specific question showing that you researched around the problem yourself.

Markus GIRDLAND
ST Employee
October 29, 2021

Hello there!

You can open CubeIDE with a specific workspace using the -data command, for example:

C:\ST\STM32CubeIDE_1.7.0\STM32CubeIDE>stm32cubeide.exe -data C:\Users\USER_NAME\STM32CubeIDE\WORKSPACE

The other information you will probably need to find in the J-Link User Manual available here. Also for question four that will depend on the operating system and what you want to write the data to.

Achar1
Achar1Author
Associate II
November 12, 2021

Any inputs on below queries

  1. how to load and execute my newly generated .efl file from command line?
  2. How to read the content of buffer from command line commands?
  3. How to write read data in to one file?