看了官方的說明後,開始練習如何使用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
logs顯示 - ERROR Error when closing nrfjprog: Error: Error occured when close opened device. Errorcode: CouldNotResetDevice (0x5)
- Lowlevel error: CANNOT_CONNECT (fffffff5)
- 2020-08-17T13:43:25.291Z INFO Model: NRF5340_xxAA_ENGA.
- 2020-08-17T13:43:25.294Z ERROR Error when getting device info: Error: Error: Error occured when open device long term. Errorcode: CouldNotOpenDevice (0x4)
- Lowlevel error: INVALID_OPERATION (fffffffe)
- 2020-08-17T13:43:25.296Z ERROR Error when closing nrfjprog: Error: Error occured when close opened device. Errorcode: CouldNotOpenDevice (0x4)
- Lowlevel error: INVALID_OPERATION (fffffffe)
複製代碼
到官方詢問後
並到終端機下執行兩條指令就可以了 - nrfjprog -f NRF53 --coprocessor CP_NETWORK --recover
- nrfjprog -f NRF53 --coprocessor CP_APPLICATION --recover
複製代碼
nRF5340 Flash HEX nordicsemi AIOT
如是nRF52840,抹除加上寫入hex檔案 - nrfjprog -f NRF52 --program file.hex –-chiperase
複製代碼
單純抹除- nrfjprog -f NRF52 --recover
複製代碼
訊息回應代碼網址https://infocenter.nordicsemi.com/index.jsp?topic=%2Fug_nrf5x_cltools%2FUG%2Fcltools%2Fnrf5x_nrfjprogexe_return_codes.html
文章出處:網頁設計,網站架設 ,網路行銷,網頁優化,SEO - NetYea 網頁設計
|