[SOLVED] 'Generic error' when trying to download to target with SES

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] 'Generic error' when trying to download to target with SES

    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.

    Source Code: SEGGER J-Link V6.44h Log File

    1. T1758 000:000 JLINK_ExecCommand("EnableAutoUpdateFW", ...). returns 0x00 (0000ms, 0000ms total)
    2. T1758 000:000 JLINK_OpenEx(...)
    3. Firmware: J-Link EDU Mini V1 compiled Mar 15 2019 12:47:02
    4. Hardware: V1.00
    5. S/N: 801005474
    6. Feature(s): FlashBP, GDB
    7. TELNET listener socket opened on port 19021WEBSRV
    8. Starting webserver (0031ms, 0031ms total)
    9. T1758 000:000 WEBSRV Webserver running on local port 19080 (0031ms, 0031ms total)
    10. T1758 000:000 returns O.K. (0031ms, 0031ms total)
    11. T1758 000:031 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0031ms total)
    12. T1758 000:031 JLINK_GetFirmwareString(...) (0000ms, 0031ms total)
    13. T1758 000:031 JLINK_GetDLLVersion() returns 64408 (0000ms, 0031ms total)
    14. T1758 000:032 JLINK_GetHardwareVersion() returns 0x2710 (0000ms, 0031ms total)
    15. T1758 000:032 JLINK_GetHWStatus(...) returns 0x00 (0000ms, 0031ms total)
    16. 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)
    17. T1758 000:032 XML referenced by ref file: C:\Program Files (x86)\SEGGER\JLink_V644h\JLinkDevices.xml (0003ms, 0034ms total)
    18. T1758 000:032 XML file found at: C:\Program Files\SEGGER\SEGGER Embedded Studio for ARM 4.12\bin\JLinkDevices.xml (0003ms, 0034ms total)
    19. T1758 000:032 Ignoring XML in DLL dir and using ref file instead (0003ms, 0034ms total)
    20. T1758 000:032 C:\Program Files (x86)\SEGGER\JLink_V644h\JLinkDevices.xml evaluated successfully. returns 0x00 (0127ms, 0158ms total)
    21. T1758 000:160 JLINK_EMU_GetCurrConnectionInfo() returns 0 (0000ms, 0158ms total)
    22. T1758 000:160 JLINK_DEVICE_GetIndex(sDeviceName = Cortex-M4) returns 17 (0000ms, 0158ms total)
    23. T1758 000:160 JLINK_ExecCommand("device = Cortex-M4", ...). Device "CORTEX-M4" selected. returns 0x00 (0002ms, 0160ms total)
    24. T1758 000:162 JLINK_DEVICE_GetIndex(sDeviceName = Cortex-M4) returns 17 (0000ms, 0160ms total)
    25. T1758 000:162 JLINK_DEVICE_GetInfo(DeviceIndex = 17) returns 0 (0000ms, 0160ms total)
    26. T1758 000:162 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0160ms total)
    27. T1758 000:162 JLINK_TIF_GetAvailable(...) (0000ms, 0160ms total)
    28. T1758 000:162 JLINK_TIF_Select(JLINKARM_TIF_SWD) returns 0x00 (0001ms, 0161ms total)
    29. T1758 000:163 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0161ms total)
    30. T1758 000:163 JLINK_SWO_Control(JLINKARM_SWO_CMD_GET_SPEED_INFO, ...) returns 0x00 (0000ms, 0161ms total)
    31. T1758 000:163 JLINK_SetEndian(ARM_ENDIAN_LITTLE) returns 0x00 (0000ms, 0161ms total)
    32. T1758 000:163 JLINK_GetEmuCaps() returns 0xB8EA5A33 (0000ms, 0161ms total)
    33. T1758 000:163 JLINK_SetSpeed(4000) (0000ms, 0161ms total)
    34. T1758 000:163 JLINK_GetSpeed() returns 0xFA0 (0000ms, 0161ms total)
    35. 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
    36. >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
    37. -- 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
    38. -- 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)
    39. -- 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)
    40. T1758 000:300 JLINK_GetId() >0x0D TIF> >0x21 TIF> returns 0x2BA01477 (0001ms, 0299ms total)
    41. T1758 000:301 JLINK_GetDebugInfo(0x10E = JLINKARM_DEBUG_INFO_AHBAP_INDEX) -- Value=0x00000000 returns 0x00 (0000ms, 0299ms total)
    42. T1758 000:301 JLINK_GetDebugInfo(0x10C = JLINKARM_DEBUG_INFO_DBG_ADDR_INDEX) -- Value=0xE000EDF0 returns 0x00 (0000ms, 0299ms total)
    43. T1758 000:301 JLINK_GetDebugInfo(0x105 = JLINKARM_DEBUG_INFO_DWT_ADDR_INDEX) -- Value=0xE0001000 returns 0x00 (0000ms, 0299ms total)
    44. T1758 000:301 JLINK_GetDebugInfo(0x106 = JLINKARM_DEBUG_INFO_FPB_ADDR_INDEX) -- Value=0xE0002000 returns 0x00 (0000ms, 0299ms total)
    45. T1758 000:301 JLINK_GetDebugInfo(0x104 = JLINKARM_DEBUG_INFO_ITM_ADDR_INDEX) -- Value=0xE0000000 returns 0x00 (0000ms, 0299ms total)
    46. T1758 000:301 JLINK_CORE_GetFound() returns 0xE0000FF (0000ms, 0299ms total)
    47. T1758 000:301 JLINK_WriteU32(0xE0000FB0, 0xC5ACCE55) -- CPU is running -- CPU_WriteMem(4 bytes @ 0xE0000FB0) returns 0 (0001ms, 0300ms total)
    48. T1758 000:312 JLINK_SetResetDelay(0) (0000ms, 0300ms total)
    49. 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)
    50. -- CPU_ReadMem(4 bytes @ 0xE000EDF0) -- CPU_WriteMem(4 bytes @ 0xE0002000) -- CPU_ReadMem(4 bytes @ 0xE000EDFC) -- CPU_ReadMem(4 bytes @ 0xE0001000) (0070ms, 0370ms total)
    51. T1758 000:382 JLINK_IsHalted() returns TRUE (0000ms, 0370ms total)
    52. T1758 000:382 JLINK_ReadRegs(NumRegs = 1, Indexes: 0) -- R0=0x00 returns 0x00 (0000ms, 0370ms total)
    53. T1758 000:382 JLINK_ReadRegs(NumRegs = 1, Indexes: 1) -- R1=0x00 returns 0x00 (0000ms, 0370ms total)
    54. ....
    55. T1758 000:384 JLINK_ReadRegs(NumRegs = 1, Indexes: 17) -- MSP=0x20008000 returns 0x00 (0000ms, 0372ms total)
    56. T1758 000:384 JLINK_ReadRegs(NumRegs = 1, Indexes: 18) -- PSP=0x00 returns 0x00 (0000ms, 0372ms total)
    57. T1758 000:384 JLINK_ReadRegs(NumRegs = 1, Indexes: 20) -- CFBP=0x00 returns 0x00 (0000ms, 0372ms total)
    58. T1758 000:404 JLINK_BeginDownload(Flags = 0x00) (0000ms, 0372ms total)
    59. 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)
    60. T1758 000:573 JLINK_EndDownload() returns -1 (0000ms, 0541ms total)
    61. T1758 001:302 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
    62. T1758 002:300 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
    63. T1758 003:293 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
    64. T1758 004:292 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
    65. T1758 005:302 JLINK_ReadMemU32(0xE0001004, 0x0001 Items, ...) - Data: 00 00 00 00 returns 1 (0000ms, 0541ms total)
    Display All
    Images
    • DownloadError.PNG

      12.28 kB, 392×196, viewed 510 times
    • J-Link Commander.PNG

      32.53 kB, 979×512, viewed 791 times
    • J-Link Control Panel.PNG

      23.57 kB, 552×374, viewed 691 times
    • SES Debugger Options.PNG

      48.26 kB, 1,013×828, viewed 682 times
    • SES J-Link Options.PNG

      36.55 kB, 1,013×828, viewed 720 times
  • Hi,

    Thank you for your inquiry.
    The PAC5532 is currently not officially supported by J-Link software which is why you see the software falling back to Cortex-M4 than staying with the actual target device which will only partially work.
    But you are in luck, Active/Semi( now Qorvo) provides J-Link support on their own.
    You can get it here:
    active-semi.com/products/intel…ntrol/pac5532#et_pb_tab_4
    According to Qorvo you need to have a "myActive login" on their website to access it.

    Does it work if you if you add device support as explained in the Qorvo package?
    The first step adding it to the JLinkDevices.xml that is used by your Embedded Studio is the crucial step here.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.