We are using this programmer;
https://www.segger.com/products/debug-probes/j-link/models/j-link-plus/
After this command line;
"C:\Program Files (x86)\SEGGER\JLink_V632h\JLink.exe" -device CY8C4248XXX-BLXXX -Speed 12000 -CommanderScript test.jlink
We get an error "Writing Memory Failed".
You can see all stage of programming below.What is the problem.Why we get this error.We are getting this error,but MCU is working properly.
We are waiting for your response.
Thank you very much.
C:\arcelikC7S>"C:\Program Files (x86)\SEGGER\JLink_V632h\JLink.exe" -device CY8C
4248XXX-BLXXX -Speed 12000 -CommanderScript test.jlink
SEGGER J-Link Commander V6.32h (Compiled Jul 5 2018 18:11:36)
DLL version V6.32h, compiled Jul 5 2018 18:11:19
J-Link Command File read successfully.
Processing script file...
J-Link Commander will now exit on Error
Connecting to J-Link via USB...O.K.
Firmware: J-Link V10 compiled Jun 27 2018 10:57:29
Hardware version: V10.10
S/N: 600103142
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
VTref=4.807V
Selecting SWD as current target interface.
Target connection not established yet but required for command.
Device "CY8C4248XXX-BLXXX" selected.
Connecting to target via SWD
Found SW-DP with ID 0x0BB11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770021)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xF0000000
CPUID register: 0x410CC200. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ F0000000
ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB471 ROM Table
ROMTbl[1] @ E00FF000
ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
Cortex-M0 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Executing ResetTarget()
PC = 0002A91C, CycleCnt = 00000000
R0 = 40100004, R1 = 0002A91D, R2 = 00000000, R3 = 00000000
R4 = 20008000, R5 = 08000000, R6 = 0FFFF0E0, R7 = 00000000
R8 = 304BD0B8, R9 = 920A9C21, R10= D2307C9F, R11= D384B364
R12= 00000000
SP(R13)= 20008000, MSP= 20008000, PSP= 2D727480, R14(LR) = 10000147
XPSR = 61000000: APSR = nZCvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
Erasing device (CY8C4248xxx-BLxxx)...
J-Link: Flash download: Total time needed: 0.107s (Prepare: 0.014s, Compare: 0.0
00s, Erase: 0.089s, Program: 0.000s, Verify: 0.000s, Restore: 0.003s)
Erasing done.
Downloading file [ANAYAZILIM.hex]...
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (262144 bytes)
J-Link: Flash download: Total time needed: 20.713s (Prepare: 0.044s, Compare: 0.
193s, Erase: 0.088s, Program: 20.158s, Verify: 0.196s, Restore: 0.032s)
Writing target memory failed.
Script processing completed.
https://www.segger.com/products/debug-probes/j-link/models/j-link-plus/
After this command line;
"C:\Program Files (x86)\SEGGER\JLink_V632h\JLink.exe" -device CY8C4248XXX-BLXXX -Speed 12000 -CommanderScript test.jlink
We get an error "Writing Memory Failed".
You can see all stage of programming below.What is the problem.Why we get this error.We are getting this error,but MCU is working properly.
We are waiting for your response.
Thank you very much.
C:\arcelikC7S>"C:\Program Files (x86)\SEGGER\JLink_V632h\JLink.exe" -device CY8C
4248XXX-BLXXX -Speed 12000 -CommanderScript test.jlink
SEGGER J-Link Commander V6.32h (Compiled Jul 5 2018 18:11:36)
DLL version V6.32h, compiled Jul 5 2018 18:11:19
J-Link Command File read successfully.
Processing script file...
J-Link Commander will now exit on Error
Connecting to J-Link via USB...O.K.
Firmware: J-Link V10 compiled Jun 27 2018 10:57:29
Hardware version: V10.10
S/N: 600103142
License(s): RDI, FlashBP, FlashDL, JFlash, GDB
VTref=4.807V
Selecting SWD as current target interface.
Target connection not established yet but required for command.
Device "CY8C4248XXX-BLXXX" selected.
Connecting to target via SWD
Found SW-DP with ID 0x0BB11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770021)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xF0000000
CPUID register: 0x410CC200. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ F0000000
ROMTbl[0][0]: E00FF000, CID: B105100D, PID: 000BB471 ROM Table
ROMTbl[1] @ E00FF000
ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
Cortex-M0 identified.
Reset delay: 0 ms
Reset type NORMAL: Resets core & peripherals via SYSRESETREQ & VECTRESET bit.
Executing ResetTarget()
PC = 0002A91C, CycleCnt = 00000000
R0 = 40100004, R1 = 0002A91D, R2 = 00000000, R3 = 00000000
R4 = 20008000, R5 = 08000000, R6 = 0FFFF0E0, R7 = 00000000
R8 = 304BD0B8, R9 = 920A9C21, R10= D2307C9F, R11= D384B364
R12= 00000000
SP(R13)= 20008000, MSP= 20008000, PSP= 2D727480, R14(LR) = 10000147
XPSR = 61000000: APSR = nZCvq, EPSR = 01000000, IPSR = 000 (NoException)
CFBP = 00000000, CONTROL = 00, FAULTMASK = 00, BASEPRI = 00, PRIMASK = 00
FPU regs: FPU not enabled / not implemented on connected CPU.
Erasing device (CY8C4248xxx-BLxxx)...
J-Link: Flash download: Total time needed: 0.107s (Prepare: 0.014s, Compare: 0.0
00s, Erase: 0.089s, Program: 0.000s, Verify: 0.000s, Restore: 0.003s)
Erasing done.
Downloading file [ANAYAZILIM.hex]...
J-Link: Flash download: Bank 0 @ 0x00000000: 1 range affected (262144 bytes)
J-Link: Flash download: Total time needed: 20.713s (Prepare: 0.044s, Compare: 0.
193s, Erase: 0.088s, Program: 20.158s, Verify: 0.196s, Restore: 0.032s)
Writing target memory failed.
Script processing completed.
The post was edited 1 time, last by mutlukosemen ().