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?
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.
Hope it helps.
Thank you very much for your feedback.
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?
Following screenshot below.Can't generate the .srec file.
Thank u very much.
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"
elf file is specified by variable $(EXECUTABLES)
Which is automatically generated within makefile:
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?
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.
I will try to create a new project and let you know the results.
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?
Retrieving data ...