Download firmware to S32K144

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

Download firmware to S32K144

3,566 Views
lohrsistemas
Contributor IV

I tried to write the firmware through the debugger. But when I restart the uC without restarting the debuguer, the firmware does not work. How do I download the firmware using S32 Design Studio for ARM?

Labels (1)
0 Kudos
7 Replies

1,396 Views
lohrsistemas
Contributor IV

Hi Stan,

Now I've developed a board with the S32k144 MCU, I'm using the IAR plugin to S32 Design Studio, and the Jlink JTAG, however again I have the problem of recording, when I reboot the uC without the debugger, the firmware does not run.

What can I do?

0 Kudos

1,396 Views
stanish
NXP Employee
NXP Employee

Hello,

I assume you have a separate S-rec/elf you are programming into flash using the debugger?.

Do you observe any issue in a debugger console?

You can e.g. create a new dummy project and re-use its debugger configuration and place you custom file instead of original .elf file.

e.g. below is the example screenshot of programming Bootloader srec (.rbf) file into MPC5748G.

pastedImage_1.png

Hope it helps.

Stan

0 Kudos

1,396 Views
lohrsistemas
Contributor IV

Hi Stan,

Thank you very much for your feedback.

I think my problem is linked to the error highlighted in the screenshot.
pastedImage_1.png
How do I fix this error?

I'm using a program made with the help of expert processor, you think this has something to do with it?
0 Kudos

1,396 Views
stanish
NXP Employee
NXP Employee

Lohr

It seems the problem is related to the build rather then debug.

I'd recommend you to check what causes this error on Console View Tab since Problems View parser perhaps strips out the additional error information.

Could you possibly paste here the content of the Build Console tab?

Thanks!

Stan

0 Kudos

1,396 Views
lohrsistemas
Contributor IV

Stan,

Following screenshot below.
Can't generate the .srec file.

pastedImage_1.png

Thank u very much.

0 Kudos

1,396 Views
stanish
NXP Employee
NXP Employee

Lohr,

The objcopy line is for some unknown reason missing the executable file - .elf file as the input parameter.

You should see:

arm-none-eabi-objcopy -O srec My.elf "my.srec"

pastedImage_1.png

elf file is specified by variable $(EXECUTABLES)

Which is automatically generated within makefile:

pastedImage_3.png

If this variable is empty on your side i'd recommend you to delete entire output directory e.g. "Debug" and rebuild the project.

The makefile will be regenerated again.

Another check is to create a new empty project and enable Create Flash image.Build the project - does it generate srec?

Thanks!

Stan

0 Kudos

1,396 Views
lohrsistemas
Contributor IV

Stan,

You're right. My problem is with the variable $(EXECUTABLES). It is not being created.
I tried deleting the directory "debug" but it did'nt solve.

pastedImage_1.png

I will try to create a new project and let you know the results.

Thanks.

0 Kudos