I'm working on getting a PAC5532 set up with SES and a J-Link EDU Mini. I've got it to the point where I can flash a program using J-Flash Lite (EDU doesn't work with J-Flash), but I can't flash with the Target->Download menu item in SES. All debugging functions seem to work in SES after flashing with the external tool. So does Target->Verify.
If the target doesn't have power or it's not connected, I get a 'No idcode detected' error instead of the generic one. J-Flash Lite works with the target set as either 'Cortex M4' or the manufacturer-supplied 'PAC55XX'.
Am I just missing a script file or something that tells the J-Link how to to download to this target?
I appreciate any help.
Display All
If the target doesn't have power or it's not connected, I get a 'No idcode detected' error instead of the generic one. J-Flash Lite works with the target set as either 'Cortex M4' or the manufacturer-supplied 'PAC55XX'.
Am I just missing a script file or something that tells the J-Link how to to download to this target?
I appreciate any help.
Source Code: SEGGER J-Link V6.44h Log File
- T1758 000:000 JLINK_ExecCommand("EnableAutoUpdateFW", ...). returns 0x00 (0000ms, 0000ms total)
- T1758 000:000 JLINK_OpenEx(...)
- Firmware: J-Link EDU Mini V1 compiled Mar 15 2019 12:47:02
- Hardware: V1.00
- S/N: 801005474
- Feature(s): FlashBP, GDB
- TELNET listener socket opened on port 19021WEBSRV
- Starting webserver (0031ms, 0031ms total)
- T1758 000:000 WEBSRV Webserver running on local port 19080 (0031ms, 0031ms total)
- T1758 000:000 returns O.K. (0031ms, 0031ms total)
- T1758 000:031 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0031ms total)
- T1758 000:031 JLINK_GetFirmwareString(...) (0000ms, 0031ms total)
- T1758 000:031 JLINK_GetDLLVersion() returns 64408 (0000ms, 0031ms total)
- T1758 000:032 JLINK_GetHardwareVersion() returns 0x2710 (0000ms, 0031ms total)
- T1758 000:032 JLINK_GetHWStatus(...) returns 0x00 (0000ms, 0031ms total)
- T1758 000:032 JLINK_ExecCommand("ProjectFile = "D:/Jonathan/Google Drive/Projects/In Progress/Auto Cat Feeder/Epiphron Motor Controller/Firmware/Test2/Test2_Debug.jlink"", ...). Ref file found at: C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 4.12\bin\JLinkDevices.ref (0003ms, 0034ms total)
- T1758 000:032 XML referenced by ref file: C:\Program Files (x86)\SEGGER\JLink_V644h\JLinkDevices.xml (0003ms, 0034ms total)
- T1758 000:032 XML file found at: C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 4.12\bin\JLinkDevices.xml (0003ms, 0034ms total)
- T1758 000:032 Ignoring XML in DLL dir and using ref file instead (0003ms, 0034ms total)
- T1758 000:032 C:\Program Files (x86)\SEGGER\JLink_V644h\JLinkDevices.xml evaluated successfully. returns 0x00 (0127ms, 0158ms total)
- T1758 000:160 JLINK_EMU_GetCurrConnectionInfo() returns 0 (0000ms, 0158ms total)
- T1758 000:160 JLINK_DEVICE_GetIndex(sDeviceName = Cortex-M4) returns 17 (0000ms, 0158ms total)
- T1758 000:160 JLINK_ExecCommand("device = Cortex-M4", ...). Device "CORTEX-M4" selected. returns 0x00 (0002ms, 0160ms total)
- T1758 000:162 JLINK_DEVICE_GetIndex(sDeviceName = Cortex-M4) returns 17 (0000ms, 0160ms total)
- T1758 000:162 JLINK_DEVICE_GetInfo(DeviceIndex = 17) returns 0 (0000ms, 0160ms total)
- T1758 000:162 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0160ms total)
- T1758 000:162 JLINK_TIF_GetAvailable(...) (0000ms, 0160ms total)
- T1758 000:162 JLINK_TIF_Select(JLINKARM_TIF_SWD) returns 0x00 (0001ms, 0161ms total)
- T1758 000:163 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0161ms total)
- T1758 000:163 JLINK_SWO_Control(JLINKARM_SWO_CMD_GET_SPEED_INFO, ...) returns 0x00 (0000ms, 0161ms total)
- T1758 000:163 JLINK_SetEndian(ARM_ENDIAN_LITTLE) returns 0x00 (0000ms, 0161ms total)
- T1758 000:163 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0161ms total)
- T1758 000:163 JLINK_SetSpeed(4000) (0000ms, 0161ms total)
- T1758 000:163 JLINK_GetSpeed() returns 0xFA0 (0000ms, 0161ms total)
- T1758 000:163 JLINK_Connect() >0x10B TIF>Found SW-DP with ID 0x2BA01477 >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF>Scanning AP map to find all available APs >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF>AP[1]: Stopped AP scan as end of AP map has been reachedAP[0]: AHB-AP (IDR: 0x24770011)Iterating through AP map to find AHB-AP to use
- >0x42 TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF> >0x42 TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF>AP[0]: Core foundAP[0]: AHB-AP ROM base: 0xE00FF000 >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x28 TIF> >0x0D TIF> >0x21 TIF> >0x0D TIF> >0x21 TIF>CPUID register: 0x410FC241. Implementer code: 0x41 (ARM)Found Cortex-M4 r0p1, Little endian. -- Max. mem block: 0x000016B8
- -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU_WriteMem(4 bytes @ 0xE000EDF0) -- CPU_ReadMem(4 bytes @ 0xE0002000)FPUnit: 6 code (BP) slots and 2 literal slots -- CPU_ReadMem(4 bytes @ 0xE000EDFC) -- CPU_WriteMem(4 bytes @ 0xE000EDFC) -- CPU_ReadMem(4 bytes @ 0xE0001000) -- CPU_WriteMem(4 bytes @ 0xE0001000) -- CPU_ReadMem(4 bytes @ 0xE000ED88) -- CPU_WriteMem(4 bytes @ 0xE000ED88) -- CPU_ReadMem(4 bytes @ 0xE000ED88) -- CPU_WriteMem(4 bytes @ 0xE000ED88)CoreSight components:ROMTbl[0] @ E00FF000
- -- CPU_ReadMem(16 bytes @ 0xE00FF000) -- CPU_ReadMem(16 bytes @ 0xE000EFF0) -- CPU_ReadMem(16 bytes @ 0xE000EFE0)ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB00C SCS-M7 -- CPU_ReadMem(16 bytes @ 0xE0001FF0) -- CPU_ReadMem(16 bytes @ 0xE0001FE0)ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 003BB002 DWT -- CPU_ReadMem(16 bytes @ 0xE0002FF0) -- CPU_ReadMem(16 bytes @ 0xE0002FE0)ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 002BB003 FPB -- CPU_ReadMem(16 bytes @ 0xE0000FF0)
- -- CPU_ReadMem(16 bytes @ 0xE0000FE0)ROMTbl[0][3]: E0000000, CID: B105E00D, PID: 003BB001 ITM -- CPU_ReadMem(16 bytes @ 0xE00FF010) -- CPU_ReadMem(16 bytes @ 0xE0040FF0) -- CPU_ReadMem(16 bytes @ 0xE0040FE0)ROMTbl[0][4]: E0040000, CID: B105900D, PID: 000BB9A1 TPIU -- CPU_ReadMem(16 bytes @ 0xE0041FF0) -- CPU_ReadMem(16 bytes @ 0xE0041FE0)ROMTbl[0][5]: E0041000, CID: B105900D, PID: 000BB925 ETM returns 0x00 (0137ms, 0298ms total)
- T1758 000:300 JLINK_GetId() >0x0D TIF> >0x21 TIF> returns 0x2BA01477 (0001ms, 0299ms total)
- T1758 000:301 JLINK_GetDebugInfo(0x10E = JLINKARM_DEBUG_INFO_AHBAP_INDEX) -- Value=0x00000000 returns 0x00 (0000ms, 0299ms total)
- T1758 000:301 JLINK_GetDebugInfo(0x10C = JLINKARM_DEBUG_INFO_DBG_ADDR_INDEX) -- Value=0xE000EDF0 returns 0x00 (0000ms, 0299ms total)
- T1758 000:301 JLINK_GetDebugInfo(0x105 = JLINKARM_DEBUG_INFO_DWT_ADDR_INDEX) -- Value=0xE0001000 returns 0x00 (0000ms, 0299ms total)
- T1758 000:301 JLINK_GetDebugInfo(0x106 = JLINKARM_DEBUG_INFO_FPB_ADDR_INDEX) -- Value=0xE0002000 returns 0x00 (0000ms, 0299ms total)
- T1758 000:301 JLINK_GetDebugInfo(0x104 = JLINKARM_DEBUG_INFO_ITM_ADDR_INDEX) -- Value=0xE0000000 returns 0x00 (0000ms, 0299ms total)
- T1758 000:301 JLINK_CORE_GetFound() returns 0xE0000FF (0000ms, 0299ms total)
- T1758 000:301 JLINK_WriteU32(0xE0000FB0, 0xC5ACCE55) -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE0000FB0) returns 0 (0001ms, 0300ms total)
- T1758 000:312 JLINK_SetResetDelay(0) (0000ms, 0300ms total)
- T1758 000:312 JLINK_Reset() -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE000EDF0) -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE000EDFC)Reset: Halt core after reset via DEMCR.VC_CORERESET. >0x35 TIF>Reset: Reset device via AIRCR.SYSRESETREQ. -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE000ED0C) >0x0D TIF> >0x28 TIF> -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE000EDF0) -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE000EDFC)
- -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU_WriteMem(4 bytes @ 0xE0002000) -- CPU_ReadMem(4 bytes @ 0xE000EDFC) -- CPU_ReadMem(4 bytes @ 0xE0001000) (0070ms, 0370ms total)
- T1758 000:382 JLINK_IsHalted() returns TRUE (0000ms, 0370ms total)
- T1758 000:382 JLINK_ReadRegs(NumRegs = 1, Indexes: 0) -- R0=0x00 returns 0x00 (0000ms, 0370ms total)
- T1758 000:382 JLINK_ReadRegs(NumRegs = 1, Indexes: 1) -- R1=0x00 returns 0x00 (0000ms, 0370ms total)
- ....
- T1758 000:384 JLINK_ReadRegs(NumRegs = 1, Indexes: 17) -- MSP=0x20008000 returns 0x00 (0000ms, 0372ms total)
- T1758 000:384 JLINK_ReadRegs(NumRegs = 1, Indexes: 18) -- PSP=0x00 returns 0x00 (0000ms, 0372ms total)
- T1758 000:384 JLINK_ReadRegs(NumRegs = 1, Indexes: 20) -- CFBP=0x00 returns 0x00 (0000ms, 0372ms total)
- T1758 000:404 JLINK_BeginDownload(Flags = 0x00) (0000ms, 0372ms total)
- T1758 000:404 JLINK_WriteMem(0x00000000, 0x370C Bytes, ...) - Data: 00 80 00 20 D9 01 00 00 89 01 00 00 61 02 00 00 ... -- CPU_WriteMem(14092 bytes @ 0x00000000) -- CPU_ReadMem(14092 bytes @ 0x00000000) returns 0x370C (0169ms, 0541ms total)
- T1758 000:573 JLINK_EndDownload() returns -1 (0000ms, 0541ms total)
- T1758 001:302 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
- T1758 002:300 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
- T1758 003:293 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
- T1758 004:292 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
- T1758 005:302 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)