Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
aaha_4508176
Level 1
Level 1

Hi,


I have an issue flashing the CYT2B75CAS using JLink commander similar to this issue.

Flashing Issue CYT2B75CAE

I can connect, read memory sections, write to memory sections read and write register etc
However when I attempt an erase I get a `Failed to execute RAMCode for chip erase!` error

Below is the command line trace:

$ jlink -device CYT2B75BAS_M4 -speed 1000 -if JTAG -autoconnect 1

SEGGER J-Link Commander V6.48b (Compiled Aug  2 2019 10:19:19)

DLL version V6.48b, compiled Aug  2 2019 10:18:25

Connecting to J-Link via USB...O.K.

Firmware: Silicon Labs J-Link Pro OB compiled May 16 2019 11:50:55

Hardware version: V4.00

S/N: 440092275

License(s): RDI

IP-Addr: DHCP (no addr. received yet)

VTref=3.331V

Device position in JTAG chain (IRPre,DRPre) <Default>: -1,-1 => Auto-detect

JTAGConf>

Device "CYT2B75BAS_M4" selected.

Connecting to target via JTAG

ConfigTargetSettings() start

J-Link script: ConfigTargetSettings()

ConfigTargetSettings() end

TotalIRLen = 8, IRPrint = 0x0011

JTAG chain detection found 2 devices:

#0 Id: 0x6BA00477, IRLen: 04, CoreSight JTAG-DP

#1 Id: 0x2E300069, IRLen: 04, Unknown device

AP map detection skipped. Manually configured AP map found.

AP[0]: APB-AP (IDR: Not set)

AP[1]: AHB-AP (IDR: Not set)

AP[2]: AHB-AP (IDR: Not set)

AP[2]: Core found

AP[2]: AHB-AP ROM base: 0xE00FF000

CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)

Found Cortex-M4 r0p1, Little endian.

FPUnit: 6 code (BP) slots and 2 literal slots

CoreSight components:

ROMTbl[0] @ E00FF000

ROMTbl[0][0]: E0080000, CID: B105900D, PID: 005BB906 CTI

ROMTbl[0][1]: E008C000, CID: B105900D, PID: 003BB908 CSTF

ROMTbl[0][2]: E008D000, CID: B105900D, PID: 004BB907 ETB

ROMTbl[0][3]: E008E000, CID: B105900D, PID: 003BB923 TPIU-Lite

ROMTbl[0][4]: E007F000, CID: B105100D, PID: 102B4101 ROM Table

ROMTbl[1] @ E007F000

ROMTbl[1][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7

ROMTbl[1][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT

ROMTbl[1][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB

ROMTbl[1][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM

ROMTbl[1][4]: E0042000, CID: B105900D, PID: 005BB906 CTI

ROMTbl[1][5]: E0041000, CID: B105900D, PID: 000BB925 ETM

Cortex-M4 identified.

J-Link>erase

Erasing device...

****** Error: Timeout while erasing chip, RAMCode did not respond in time. (PC = 0x4115709B, CPSR = 0xC34BA592, LR = 0x56996DFE)!

Failed to erase chip.

Failed to execute RAMCode for chip erase!

J-Link: Flash download: Total time needed: 20.118s (Prepare: 0.082s, Compare: 0.000s, Erase: 20.019s, Program: 0.000s, Verify: 0.000s, Restore: 0.016s)

ERROR: Erase returned with error code -5.

I've tried the latest JLinkARM.dll v6.52 but the same message occurs. Any Ideas why this might be happening?

I've attached the log of the erase command

Thanks

0 Likes
1 Reply
HongyanW_86
Moderator
Moderator
Moderator
100 solutions authored 100 replies posted 50 solutions authored

Do you have any issue to do erase in the GUI of JFlash instead of commander?

By the way, you can also get in touch with Cypress local FAE for a Cypress Jlink Flash tool.

Best regards,

Amy Wang

0 Likes