Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Makerdiary nRF52840 MDK dongle #46

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 77 additions & 21 deletions boards.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

menu.softdevice=SoftDevice
menu.softdevice=Bootloader
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it need to change?

menu.debug=Debug

# ----------------------------------
Expand Down Expand Up @@ -57,7 +57,7 @@ feather52840.build.vid=0x239A
feather52840.build.pid=0x8029

# SofDevice Menu
feather52840.menu.softdevice.s140v7=S140 7.0.1
feather52840.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto.

feather52840.menu.softdevice.s140v7.build.sd_name=s140
feather52840.menu.softdevice.s140v7.build.sd_version=7.0.1
feather52840.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand All @@ -75,9 +75,9 @@ feather52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1


# ----------------------------------
# Feather nRF52840 sense
# Feather Bluefruit sense
# ----------------------------------
feather52840sense.name=Adafruit Feather nRF52840 Sense
feather52840sense.name=Adafruit Feather Bluefruit Sense

# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
feather52840sense.vid.0=0x239A
Expand Down Expand Up @@ -112,7 +112,7 @@ feather52840sense.build.vid=0x239A
feather52840sense.build.pid=0x8087

# SofDevice Menu
feather52840sense.menu.softdevice.s140v7=S140 7.0.1
feather52840sense.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
feather52840sense.menu.softdevice.s140v7.build.sd_name=s140
feather52840sense.menu.softdevice.s140v7.build.sd_version=7.0.1
feather52840sense.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand Down Expand Up @@ -167,7 +167,7 @@ itsybitsy52840.build.vid=0x239A
itsybitsy52840.build.pid=0x8051

# SofDevice Menu
itsybitsy52840.menu.softdevice.s140v7=S140 7.0.1
itsybitsy52840.menu.softdevice.s140v7=0.2.11 SoftDevice s140 7.0.1
itsybitsy52840.menu.softdevice.s140v7.build.sd_name=s140
itsybitsy52840.menu.softdevice.s140v7.build.sd_version=7.0.1
itsybitsy52840.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand Down Expand Up @@ -221,7 +221,7 @@ cplaynrf52840.build.vid=0x239A
cplaynrf52840.build.pid=0x8045

# SofDevice Menu
cplaynrf52840.menu.softdevice.s140v7=S140 7.0.1
cplaynrf52840.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
cplaynrf52840.menu.softdevice.s140v7.build.sd_name=s140
cplaynrf52840.menu.softdevice.s140v7.build.sd_version=7.0.1
cplaynrf52840.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand Down Expand Up @@ -276,7 +276,7 @@ cluenrf52840.build.vid=0x239A
cluenrf52840.build.pid=0x8071

# SofDevice Menu
cluenrf52840.menu.softdevice.s140v7=S140 7.0.1
cluenrf52840.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
cluenrf52840.menu.softdevice.s140v7.build.sd_name=s140
cluenrf52840.menu.softdevice.s140v7.build.sd_version=7.0.1
cluenrf52840.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand All @@ -293,9 +293,9 @@ cluenrf52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
cluenrf52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1

# ----------------------------------
# Metro nRF52840 Express
# Bluefruit Metro nRF52840 Express
# ----------------------------------
metro52840.name=Adafruit Metro nRF52840 Express
metro52840.name=Adafruit Bluefruit Metro nRF52840 Express

# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
metro52840.vid.0=0x239A
Expand Down Expand Up @@ -330,7 +330,7 @@ metro52840.build.vid=0x239A
metro52840.build.pid=0x803F

# SofDevice Menu
metro52840.menu.softdevice.s140v7=S140 7.0.1
metro52840.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
metro52840.menu.softdevice.s140v7.build.sd_name=s140
metro52840.menu.softdevice.s140v7.build.sd_version=7.0.1
metro52840.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand Down Expand Up @@ -384,7 +384,7 @@ pca10056.build.vid=0x239A
pca10056.build.pid=0x8029

# SofDevice Menu
pca10056.menu.softdevice.s140v7=S140 7.0.1
pca10056.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
pca10056.menu.softdevice.s140v7.build.sd_name=s140
pca10056.menu.softdevice.s140v7.build.sd_version=7.0.1
pca10056.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand Down Expand Up @@ -438,7 +438,7 @@ particle_xenon.build.vid=0x239A
particle_xenon.build.pid=0x8029

# SofDevice Menu
particle_xenon.menu.softdevice.s140v7=S140 7.0.1
particle_xenon.menu.softdevice.s140v7=0.2.11 SoftDevice s140 7.0.1
particle_xenon.menu.softdevice.s140v7.build.sd_name=s140
particle_xenon.menu.softdevice.s140v7.build.sd_version=7.0.1
particle_xenon.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand All @@ -459,13 +459,15 @@ particle_xenon.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
# ----------------------------------
mdbt50qrx.name=Raytac MDBT50Q-RX Dongle

# VID/PID for bootloader, Arduino + Circuitpython App
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
mdbt50qrx.vid.0=0x239A
mdbt50qrx.pid.0=0x810B
mdbt50qrx.pid.0=0x8029
mdbt50qrx.vid.1=0x239A
mdbt50qrx.pid.1=0x010B
mdbt50qrx.pid.1=0x0029
mdbt50qrx.vid.2=0x239A
mdbt50qrx.pid.2=0x810C
mdbt50qrx.pid.2=0x002A
mdbt50qrx.vid.3=0x239A
mdbt50qrx.pid.3=0x802A

# Upload
mdbt50qrx.bootloader.tool=bootburn
Expand All @@ -482,15 +484,15 @@ mdbt50qrx.build.f_cpu=64000000
mdbt50qrx.build.board=MDBT50Q_RX
mdbt50qrx.build.core=nRF5
mdbt50qrx.build.variant=raytac_mdbt50q_rx
mdbt50qrx.build.usb_manufacturer="Raytac"
mdbt50qrx.build.usb_product="nRF52840 Dongle"
mdbt50qrx.build.usb_manufacturer="Raytac Corporation"
mdbt50qrx.build.usb_product="Raytac MDBT50Q - RX"
mdbt50qrx.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
mdbt50qrx.build.ldscript=nrf52840_s140_v7.ld
mdbt50qrx.build.vid=0x239A
mdbt50qrx.build.pid=0x810B
mdbt50qrx.build.pid=0x8029

# SofDevice Menu
mdbt50qrx.menu.softdevice.s140v7=S140 7.0.1
mdbt50qrx.menu.softdevice.s140v7=0.3.2 SoftDevice s140 7.0.1
mdbt50qrx.menu.softdevice.s140v7.build.sd_name=s140
mdbt50qrx.menu.softdevice.s140v7.build.sd_version=7.0.1
mdbt50qrx.menu.softdevice.s140v7.build.sd_fwid=0x00CA
Expand All @@ -505,3 +507,57 @@ mdbt50qrx.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2
mdbt50qrx.menu.debug.l3=Level 3 (Segger SystemView)
mdbt50qrx.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
mdbt50qrx.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1

# ----------------------------------
# Makerdiary nRF52840 MDK USB Dongle
# ----------------------------------
mdk52840.name=Makerdiary nRF52840 MDK Dongle

# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
mdk52840.vid.0=0x239A
mdk52840.pid.0=0x80DD
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmation: Where did the values 0x80DD and 0x802A come from? (I couldn't found in the bootloader source.)

mdk52840.vid.1=0x239A
mdk52840.pid.1=0x0029
mdk52840.vid.2=0x239A
mdk52840.pid.2=0x002A
mdk52840.vid.3=0x239A
mdk52840.pid.3=0x802A

# Upload
mdk52840.bootloader.tool=bootburn
mdk52840.upload.tool=nrfutil
mdk52840.upload.protocol=nrfutil
mdk52840.upload.use_1200bps_touch=true
mdk52840.upload.wait_for_upload_port=true
mdk52840.upload.maximum_size=815104
mdk52840.upload.maximum_data_size=237568

# Build
mdk52840.build.mcu=cortex-m4
mdk52840.build.f_cpu=64000000
mdk52840.build.board=MDK_NRF52840
mdk52840.build.core=nRF5
mdk52840.build.variant=mdk_nrf52840
mdk52840.build.usb_manufacturer="Makerdiary"
mdk52840.build.usb_product="Makerdiary nRF52840 MDK"
mdk52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
mdk52840.build.ldscript=nrf52840_s140_v7.ld
mdk52840.build.vid=0x239A
mdk52840.build.pid=0x80DD

# SofDevice Menu
mdk52840.menu.softdevice.s140v7=0.6.3 SoftDevice s140 7.0.1
mdk52840.menu.softdevice.s140v7.build.sd_name=s140
mdk52840.menu.softdevice.s140v7.build.sd_version=7.0.1
mdk52840.menu.softdevice.s140v7.build.sd_fwid=0x00CA

# Debug Menu
mdk52840.menu.debug.l0=Level 0 (Release)
mdk52840.menu.debug.l0.build.debug_flags=-DCFG_DEBUG=0
mdk52840.menu.debug.l1=Level 1 (Error Message)
mdk52840.menu.debug.l1.build.debug_flags=-DCFG_DEBUG=1
mdk52840.menu.debug.l2=Level 2 (Full Debug)
mdk52840.menu.debug.l2.build.debug_flags=-DCFG_DEBUG=2
mdk52840.menu.debug.l3=Level 3 (Segger SystemView)
mdk52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
mdk52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
Loading