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?
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?
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.