HOWTO: download separate elf/srec/hex file to microcontroller using S32 Design Studio

cancel
Showing results for 
Search instead for 
Did you mean: 

HOWTO: download separate elf/srec/hex file to microcontroller using S32 Design Studio

No ratings

HOWTO: download separate elf/srec/hex file to microcontroller using S32 Design Studio

This document contains the instructions how to download separate elf/srec/hex file to the microcontroller using S32 Design Studio and USB PE Micro Universal Multilink/OpenSDA debug probes. This could be used in case you get an executable/binary image file only without any project or source code.

There are basically three ways:

  1. flash programming support in IDE. This is only useful for programming the device. (it is available in S32DS ARM v1.3+, S32DS Power v1.2+)

pastedImage_10.png

  • Create a new configuration, adjust its name and browse for elf/srec/hex file:

pastedImage_14.png

  • Select MCU and specific core you are targeting:

pastedImage_13.png

  • Select where the Flash Configuration should be saved into - workspace metadata (local file) or as a specific file e.g. part of an existing project (shared file). This way the config could be e.g.transferred with this project.

pastedImage_17.png

Click on "Flash" button to proceed to programming. As soon as the device is programmed it's disconnected.

pastedImage_18.png

2. Executable file importer. Go to menu File -> Import -> Select "Executable File Importer"  this starts the wizard. This is for programming and debugging an executable elf object file only.

pastedImage_3.png

  • Select the MCU/core you are targeting and browse for the .elf file

pastedImage_5.png

  • Adjust the project name and create a debug/launch configuration (PEMicro GDB server example). If the .elf file is built on another machine and the source files are available but located in a different folder the source path could be adjusted. Source-level debugging is then possible.

pastedImage_6.png

  • Finish the wizard and new "container" project for your elf is created.

pastedImage_9.png

  • Its debug configuration opens automatically. "Debug" button starts the load/debug of the selected elf file.

3. reuse an existing project debug configuration or create a new dummy project for loading .elf/srec/hex

  • Create new project which will provide basic debug settings
  • Compile the project
  • Copy the required .elf file to the created project Debug folder
  • Open new project Debug configuration
  • Choose correct project and set the correct .elf/srec/hex you want to downloadpastedImage_2.png
  • Click Apply button and then Debug button.
  • The debug window with correct .elf file will be opened. Program is downloaded and you are able to debug or run it.
Comments

Hi b55689,

very straight forward explanation !

One question. I wonder if downloading by using Multilink is 'much' faster than via embedded chipsets (FTDI, OpenSDA, etc.)? I work from a Win10 VM, so it can take in the seconds (10+) to download.

Thanks,

Ludwig

Dear Support Team

Explanation is very simple, but it is for S23DS Power 1.2+, unfortunatelly I cant find that version available for download.

There is only S32DS Power 1.1 which hasn't got that functionality.

When do you have plan to publish new version of S32DS for Power Architecture?

best regards

Marek

Hello Marek,

S32 Design Studio for power version 1.2 should be released at the end of May.

Regards,

Martin

Hi, Martin:

Very clear explaination!

If I only have .hex file of SPC5744P project, can I use the 2nd method or the 3rd method you mentioned? or I have to wait for "S32DS for PA1.2" available for download?

Best Regards

William Wang

Hello William,

to be honest, I do not know. I have never tried to work with hex file (I tested srecord and elf only). But if you contact Stanislav Sliva, he will provide you more accurate information regarding this "problem".

Regards,

Martin

Any update on the release? End of May is Wednesday.

Hello Jed,

release date is postponed to 16 June, because of fixing critical compiler issue.

Regards,

Martin

Hello William, 

Yes you should be able to program Intel Hex binary file using the option 1 with Pemicro debug probe (multilink, OpenSDA)

Thank you for your comment. I've adjusted the document accordingly.

S.

Dear Support Team:

    The MPC5748G has three cores。what core  is correct when I just have  only  one elf file?(For about the third way)

I tried  new a "hellow" project from example in S32 Design Studio for Power Architecture Version 2.1 and chose core0 to debug .But it failed.

Version history
Revision #:
1 of 1
Last update:
‎07-18-2016 01:38 AM
Updated by: