TShopping

 找回密碼
 註冊
搜索
查看: 1900|回復: 0
打印 上一主題 下一主題

[教學] nRF5340 Flash 錯誤的HEX檔案,無法再次寫入該如何處理

[複製鏈接]
匿名
跳轉到指定樓層
1#
匿名  發表於 2020-8-17 21:36:30 |只看大圖 回帖獎勵 |倒序瀏覽 |閱讀模式
 
Push to Facebook
看了官方的說明後,開始練習如何使用nRF5340-PDK
沒想到怎麼也學不會
去官方詢問了之後
官方回復請練習入門的閃爍教程
Download the latest SDK.
Then navigate to examples -> ble_peripherals -> blinky example

就把SDK下載來燒錄到nRF5340-PDK了
components\softdevice\SoftDevice\hex
沒想到nRF5340-PDK死掉了,顯示無法再次抹除燒錄了

logs顯示
  1. ERROR Error when closing nrfjprog: Error: Error occured when close opened device. Errorcode: CouldNotResetDevice (0x5)
  2. Lowlevel error: CANNOT_CONNECT (fffffff5)

  3. 2020-08-17T13:43:25.291Z INFO Model: NRF5340_xxAA_ENGA.
  4. 2020-08-17T13:43:25.294Z ERROR Error when getting device info: Error: Error: Error occured when open device long term. Errorcode: CouldNotOpenDevice (0x4)
  5. Lowlevel error: INVALID_OPERATION (fffffffe)

  6. 2020-08-17T13:43:25.296Z ERROR Error when closing nrfjprog: Error: Error occured when close opened device. Errorcode: CouldNotOpenDevice (0x4)
  7. Lowlevel error: INVALID_OPERATION (fffffffe)
複製代碼

到官方詢問後
官方說下載nRF-Command-Line-Tools/Download並安裝

並到終端機下執行兩條指令就可以了
  1. nrfjprog -f NRF53 --coprocessor CP_NETWORK --recover
  2. nrfjprog -f NRF53 --coprocessor CP_APPLICATION --recover
複製代碼


如是nRF52840,抹除加上寫入hex檔案
  1. nrfjprog -f NRF52 --program file.hex –-chiperase
複製代碼

單純抹除
  1. nrfjprog -f NRF52 --recover
複製代碼

訊息回應代碼網址https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf5x_cltools%2FUG%2Fcltools%2Fnrf5x_nrfjprogexe_return_codes.html

文章出處:網頁設計,網站架設 ,網路行銷,網頁優化,SEO - NetYea 網頁設計


 

臉書網友討論
*滑块验证:
您需要登錄後才可以回帖 登錄 | 註冊 |

本版積分規則



Archiver|手機版|小黑屋|免責聲明|TShopping

GMT+8, 2024-4-27 09:51 , Processed in 0.380320 second(s), 25 queries .

本論壇言論純屬發表者個人意見,與 TShopping綜合論壇 立場無關 如有意見侵犯了您的權益 請寫信聯絡我們。

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表