S32DS HEX File

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32DS HEX File

2,173 Views
johns_chuang
Contributor III

Hi, everyone

I am trying to learn to understand HEX file.
The ultimate goal is the production of bootloader.

But I encountered two problems while reading HEX File.

1. microchip .hex VS S32DS.hex:

I use Notepad to open the MPLAB.hex, there will be a lot of
:020000040000fa
:04027c005806000020
Two messages,
But why S32DS.hex does not.
Is it because of some functions written in the program?

Are they necessary? Or I opened it in the wrong way?

pastedImage_34.png

2. Question about NEX Address:

Why is there a mechanism for line breaks or data length changes here?

pastedImage_33.png

Is there any advice for beginners to learn bootloader?
BOOK? FILE?

Thank you for your careful reading~

Tags (2)
0 Kudos
8 Replies

1,962 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

good starting point is for example - Intel HEX - Wikipedia  

The diference is probably caused by different architecture - Microchip uses for their advanced MCUs MIPS instruction set, S32DS is for ARM or Power PC architecture. On MPLAB image you can see, that each second line is Extended Linear Address. Image from S32DS contains in each line only data.

In my opinion - if you like to work with S32DS and ARM - better format for application image for bootloader is motorola s-record - SREC (file format) - Wikipedia - but it  my personal preference. 

Hope it helps. 

Jiri 

0 Kudos

1,962 Views
johns_chuang
Contributor III

Hi Jiri

Thank you for your suggestion.

I understand the structure of HEX file
Now learning. S19

Do you know how these HEX/S19 files get into the MCU?
What documents let me understand the process and its mechanism?

Carter

0 Kudos

1,962 Views
jiri_kral
NXP Employee
NXP Employee

Hi,

there is getting_started.pdf guide - with S32DS Default install path is the guide located here - c:\NXP\S32DS_ARM_v2018.R1\S32DS\help\pdf\

If you are interested in Bootloader application - you may find helpful this thread - https://community.nxp.com/message/964316  

Hope it helps. 

Jiri 

0 Kudos

1,962 Views
johns_chuang
Contributor III

Hi,

I didn't see the file you mentioned, is it because the version is relative?
V2.2 or V2018.R1?

pastedImage_4.png

Thank you for your help.

Carter

0 Kudos

1,962 Views
jiri_kral
NXP Employee
NXP Employee

Hi, 

in latest S32DS for ARM v2.2 is help integrated into IDE  - including video tutorials. You can find it in Help in menu bar: 


pastedImage_1.png

Hope it helps. 

Jiri 

0 Kudos

1,962 Views
johns_chuang
Contributor III

Hi Jiri

I use S32DS.ARM2.2 to directly open the Boot_loader file in - Bootloader_s32K how it works for S32K144  

pastedImage_5.png

Some problems have occurred, is it because of the S32DS version problem?

ProcessorExpert.PNG

ProcessorExpert_Console.PNG

ProcessorExpert_Problems.PNG

Thank you for your help.

Carter

0 Kudos

1,962 Views
jiri_kral
NXP Employee
NXP Employee

Hi Carter, 

this is old project based on SDK which is not supported by new S32DS. You can create new empty SDK based project, add and configure very same Processor Expert components and add source code from old project into  new project. 

0 Kudos

1,962 Views
johns_chuang
Contributor III

Hi Jiri

I changed the configuration of the new version according to the old version of Processor Expert configuration,

But there was a problem when I set PIN_MUX,
Do you know why?

pastedImage_1.png

Thank you for your help.

Carter

0 Kudos