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?
2. Question about NEX Address:
Why is there a mechanism for line breaks or data length changes here?
Is there any advice for beginners to learn bootloader?
BOOK? FILE?
Thank you for your careful reading~
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
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
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
Hi,
I didn't see the file you mentioned, is it because the version is relative?
V2.2 or V2018.R1?
Thank you for your help.
Carter
Hi Jiri
I use S32DS.ARM2.2 to directly open the Boot_loader file in - Bootloader_s32K how it works for S32K144
Some problems have occurred, is it because of the S32DS version problem?
Thank you for your help.
Carter
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.
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?
Thank you for your help.
Carter