nRF52840 + CircuitPython 安装步骤

nRF52840 + CircuitPython 安装步骤

TONYLABS 27 Nov, 2020
Share:

安装NRF Connect

首先,我们需要NRF Connect ,我们将使用该软件将CircuitPython上传到板上。

您可以在这里下载:https : //www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop

单击安装

 

将 Dongle 置于引导加载程序 DFU 模式

插入板卡时RESET按钮,您应该看到红色的 LED 闪烁

现在,您可以将开发板连接到NRF Connect Programmer

 

下载Adafruit NRF52引导程序和CircuitPython

我们需要2个十六进制文件来安装CircuitPython

  • 引导加载程序,它将使我们的开发板成为USB驱动器
  • CircuitPython解释我们的python代码

在此处下载mdk_nrf52840_dongle_bootloader-XXX_sXXX_X.XX.hex https://github.com/adafruit/Adafruit_nRF52_Bootloader/releases

然后在这里下载CircuitPython: https://circuitpython.org/board/makerdiary_nrf52840_mdk_usb_dongle/

 

上传十六进制文件

在 Programmer 中,同时添加 2 个十六进制文件,如下所示:

 

待程序烧录完成后,拔下并重新插入您的 Dongle,您应该会看到一个USB驱动器。

恭喜,您现在可以使用CircuitPython进行编码!

您现在将无法通过NRF Connect访问您的开发板,如果需要上传新程序,只需按 Reset。

测试BLE通讯

使用CircuitPython的一件很酷的事情是,我们只需要拖放文件即可使其工作

因此,让我们尝试一下,下载该程序并将其复制到您的开发板上https://github.com/maditnerd/makerdiary_circuitpython_test/archive/master.zip

LED应该变成白色!

 

安装 CircuitPython 扩展

https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest

Like what you're reading? Subscribe to our top stories.

We will continue to update Front; if you have any questions or suggestions, please contact us!

Follow us on Medium, Twitter, Facebook, YouTube, and Dribbble.

Image Description
Written by

Hanna Wolfe

I create advanced website builders made exclusively for web developers.

3 Comments

  • Image Description
    Dave Austin 1 day ago

    As a Special Education teacher this resonates so well with me. Fighting with gen ed teachers to flatten for the students with learning disabilities. It also confirms some things for me in my writing.

    Reply
    • Image Description
      Hanna Wolfe 1 day ago

      Love it Dave! We're all about keeping it up.

      Reply
  • Image Description
    Christina Kray 2 days ago

    Since our attention spans seem to be shrinking by the day — keeping it simple is more important than ever.

    Reply

Post a comment

Stay in the know

Get special offers on the latest developments from Front.