Hi, I'm using DEVKIT-MPC5748G, and the hello+pll_z4_1 can run with on board open SDA with debug mode, and the led light. But if I press the reset button, the program couldn't run from the internal flash.
The linker file is attached.
What's the reason?
Thanks.
Original Attachment has been moved to: mem.ld.zip
Original Attachment has been moved to: libs.ld.zip
Original Attachment has been moved to: sections.ld.zip
Hello,
could you please specify, which version of S32DS you use? Could you please try to load the program and run it stand alone without debugger?
I tested on my side without debugger and it works correct.
Regards,
Martin
Hi, Martin,
Do you have the DEVKIT-5748G board and make a test of the example project "hello+pll_Z4_1" ?
Thanks a lot.
Hi, Martin,
Thanks for your reply. I'm using S32 Design Studio for Power Architecture, Version: 1.2 Build id: 170613
Linux version.
the console output:
Connection from "127.0.0.1" via 127.0.0.1
Copyright 2012 P&E Microcomputer Systems,Inc.
Command Line :/home/daniel/NXP/S32DS_Power_v1.2/eclipse/plugins/com.pemicro.debug.gdbjtag.ppc_1.6.7.201706090048/lin/pegdbserver_power_console -device=MPC5748G -startserver -singlesession -serverport=7224 -gdbmiport=6224 -interface=OPENSDA -speed=5000 -p
CMD>RE
Initializing.
MPC574xC Device detected.
Target has been RESET and is active.
CMD>CM /home/daniel/NXP/S32DS_Power_v1.2/eclipse/plugins/com.pemicro.debug.gdbjtag.ppc_1.6.7.201706090048/lin/gdi/P&E/nxp_mpc5748g_1x32x1524k_cflash.pcp
Initializing.
MPC574xC Device detected.
Initialized.
;version 1.04, 12/13/2016, Copyright P&E Microcomputer Systems, www.pemicro.com [5748G_6096k]
;device NXP, MPC5748G, 1x32x1524k, desc=CFlash
;begin_cs device=$00F8C000, length=$005F4000, ram=$40000000
Loading programming algorithm ...
WARNING - Selected .PCP file has been modified. CRC16 = $0869
Done.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00FA0000-00FA0007 ...
Calculated CRC-16 does not match block. (File = $0745, Device = $6820)
CMD>EM
Erasing.
Module has been erased.
CMD>PM
Programming.
Processing Object File Data ...
.
Programmed.
CMD>VC
Verifying object file CRC-16 to device ranges ...
block 00FA0000-00FA0007 ...
Ok.
block 00FA0010-00FA0017 ...
Ok.
block 01000000-0100026D ...
Ok.
block 01001000-010010F3 ...
Ok.
block 01002000-01002BC7 ...
Ok.
block 01002BD0-01002FDF ...
Ok.
Checksum Verification Successful. (Cumulative CRC-16=$63DE)
CMD>RE
Initializing.
MPC574xC Device detected.
Target has been RESET and is active.
Starting reset script (/home/daniel/NXP/S32DS_Power_v1.2/eclipse/plugins/com.pemicro.debug.gdbjtag.ppc_1.6.7.201706090048/lin/gdi/P&E/s32e200_mpc574xg.mac) ...
REM This script is compatible with MPC574xG devices.
REM Clean GPRs to remove residual data after using algorithm
REM Initialize all of the Main SRAM - 768KB
Initializing RAM from $40000000 to $400BFFFF.
REM Core 0 I-MEM 16K
Initializing RAM from $50000000 to $50003FFF.
REM Core 0 D-MEM 64K
Initializing RAM from $50800000 to $5080FFFF.
REM Core 1 I-MEM 16K
Initializing RAM from $51000000 to $51003FFF.
REM Core 1 D-MEM 64K
Initializing RAM from $51800000 to $5180FFFF.
REM Core 2 I-MEM 16K
Initializing RAM from $52000000 to $52003FFF.
REM Core 2 D-MEM 32K
Initializing RAM from $52800000 to $52807FFF.
REM overlay memory 16K
Initializing RAM from $0D000000 to $0D003FFF.
REM Overlay SRAM Emulation device only
Initializing RAM from $0C000000 to $0C0FFFFF.
Reset script (/home/daniel/NXP/S32DS_Power_v1.2/eclipse/plugins/com.pemicro.debug.gdbjtag.ppc_1.6.7.201706090048/lin/gdi/P&E/s32e200_mpc574xg.mac) completed.
MPC574xG Device detected.
No breakpoints currently set.
Disconnected from "127.0.0.1" via 127.0.0.1
Target Disconnected.
An unhandled exception occurred at $00007EFCBCC041A9:
EAccessViolation: Access violation
$00007EFCBCC041A9
$00007EFCBCC041DF
$00007EFCBCC03C1E
$00007EFCBDED37FE
$00007EFCBDED3392
$00007EFCBDED3528
$00007EFCBDF1DE97
$00007EFCBDEE96BB
$00007EFCBDEDB5D7
$00007EFCBDEEBA5C
$00007EFCBDE5F411
$00007EFCBDE5F4F9
$000000000044DC71
$0000000000401ED3
An unhandled exception occurred at $00007EFCBCC041A9:
EAccessViolation: Access violation
$00007EFCBCC041A9
$00007EFCBCC041DF
$00007EFCBCC03B1D
$00007EFCBDED37FE
$00007EFCBDED3FE9
$00007EFCBDE7F78E
$00007EFCBF10B1FA
And still can't run after reset . I also used the Version: 1.2 Build id: 170613 windows version to test the demo "hello+pll_Z4_1", it's the same result. Still can not start after reset.
Hi Ningwang,
Did you manage do fix this issue? I'm facing the same problem.
Thanks a lot.