在线时间54 小时
UID3448572
注册时间2017-12-21
NXP金币0
TA的每日心情 | 开心 2018-11-23 14:51 |
---|
签到天数: 2 天 连续签到: 1 天 [LV.1]初来乍到
中级会员
 
- 积分
- 299
- 最后登录
- 2019-1-2
|
之前烧录一个程序,其中擦除了一段Flash,运行之后再烧就怎么烧录都烧不进,而且试过其他很多程序都烧不进。
address = 8u * FSL_FEATURE_FLS_PF_BLOCK_SECTOR_SIZE;
size = FSL_FEATURE_FLS_PF_BLOCK_SECTOR_SIZE;
for(j=0;j<0x20;j++)
{
ret = FlashEraseSector(&flashSSDConfig, address+FSL_FEATURE_FLS_PF_BLOCK_SECTOR_SIZE*j, size, pCmdSequence);
}
报错如下:
J-Link GDB Server failed:
Could not connect to target. Please check if target is powered and if ribbon cable is plugged properly.
For more details, see the JLinkGDBServerCL.exe console.
the JLinkGDBServerCL.exe console:
SEGGER J-Link GDB Server V6.10i Command Line Version
JLinkARM.dll V6.10i (DLL compiled Oct 25 2016 19:31:51)
-----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 V9 compiled Jun 16 2017 16:15:10
Hardware: V9.20
Feature(s): RDI, GDB, FlashDL, FlashBP, JFlash
Checking target voltage...
Target voltage: 4.78 V
Listening on TCP/IP port 2331
Connecting to target...ERROR: Kinetis (connect): Communication error while accessing MDM-AP.
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
试过用v2.0的环境,报错如下:
Connecting to target...ERROR: InitTarget(): PCode returned with error code -1
ERROR: Could not connect to target.
Target connection failed. GDBServer will be closed...Restoring target state and closing J-Link connection...
Shutting down...
感觉擦了什么不该擦得东西,请教该如何解决,已经玩坏了两块板了,都不敢调试了。
|
|