ST意法半导体
直播中

幽默

9年用户 807经验值
擅长:362163
私信 关注
[问答]

怎么解决BLUENRG-M2SP模块上擦除命令超时的问题呢

我有几个 BLUENRG-M2SP 模块有问题。我尝试在 linux 下刷写固件(我们必须刷写 100 多个设备,每个设备都需要不同的固件,所以即插即用刷写是不够的,所以我从刷写器实用程序中复制了 ST 的配置)并且操作失败并出现以下错误消息:“错误:擦除命令失败(超时)”。所以我尝试使用 ST 的 BlueNRG-X Flasher Utility 4.1.0 进行刷写,但我遇到了同样的错误。

下面是一些日志:

  • ******FLASH OPERATION******
  • Flash of n.1 device connected by SWD (ST-Link/V2, CMSIS-DAP, J-Link)
  • 18:32:11.640: Device connection by ST-Link/V2 -> Device connected
  • 18:32:12.335: Device Identification -> BlueNRG-2
  • 18:32:13.023: Device Flash Programming -> FAILED
  • 18:32:14.298: Device Disconnection -> SUCCESS
  • 18:32:15.016: Flash operation finished!
  • ******END FLASH OPERATION******

  • debug_level: 2
  • 4000
  • 4445
  • C:/flasherUtilityTemp/BLE_Beacon_truestudi.bin
  • 0
  • 0028002E3156501320323443
  • 0x10040000
  • Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
  • Info : clock speed 4000 kHz
  • Info : STLINK V3J7M2B4S1 (API v3) VID:PID 0483:374F
  • Info : Target voltage: 3.288592
  • Info : bluenrg-1.cpu: hardware has 4 breakpoints, 2 watchpoints
  • Info : Listening on port 4445 for gdb connections
  • target halted due to debug-request, current mode: Thread
  • xPSR: 0xc1000000 pc: 0x100006f8 msp: 0x20006000
  • target halted due to debug-request, current mode: Thread
  • xPSR: 0xc1000000 pc: 0x100006f8 msp: 0x20006000
  • Info : Padding image section 0 at 0x100513a4 with 12 bytes (bank write end alignment)
  • Warn : Adding extra erase range, 0x100513b0 .. 0x100517ff
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: Erase command failed (timeout)
  • Error: failed erasing sectors 0 to 34
  • auto erase enabled
  • Warn : Flash driver of bluenrg-1.flash does not support free_driver_priv()
当我尝试读取闪存的内容时,它全是 0xff(我猜是擦除操作造成的)。

是否有可能解开这些设备?


回帖(1)

张英

2022-12-27 10:17:02
我仍然不知道是什么原因导致擦除速度下降,但我通过增加超时值重新编译 openocd 设法解决了这个问题,而且效果很好!
举报

更多回帖

发帖
×
20
完善资料,
赚取积分