请选择 进入手机版 | 继续访问电脑版
查看: 570|回复: 7

[S32] S32K144 jlink烧程序卡在 Starting target CPU

[复制链接]
  • TA的每日心情
    开心
    2019-1-11 10:33
  • 签到天数: 2 天

    [LV.1]初来乍到

    1

    主题

    4

    帖子

    0

    金豆

    新手上路

    Rank: 1

    积分
    18
    最后登录
    2019-1-16
    发表于 2019-1-10 19:59:50 | 显示全部楼层 |阅读模式
    请问有没有大神知道,为什么每次jlink烧程序都卡在 Stating target CPU那里,但是程序已经写进去了。log如下:

    SEGGER J-Link GDB Server V6.22e Command Line Version

    JLinkARM.dll V6.22e (DLL compiled Jan  8 2018 11:44:25)

    Command line: -if swd -device S32K144 -endian little -speed auto -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui
    -----GDB Server start settings-----
    GDBInit file:                  none
    GDB Server Listening port:     2331
    SWO raw output listening port: 2332
    Terminal I/O port:             2333
    Accept remote connection:      localhost only
    Generate logfile:              off
    Verify download:               on
    Init regs on start:            on
    Silent mode:                   off
    Single run mode:               on
    Target connection timeout:     0 ms
    ------J-Link related settings------
    J-Link Host interface:         USB
    J-Link script:                 none
    J-Link settings file:          none
    ------Target related settings------
    Target device:                 S32K144
    Target interface:              SWD
    Target interface speed:        auto
    Target endian:                 little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link V9 compiled Oct 25 2018 11:46:07
    Hardware: V9.40
    S/N: 59402905
    Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash
    Checking target voltage...
    Target voltage: 3.29 V
    Listening on TCP/IP port 2331
    Connecting to target...Connected to target
    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0x20007000)
    Received monitor command: speed 1000
    Target interface speed set to 1000 kHz
    Received monitor command: clrbp
    Received monitor command: reset
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ...Target halted (PC = 0x00000410)
    Received monitor command: regs
    R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
    R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
    R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
    R12= 00000000, R13= 20007000, MSP= 20007000, PSP= 00000000
    R14(LR) = FFFFFFFF, R15(PC) = 00000410
    XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Read 4 bytes @ address 0x00000410 (Data = 0x4910B672)
    Received monitor command: speed auto
    Select auto target interface speed (2000 kHz)
    Received monitor command: flash breakpoints 1
    Flash breakpoints enabled
    Received monitor command: semihosting enable
    Semi-hosting enabled (Handle on BKPT)
    Received monitor command: semihosting IOClient 1
    Semihosting I/O set to TELNET Client
    Received monitor command: SWO DisableTarget 0xFFFFFFFF
    SWO disabled successfully.
    Received monitor command: SWO EnableTarget 0 0 0x1 0
    ERROR: Failed to measure CPU clock frequency: second loop count is less than first one! (0<=12859)

    Failed to enable SWO. Could not measure target CPU frequency.
    Read 4 bytes @ address 0x00000410 (Data = 0x4910B672)
    Received monitor command: clrbp
    Received monitor command: reset
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ...Target halted (PC = 0x00000410)
    Downloading 1024 bytes @ address 0x00000000 - Verified OK
    Downloading 16 bytes @ address 0x00000400 - Verified OK
    Downloading 1844 bytes @ address 0x00000410 - Verified OK
    Downloading 4 bytes @ address 0x00000B44 - Verified OK
    Read 4 bytes @ address 0x00000410 (Data = 0x490BB672)
    Received monitor command: regs
    Comparing flash   [....................] Done.
    Erasing flash     [....................] Done.
    Programming flash [....................] Done.
    Verifying flash   [....................] Done.
    R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
    R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
    R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
    R12= 00000000, R13= 20007000, MSP= 20007000, PSP= 00000000
    R14(LR) = FFFFFFFF, R15(PC) = 00000410
    XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Read 4 bytes @ address 0x00000410 (Data = 0x490BB672)
    Starting target CPU...

    最佳答案

    仅供参考 SEGGER J-Link GDB Server V6.22e Command Line Version JLinkARM.dll V6.22e (DLL compiled Jan  8 2018 11:44:25) Command line: -if swd -device S32K144 -endian little -speed 1000 -port ...
    要是我,我肯定选不想填写,别问我为啥,懒~
    回复

    使用道具 举报

    该用户从未签到

    209

    主题

    4301

    帖子

    0

    金豆

    超级版主

    Rank: 8Rank: 8

    积分
    6381
    最后登录
    2019-7-23
    发表于 2019-1-11 09:57:08 | 显示全部楼层
    这不是成功了吗?!!
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    开心
    2019-1-11 10:33
  • 签到天数: 2 天

    [LV.1]初来乍到

    1

    主题

    4

    帖子

    0

    金豆

    新手上路

    Rank: 1

    积分
    18
    最后登录
    2019-1-16
     楼主| 发表于 2019-1-11 10:32:31 | 显示全部楼层
    小恩GG 发表于 2019-1-11 09:57
    这不是成功了吗?!!

    我用的S32DS,每次jlink烧完程序,需要在控制台点“terminate”那个按键才能停止,否则一直不能结束。大家jlink烧写都是这样吗?
    要是我,我肯定选不想填写,别问我为啥,懒~
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2019-6-4 10:16
  • 签到天数: 47 天

    [LV.5]常住居民I

    3

    主题

    114

    帖子

    15

    金豆

    中级会员

    Rank: 3Rank: 3

    积分
    280
    最后登录
    2019-6-4
    发表于 2019-1-11 13:09:01 | 显示全部楼层
    alex135246 发表于 2019-1-11 10:32
    我用的S32DS,每次jlink烧完程序,需要在控制台点“terminate”那个按键才能停止,否则一直不能结束。大 ...

    不是,会停在main入口
    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    2019-6-4 10:16
  • 签到天数: 47 天

    [LV.5]常住居民I

    3

    主题

    114

    帖子

    15

    金豆

    中级会员

    Rank: 3Rank: 3

    积分
    280
    最后登录
    2019-6-4
    发表于 2019-1-11 13:10:01 | 显示全部楼层
    仅供参考
    SEGGER J-Link GDB Server V6.22e Command Line Version

    JLinkARM.dll V6.22e (DLL compiled Jan  8 2018 11:44:25)

    Command line: -if swd -device S32K144 -endian little -speed 1000 -port 2331 -swoport 2332 -telnetport 2333 -vd -ir -localhostonly 1 -singlerun -strict -timeout 0 -nogui
    -----GDB Server start settings-----
    GDBInit file:                  none
    GDB Server Listening port:     2331
    SWO raw output listening port: 2332
    Terminal I/O port:             2333
    Accept remote connection:      localhost only
    Generate logfile:              off
    Verify download:               on
    Init regs on start:            on
    Silent mode:                   off
    Single run mode:               on
    Target connection timeout:     0 ms
    ------J-Link related settings------
    J-Link Host interface:         USB
    J-Link script:                 none
    J-Link settings file:          none
    ------Target related settings------
    Target device:                 S32K144
    Target interface:              SWD
    Target interface speed:        1000kHz
    Target endian:                 little

    Connecting to J-Link...
    J-Link is connected.
    Firmware: J-Link ARM V8 compiled Nov 28 2014 13:44:46
    Hardware: V8.00
    S/N: 12345678
    Feature(s): RDI,FlashDL,FlashBP,JFlash,GDBFull
    Checking target voltage...
    Target voltage: 5.08 V
    Listening on TCP/IP port 2331
    Connecting to target...Connected to target
    Waiting for GDB connection...Connected to 127.0.0.1
    Reading all registers
    Read 4 bytes @ address 0x00000000 (Data = 0x20007000)
    Received monitor command: speed 1000
    Target interface speed set to 1000 kHz
    Received monitor command: clrbp
    Received monitor command: reset
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ...Target halted (PC = 0x00000410)
    Received monitor command: regs
    R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
    R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
    R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
    R12= 00000000, R13= 20007000, MSP= 20007000, PSP= 00000000
    R14(LR) = FFFFFFFF, R15(PC) = 00000410
    XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Read 4 bytes @ address 0x00000410 (Data = 0x490BB672)
    Received monitor command: speed 100
    Target interface speed set to 100 kHz
    Received monitor command: flash breakpoints 1
    Flash breakpoints enabled
    Received monitor command: semihosting enable
    Semi-hosting enabled (Handle on BKPT)
    Received monitor command: semihosting IOClient 1
    Semihosting I/O set to TELNET Client
    Read 4 bytes @ address 0x00000410 (Data = 0x490BB672)
    Downloading 1024 bytes @ address 0x00000000 - Verified OK
    Downloading 16 bytes @ address 0x00000400 - Verified OK
    Downloading 4096 bytes @ address 0x00000410 - Verified OK
    Downloading 4096 bytes @ address 0x00001410 - Verified OK
    Downloading 4096 bytes @ address 0x00002410 - Verified OK
    Downloading 4096 bytes @ address 0x00003410 - Verified OK
    Downloading 4096 bytes @ address 0x00004410 - Verified OK
    Downloading 1580 bytes @ address 0x00005410 - Verified OK
    Downloading 2504 bytes @ address 0x00005A3C - Verified OK
    Read 4 bytes @ address 0x00000410 (Data = 0x490BB672)
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Received monitor command: clrbp
    Received monitor command: reset
    Comparing flash   [....................] Done.
    Verifying flash   [....................] Done.
    Resetting target
    Received monitor command: halt
    Halting target CPU...
    ...Target halted (PC = 0x00000410)
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Received monitor command: regs
    R0 = 00000000, R1 = 00000000, R2 = 00000000, R3 = 00000000
    R4 = 00000000, R5 = 00000000, R6 = 00000000, R7 = 00000000
    R8 = 00000000, R9 = 00000000, R10= 00000000, R11= 00000000
    R12= 00000000, R13= 20007000, MSP= 20007000, PSP= 00000000
    R14(LR) = FFFFFFFF, R15(PC) = 00000410
    XPSR 01000000, APSR 00000000, EPSR 01000000, IPSR 00000000
    CFBP 00000000, CONTROL 00, FAULTMASK 00, BASEPRI 00, PRIMASK 00
    Reading all registers
    Read 4 bytes @ address 0x00000410 (Data = 0x490BB672)
    Setting breakpoint @ address 0x00000608, Size = 2, BPHandle = 0x0001
    Starting target CPU...
    ...Breakpoint reached @ address 0x00000608
    Reading all registers
    Read 4 bytes @ address 0x00000608 (Data = 0xFF98F7FF)
    Removing breakpoint @ address 0x00000608, Size = 2
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Read 2 bytes @ address 0x00000608 (Data = 0xF7FF)
    Read 1 bytes @ address 0x200001DC (Data = 0x00)
    Reading 64 bytes @ address 0x00000600
    Read 1 bytes @ address 0x200001DC (Data = 0x00)

    评分

    参与人数 1金豆 +1 收起 理由
    NXP管管 + 1

    查看全部评分

    该会员没有填写今日想说内容.
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    3

    帖子

    0

    金豆

    新手上路

    Rank: 1

    积分
    49
    最后登录
    2019-6-5
    发表于 2019-3-26 10:17:56 | 显示全部楼层
    请问最后如何解决的呢?
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    0

    主题

    3

    帖子

    0

    金豆

    新手上路

    Rank: 1

    积分
    49
    最后登录
    2019-6-5
    发表于 2019-3-26 10:18:52 | 显示全部楼层
    是debug的配置问题吗?还是其他? 谢谢!
    回复 支持 反对

    使用道具 举报

    该用户从未签到

    9

    主题

    43

    帖子

    0

    金豆

    中级会员

    Rank: 3Rank: 3

    积分
    387
    最后登录
    2019-7-23
    发表于 2019-4-3 11:30:12 | 显示全部楼层
    alex135246 发表于 2019-1-11 10:32
    我用的S32DS,每次jlink烧完程序,需要在控制台点“terminate”那个按键才能停止,否则一直不能结束。大 ...

    不是啊 烧写成功之后不是有提示么
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    小黑屋|手机版|Archiver|恩智浦技术社区

    GMT+8, 2019-7-24 03:52 , Processed in 0.104455 second(s), 24 queries , MemCache On.

    Powered by Discuz! X3.4

    © 2001-2013 Comsenz Inc.

    快速回复 返回顶部 返回列表