Wednesday, April 25th 2018, 12:23am UTC+2

You are not logged in.

  • Login
  • Register

Date of registration: Jan 10th 2018

Posts: 7

1

Tuesday, March 20th 2018, 11:39am

flashing .hex files from Atollic TrueStudio

Hello,
The Atollic TrueStudio has a GDB server communication to the J-link, which works fine for debugging from within the IDE.
However, we are not able to get that configured for just flashing the target with a release.hex file without any debugging. The Atollic Debugging tool does not take .hex files at all.
So probably we would need to flash using an external tool, which can be called from the IDE.
how do we do this? Jflash.exe can be called from command line, but we don't have a license for that on all computers. Is it possible to use a gdb script somehow? how would that look like?

thanks.
Michael Schmid
BOS-AG

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 954

2

Wednesday, March 21st 2018, 9:59am

Hello Michael,

The GDBServer is no production tool and is only there to execute commands from the GDBClient which is your IDE in this case. So to do that with the IDE Atollic would need to implement such a feature.
If you are looking for a professional production tool that can be tailored to your needs JFlash is the correct tool to use.
For debugging purposes JFlash Lite or JLink Commander can be used but these are not recommended for production.

More information can be found in the corresponding user manuals.
If you are looking for a affordable way to replace your J-Link models without JFlash license we recommend using our Trade-in-Program: https://www.segger.com/purchase/trade-in-program/

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


Date of registration: Jan 10th 2018

Posts: 7

3

Wednesday, March 21st 2018, 11:19am

thank you.
so how can I easiest flash and run a .hex file from command line using J-link commander or JFlash lite?

We do not wish to purchase a JFlash license for every single J-Link we are using in our company. The production programming of course is done using J-flash, but not the development.

This post has been edited 1 times, last edit by "michatroniker" (Mar 21st 2018, 11:21am)


SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 954

4

Thursday, March 22nd 2018, 10:09am

Hello,

you will find the information in J-Link user manual ins section 3.2.1.20 loadfile
In the same manual you will find all needed information about JFlash Lite.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


Date of registration: Jan 10th 2018

Posts: 7

5

Thursday, March 22nd 2018, 11:42am

thanks Nino, that helped. does the loadfile command also verify the flashed data?

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 954

6

Monday, March 26th 2018, 12:06pm

Hello,

Yes, loadfile also verifies the data. You should see a message in the J-Link Commander how long verify needed.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purposes is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/