簡體   English   中英

Flash OpenThread 到 Adafruit Feather nRF52840

[英]Flash OpenThread onto Adafruit Feather nRF52840

大家好,

在本指南的幫助下,我目前正在嘗試將 flash OpenThread 放到 Adafruit Feather nRF52840 Express 上。

我使用的硬件和軟件:

  • Adafruit Feather nRF52840 Express,通過 USB 連接。
  • 我在 macOS 和 Ubuntu 上進行了嘗試。
  • JLink 版本:17.0.2
  • nrfjprog 版本:10.17.3 外部
  • 引導加載程序:UF2 引導加載程序 0.6.2

當我嘗試 flash 我的設備時,我收到以下錯誤消息:

ERROR: No debuggers were discovered.
NOTE: For additional output, try running again with logging enabled (--log).
NOTE: Any generated log error messages will be displayed.

如果我在啟用 --log 標志的情況下運行它,我會在日志文件中得到它:

[ info]: --------------------------------------------------------------------------------
[ info]: nrfjprog -f nrf52 --chiperase --program ot-cli-ftd.hex --reset --log
[ info]: nrfjprog version 10.17.3 external
[ info]: --------------------------------------------------------------------------------
[ info]: Load library at /Applications/Nordic Semiconductor/lib/libnrfjprogdll.dylib.
[ info]: Library loaded, loading member functions.
[ info]: Member functions succesfully loaded.
[debug]: [ Client] - open
[debug]: [ Client] - start
[ info]: [ Client] - stdout: Jlinkarm nRF Worker ready. Handling sequence 4a6ee3a6-2ab7-4ca7-841c-942cb217da23.
[trace]: [ Client] - Command open executed for 11 milliseconds with result 0
[debug]: [ Client] - config
[trace]: [ Client] - Command config executed for 2 milliseconds with result 0
[debug]: [ Client] - enum_emu_snr
[trace]: [ Client] - Command enum_emu_con_info executed for 0 milliseconds with result 0
[debug]: [SeggerBackend] - Logger sink registered in Segger backend logger
[debug]: [  JLink] - Logger sink registered in JLink logger
[debug]: [  nRF52] - open
[debug]: [  nRF52] - just_check_family
[debug]: [SeggerBackend] - open_dll
[debug]: [SeggerBackend] - No J-Link DLL path was provided. Attempting to auto detect.
[ info]: [SeggerBackend] - Load library at /Applications/SEGGER/JLink/libjlinkarm.7.66.1.dylib.
[ info]: [SeggerBackend] - Library loaded, loading member functions.
[ info]: [SeggerBackend] - Member functions succesfully loaded.
[debug]: [SeggerBackend] - Set batch mode
[debug]: [SeggerBackend] - dll_version
[ info]: [SeggerBackend] - Segger dll version 7.66.a loaded.
[trace]: [ Worker] - Command open executed for 4 milliseconds with result 0
[debug]: [  nRF52] - config
[trace]: [ Worker] - Command config executed for 2 milliseconds with result 0
[debug]: [  nRF52] - enum_emu_con_info
[debug]: [SeggerBackend] - is_connected_to_emu
[debug]: [SeggerBackend] - enum_emu_con_info
[debug]: [SeggerBackend] - is_connected_to_emu
[trace]: [ Worker] - Command enum_emu_con_info executed for 0 milliseconds with result 0
[debug]: [  nRF52] - close
[debug]: [SeggerBackend] - is_connected_to_emu
[debug]: [SeggerBackend] - close
[debug]: [SeggerBackend] - disconnect_from_emu
[debug]: [SeggerBackend] - is_connected_to_emu
[debug]: [SeggerBackend] - Segger Backend closed.
[debug]: [  nRF52] - nRF family DLL closed
[trace]: [ Client] - Command close executed for 10 milliseconds with result 0
[debug]: [ Client] - terminate
[trace]: [ Client] - Command terminate executed for 0 milliseconds with result 0
[trace]: [ Worker] - Command close executed for 10 milliseconds with result 0
[trace]: [ Worker] - Command terminate executed for 0 milliseconds with result 0
[trace]: [ Worker] - Executed 5 commands for 16 milliseconds
[debug]: [ Client] - Child process terminated with result 0
[debug]: [ Client] - Worker process exited with code: 0
[debug]: [ Client] - Worker process exited with code: 0
[trace]: [ Client] - Executed 5 commands for 23 milliseconds
[debug]: [ Client] - terminate

所以基本上閃爍不起作用,但我不知道為什么,我在日志文件中看不到任何問題。 有沒有人有任何想法或可以以任何方式幫助我? 我是否可能需要 SEGGER J-Link 調試器?

感謝您的任何幫助。

最好的問候,艾米麗

你是對的,你需要一個 J-Link 調試器或其他一些外部程序員。 您鏈接到的指南使用nRF52840 DK ,它有一個 SEGGER J-Link 板載(如果您查看該站點,它是白色方塊。)

擁有它是一件有用的事情,特別是如果您計划在未來更換所有固件(或實際調試:D。)

Adafruit Feather nRF52840 中的 nRF52840 隨附 Adafruit nRF52 UF2 引導加載程序,無需額外硬件即可用於 flash OpenThread。

OpenThread 需要使用選項 OT_BOOTLOADER=USB 編譯,例如:

./script/build nrf52840 USB_trans -DOT_BOOTLOADER=USB

(參見 ot-nrf528xx.git 中的 src/nrf52840/README.md)。

您將看到轉換為 U2F 現在說:

start address: 0x1000

在 UF2 編程之后,該板應該按預期工作。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM