找回密碼
 註冊
搜索
查看: 2232|回復: 0

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

[複製鏈接]
匿名
匿名  發表於 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死掉了,顯示無法再次抹除燒錄了

nRF5340 Flash HEX nordicsemi AIOT

nRF5340 Flash  HEX nordicsemi AIOT

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
複製代碼

nRF5340 Flash HEX nordicsemi AIOT

nRF5340 Flash  HEX nordicsemi AIOT


如是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, 2025-5-1 00:13 , Processed in 0.024014 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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