Hello,
I have ran into issue with J-Link 7.68 (and newer, including 7.88e) and Infineon PSoC6. With newer J-Link versions, I'm not able to read SFLASH after successful connection to target.
Logs from 7.66g, reading 0x16000600 in SFLASH area works:
Display All
Logs from 7.68, reading 0x16000600 in SFLASH area fails:
Display All
However reading 0x0800000 work on both versions as is expected:
Is there anyway to make reading SFLASH work with newer versions?
-Jussi
I have ran into issue with J-Link 7.68 (and newer, including 7.88e) and Infineon PSoC6. With newer J-Link versions, I'm not able to read SFLASH after successful connection to target.
Logs from 7.66g, reading 0x16000600 in SFLASH area works:
Source Code
- SEGGER J-Link Commander V7.66g (Compiled Jul 7 2022 10:37:30)
- DLL version V7.66g, compiled Jul 7 2022 10:35:46
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V11 compiled May 23 2023 14:44:38
- Hardware version: V11.00
- S/N: 851003787
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- USB speed mode: High speed (480 MBit/s)
- VTref=1.819V
- Type "connect" to establish a target connection, '?' for help
- J-Link>power on
- J-Link>connect
- Please specify device / core. <Default>: CY8C6XX7_CM4
- Type '?' for selection dialog
- Device>CY8C6XX7_CM0P_TM
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- T) cJTAG
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>
- Device "CY8C6XX7_CM0P_TM" selected.
- Connecting to target via SWD
- ConfigTargetSettings() start
- *****************************************************************
- JLinkScript: Start 'ConfigTargetSettings' for Cortex-M0+ of CY8C6xx6/CY8C6xx7
- *****************************************************************
- ConfigTargetSettings() end
- InitTarget() start
- InitTarget() end
- Found SW-DP with ID 0x6BA02477
- DPIDR: 0x6BA02477
- CoreSight SoC-400 or earlier
- AP map detection skipped. Manually configured AP map found.
- AP[0]: MEM-AP (IDR: Not set)
- AP[1]: AHB-AP (IDR: Not set)
- AP[2]: AHB-AP (IDR: Not set)
- AP[1]: Core found
- AP[1]: AHB-AP ROM base: 0xF0000000
- CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- Found Cortex-M0 r0p1, Little endian.
- FPUnit: 4 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ F0000000
- [0][0]: E00FF000 CID B105100D PID 000BB4C0 ROM Table
- ROMTbl[1] @ E00FF000
- [1][0]: E000E000 CID B105E00D PID 000BB008 SCS
- [1][1]: E0001000 CID B105E00D PID 000BB00A DWT
- [1][2]: E0002000 CID B105E00D PID 000BB00B FPB
- [0][1]: F0002000 CID B105900D PID 000BB9A6 ???
- [0][2]: F0003000 CID B105900D PID 001BB932 MTB-M0+
- Cortex-M0 identified.
- J-Link>mem32 0x16000600 2
- 16000600 = 188AEA98 012F3824
- J-Link>
Logs from 7.68, reading 0x16000600 in SFLASH area fails:
Source Code
- SEGGER J-Link Commander V7.68 (Compiled Jul 14 2022 16:49:29)
- DLL version V7.68, compiled Jul 14 2022 16:47:42
- Connecting to J-Link via USB...O.K.
- Firmware: J-Link V11 compiled May 23 2023 14:44:38
- Hardware version: V11.00
- J-Link uptime (since boot): 0d 00h 00m 17s
- S/N: 851003787
- License(s): RDI, FlashBP, FlashDL, JFlash, GDB
- USB speed mode: High speed (480 MBit/s)
- VTref=1.822V
- Type "connect" to establish a target connection, '?' for help
- J-Link>connect
- Please specify device / core. <Default>: CY8C6XX7_CM0P_TM
- Type '?' for selection dialog
- Device>
- Please specify target interface:
- J) JTAG (Default)
- S) SWD
- T) cJTAG
- TIF>s
- Specify target interface speed [kHz]. <Default>: 4000 kHz
- Speed>
- Device "CY8C6XX7_CM0P_TM" selected.
- Connecting to target via SWD
- ConfigTargetSettings() start
- ConfigTargetSettings() end
- InitTarget() start
- InitTarget() end
- Found SW-DP with ID 0x6BA02477
- DPIDR: 0x6BA02477
- CoreSight SoC-400 or earlier
- AP map detection skipped. Manually configured AP map found.
- AP[0]: MEM-AP (IDR: Not set)
- AP[1]: AHB-AP (IDR: Not set)
- AP[2]: AHB-AP (IDR: Not set)
- AP[1]: Core found
- AP[1]: AHB-AP ROM base: 0xF0000000
- CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
- Found Cortex-M0 r0p1, Little endian.
- FPUnit: 4 code (BP) slots and 0 literal slots
- CoreSight components:
- ROMTbl[0] @ F0000000
- [0][0]: E00FF000 CID B105100D PID 000BB4C0 ROM Table
- ROMTbl[1] @ E00FF000
- [1][0]: E000E000 CID B105E00D PID 000BB008 SCS
- [1][1]: E0001000 CID B105E00D PID 000BB00A DWT
- [1][2]: E0002000 CID B105E00D PID 000BB00B FPB
- [0][1]: F0002000 CID B105900D PID 000BB9A6 ???
- [0][2]: F0003000 CID B105900D PID 001BB932 MTB-M0+
- SetupTarget() start
- ****************************************************
- ** Silicon: 0xE208, Family: 0x100, Rev.: 0x24 (B3)
- ** Flash Boot version: 1.20.1.45
- ** Chip Protection: NORMAL
- ****************************************************
- SetupTarget() end
- Cortex-M0 identified.
- J-Link>mem32 0x16000600 2
- Could not read memory.
- J-Link>
Is there anyway to make reading SFLASH work with newer versions?
-Jussi