Skip to content

Commit b4d684e

Browse files
committed
add makeboards.py, use generated boards.txt which is good enough
1 parent 6ba2cad commit b4d684e

File tree

2 files changed

+230
-99
lines changed

2 files changed

+230
-99
lines changed

boards.txt

Lines changed: 75 additions & 99 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
1-
# Copyright (c) 2014-2015 Arduino LLC. All right reserved.
2-
# Copyright (c) 2016 Sandeep Mistry All right reserved.
3-
# Copyright (c) 2017 Adafruit Industries. All right reserved.
4-
#
5-
# This library is free software; you can redistribute it and/or
6-
# modify it under the terms of the GNU Lesser General Public
7-
# License as published by the Free Software Foundation; either
8-
# version 2.1 of the License, or (at your option) any later version.
9-
#
10-
# This library is distributed in the hope that it will be useful,
11-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13-
# See the GNU Lesser General Public License for more details.
14-
#
15-
# You should have received a copy of the GNU Lesser General Public
16-
# License along with this library; if not, write to the Free Software
17-
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18-
191
menu.softdevice=SoftDevice
202
menu.debug=Debug
213

22-
# ----------------------------------
23-
# Bluefruit Feather nRF52832
24-
# ----------------------------------
4+
# -----------------------------------
5+
# Adafruit Feather nRF52832
6+
# -----------------------------------
257
feather52832.name=Adafruit Feather nRF52832
26-
feather52832.bootloader.tool=bootburn
8+
9+
# VID/PID for Bootloader, Arduino & CircuitPython
2710

2811
# Upload
12+
feather52832.bootloader.tool=bootburn
2913
feather52832.upload.tool=nrfutil
3014
feather52832.upload.protocol=nrfutil
3115
feather52832.upload.use_1200bps_touch=false
@@ -40,12 +24,12 @@ feather52832.build.f_cpu=64000000
4024
feather52832.build.board=NRF52832_FEATHER
4125
feather52832.build.core=nRF5
4226
feather52832.build.variant=feather_nrf52832
43-
feather52832.build.usb_manufacturer="Adafruit LLC"
27+
feather52832.build.usb_manufacturer="Adafruit"
4428
feather52832.build.usb_product="Feather nRF52832"
4529
feather52832.build.extra_flags=-DNRF52832_XXAA -DNRF52
4630
feather52832.build.ldscript=nrf52832_s132_v6.ld
4731

48-
# SofDevice Menu
32+
# SoftDevice Menu
4933
feather52832.menu.softdevice.s132v6=S132 6.1.1
5034
feather52832.menu.softdevice.s132v6.build.sd_name=s132
5135
feather52832.menu.softdevice.s132v6.build.sd_version=6.1.1
@@ -62,12 +46,12 @@ feather52832.menu.debug.l3=Level 3 (Segger SystemView)
6246
feather52832.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
6347
feather52832.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
6448

65-
# ----------------------------------
66-
# Bluefruit Feather nRF52840 Express
67-
# ----------------------------------
49+
# -----------------------------------
50+
# Adafruit Feather nRF52840 Express
51+
# -----------------------------------
6852
feather52840.name=Adafruit Feather nRF52840 Express
6953

70-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
54+
# VID/PID for Bootloader, Arduino & CircuitPython
7155
feather52840.vid.0=0x239A
7256
feather52840.pid.0=0x8029
7357
feather52840.vid.1=0x239A
@@ -92,14 +76,14 @@ feather52840.build.f_cpu=64000000
9276
feather52840.build.board=NRF52840_FEATHER
9377
feather52840.build.core=nRF5
9478
feather52840.build.variant=feather_nrf52840_express
95-
feather52840.build.usb_manufacturer="Adafruit LLC"
79+
feather52840.build.usb_manufacturer="Adafruit"
9680
feather52840.build.usb_product="Feather nRF52840 Express"
9781
feather52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
9882
feather52840.build.ldscript=nrf52840_s140_v6.ld
9983
feather52840.build.vid=0x239A
10084
feather52840.build.pid=0x8029
10185

102-
# SofDevice Menu
86+
# SoftDevice Menu
10387
feather52840.menu.softdevice.s140v6=S140 6.1.1
10488
feather52840.menu.softdevice.s140v6.build.sd_name=s140
10589
feather52840.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -116,13 +100,12 @@ feather52840.menu.debug.l3=Level 3 (Segger SystemView)
116100
feather52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
117101
feather52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
118102

119-
120-
# ----------------------------------
121-
# Feather nRF52840 sense
122-
# ----------------------------------
103+
# -----------------------------------
104+
# Adafruit Feather nRF52840 Sense
105+
# -----------------------------------
123106
feather52840sense.name=Adafruit Feather nRF52840 Sense
124107

125-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
108+
# VID/PID for Bootloader, Arduino & CircuitPython
126109
feather52840sense.vid.0=0x239A
127110
feather52840sense.pid.0=0x8087
128111
feather52840sense.vid.1=0x239A
@@ -147,14 +130,14 @@ feather52840sense.build.f_cpu=64000000
147130
feather52840sense.build.board=NRF52840_FEATHER_SENSE
148131
feather52840sense.build.core=nRF5
149132
feather52840sense.build.variant=feather_nrf52840_sense
150-
feather52840sense.build.usb_manufacturer="Adafruit LLC"
133+
feather52840sense.build.usb_manufacturer="Adafruit"
151134
feather52840sense.build.usb_product="Feather nRF52840 Sense"
152135
feather52840sense.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
153136
feather52840sense.build.ldscript=nrf52840_s140_v6.ld
154137
feather52840sense.build.vid=0x239A
155138
feather52840sense.build.pid=0x8087
156139

157-
# SofDevice Menu
140+
# SoftDevice Menu
158141
feather52840sense.menu.softdevice.s140v6=S140 6.1.1
159142
feather52840sense.menu.softdevice.s140v6.build.sd_name=s140
160143
feather52840sense.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -171,13 +154,12 @@ feather52840sense.menu.debug.l3=Level 3 (Segger SystemView)
171154
feather52840sense.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
172155
feather52840sense.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
173156

174-
175-
# ---------------------------------------------
176-
# Bluefruit ItsyBitsy nRF52840 Express
177-
# ---------------------------------------------
157+
# -----------------------------------
158+
# Adafruit ItsyBitsy nRF52840 Express
159+
# -----------------------------------
178160
itsybitsy52840.name=Adafruit ItsyBitsy nRF52840 Express
179161

180-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
162+
# VID/PID for Bootloader, Arduino & CircuitPython
181163
itsybitsy52840.vid.0=0x239A
182164
itsybitsy52840.pid.0=0x8051
183165
itsybitsy52840.vid.1=0x239A
@@ -199,18 +181,18 @@ itsybitsy52840.upload.maximum_data_size=237568
199181
# Build
200182
itsybitsy52840.build.mcu=cortex-m4
201183
itsybitsy52840.build.f_cpu=64000000
202-
itsybitsy52840.build.board=NRF52840_ITSYBITSY
184+
itsybitsy52840.build.board=NRF52840_ITSYBITSY -DARDUINO_NRF52_ITSYBITSY
203185
itsybitsy52840.build.core=nRF5
204186
itsybitsy52840.build.variant=itsybitsy_nrf52840_express
205-
itsybitsy52840.build.usb_manufacturer="Adafruit LLC"
187+
itsybitsy52840.build.usb_manufacturer="Adafruit"
206188
itsybitsy52840.build.usb_product="ItsyBitsy nRF52840 Express"
207-
itsybitsy52840.build.extra_flags=-DNRF52840_XXAA -DARDUINO_NRF52_ITSYBITSY {build.flags.usb}
189+
itsybitsy52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
208190
itsybitsy52840.build.ldscript=nrf52840_s140_v6.ld
209191
itsybitsy52840.build.vid=0x239A
210192
itsybitsy52840.build.pid=0x8051
211193

212-
# SofDevice Menu
213-
itsybitsy52840.menu.softdevice.s140v6=0.2.11 SoftDevice s140 6.1.1
194+
# SoftDevice Menu
195+
itsybitsy52840.menu.softdevice.s140v6=S140 6.1.1
214196
itsybitsy52840.menu.softdevice.s140v6.build.sd_name=s140
215197
itsybitsy52840.menu.softdevice.s140v6.build.sd_version=6.1.1
216198
itsybitsy52840.menu.softdevice.s140v6.build.sd_fwid=0x00B6
@@ -226,20 +208,18 @@ itsybitsy52840.menu.debug.l3=Level 3 (Segger SystemView)
226208
itsybitsy52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
227209
itsybitsy52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
228210

229-
# ---------------------------------------------
230-
# Bluefruit Circuit Playground nRF52840 Express
231-
# ---------------------------------------------
211+
# -----------------------------------
212+
# Adafruit Circuit Playground Bluefruit
213+
# -----------------------------------
232214
cplaynrf52840.name=Adafruit Circuit Playground Bluefruit
233215

234-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
216+
# VID/PID for Bootloader, Arduino & CircuitPython
235217
cplaynrf52840.vid.0=0x239A
236218
cplaynrf52840.pid.0=0x8045
237219
cplaynrf52840.vid.1=0x239A
238220
cplaynrf52840.pid.1=0x0045
239221
cplaynrf52840.vid.2=0x239A
240-
cplaynrf52840.pid.2=0x0046
241-
cplaynrf52840.vid.3=0x239A
242-
cplaynrf52840.pid.3=0x8046
222+
cplaynrf52840.pid.2=0x8046
243223

244224
# Upload
245225
cplaynrf52840.bootloader.tool=bootburn
@@ -256,14 +236,14 @@ cplaynrf52840.build.f_cpu=64000000
256236
cplaynrf52840.build.board=NRF52840_CIRCUITPLAY
257237
cplaynrf52840.build.core=nRF5
258238
cplaynrf52840.build.variant=circuitplayground_nrf52840
259-
cplaynrf52840.build.usb_manufacturer="Adafruit LLC"
239+
cplaynrf52840.build.usb_manufacturer="Adafruit"
260240
cplaynrf52840.build.usb_product="Circuit Playground Bluefruit"
261241
cplaynrf52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
262242
cplaynrf52840.build.ldscript=nrf52840_s140_v6.ld
263243
cplaynrf52840.build.vid=0x239A
264244
cplaynrf52840.build.pid=0x8045
265245

266-
# SofDevice Menu
246+
# SoftDevice Menu
267247
cplaynrf52840.menu.softdevice.s140v6=S140 6.1.1
268248
cplaynrf52840.menu.softdevice.s140v6.build.sd_name=s140
269249
cplaynrf52840.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -280,21 +260,18 @@ cplaynrf52840.menu.debug.l3=Level 3 (Segger SystemView)
280260
cplaynrf52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
281261
cplaynrf52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
282262

283-
284-
# ---------------------------------------------
285-
# Clue nRF52840
286-
# ---------------------------------------------
263+
# -----------------------------------
264+
# Adafruit CLUE
265+
# -----------------------------------
287266
cluenrf52840.name=Adafruit CLUE
288267

289-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
268+
# VID/PID for Bootloader, Arduino & CircuitPython
290269
cluenrf52840.vid.0=0x239A
291-
cluenrf52840.pid.0=0x8072
270+
cluenrf52840.pid.0=0x8071
292271
cluenrf52840.vid.1=0x239A
293-
cluenrf52840.pid.1=0x0072
272+
cluenrf52840.pid.1=0x0071
294273
cluenrf52840.vid.2=0x239A
295-
cluenrf52840.pid.2=0x0071
296-
cluenrf52840.vid.3=0x239A
297-
cluenrf52840.pid.3=0x8071
274+
cluenrf52840.pid.2=0x8072
298275

299276
# Upload
300277
cluenrf52840.bootloader.tool=bootburn
@@ -311,14 +288,14 @@ cluenrf52840.build.f_cpu=64000000
311288
cluenrf52840.build.board=NRF52840_CLUE
312289
cluenrf52840.build.core=nRF5
313290
cluenrf52840.build.variant=clue_nrf52840
314-
cluenrf52840.build.usb_manufacturer="Adafruit LLC"
291+
cluenrf52840.build.usb_manufacturer="Adafruit"
315292
cluenrf52840.build.usb_product="CLUE"
316293
cluenrf52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
317294
cluenrf52840.build.ldscript=nrf52840_s140_v6.ld
318295
cluenrf52840.build.vid=0x239A
319296
cluenrf52840.build.pid=0x8071
320297

321-
# SofDevice Menu
298+
# SoftDevice Menu
322299
cluenrf52840.menu.softdevice.s140v6=S140 6.1.1
323300
cluenrf52840.menu.softdevice.s140v6.build.sd_name=s140
324301
cluenrf52840.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -335,12 +312,12 @@ cluenrf52840.menu.debug.l3=Level 3 (Segger SystemView)
335312
cluenrf52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
336313
cluenrf52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
337314

338-
# ----------------------------------
339-
# Metro nRF52840 Express
340-
# ----------------------------------
315+
# -----------------------------------
316+
# Adafruit Metro nRF52840 Express
317+
# -----------------------------------
341318
metro52840.name=Adafruit Metro nRF52840 Express
342319

343-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
320+
# VID/PID for Bootloader, Arduino & CircuitPython
344321
metro52840.vid.0=0x239A
345322
metro52840.pid.0=0x803F
346323
metro52840.vid.1=0x239A
@@ -365,14 +342,14 @@ metro52840.build.f_cpu=64000000
365342
metro52840.build.board=NRF52840_METRO
366343
metro52840.build.core=nRF5
367344
metro52840.build.variant=metro_nrf52840_express
368-
metro52840.build.usb_manufacturer="Adafruit LLC"
345+
metro52840.build.usb_manufacturer="Adafruit"
369346
metro52840.build.usb_product="Metro nRF52840 Express"
370347
metro52840.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
371348
metro52840.build.ldscript=nrf52840_s140_v6.ld
372349
metro52840.build.vid=0x239A
373350
metro52840.build.pid=0x803F
374351

375-
# SofDevice Menu
352+
# SoftDevice Menu
376353
metro52840.menu.softdevice.s140v6=S140 6.1.1
377354
metro52840.menu.softdevice.s140v6.build.sd_name=s140
378355
metro52840.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -390,22 +367,25 @@ metro52840.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
390367
metro52840.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
391368

392369

393-
394-
395370
# -------------------------------------------------------
396-
#
371+
#
397372
# Boards that aren't made by Adafruit
398373
#
399374
# -------------------------------------------------------
400375

376+
# -----------------------------------
377+
# Nordic nRF52840 DK
378+
# -----------------------------------
379+
pca10056.name=Nordic nRF52840 DK
401380

402-
# ----------------------------------
403-
# Nordic nRF52840DK (PCA10056)
404-
# ----------------------------------
405-
pca10056.name=Nordic nRF52840DK (PCA10056)
406-
pca10056.bootloader.tool=bootburn
381+
# VID/PID for Bootloader, Arduino & CircuitPython
382+
pca10056.vid.0=0x239A
383+
pca10056.pid.0=0x8029
384+
pca10056.vid.1=0x239A
385+
pca10056.pid.1=0x0029
407386

408387
# Upload
388+
pca10056.bootloader.tool=bootburn
409389
pca10056.upload.tool=nrfutil
410390
pca10056.upload.protocol=nrfutil
411391
pca10056.upload.use_1200bps_touch=true
@@ -426,7 +406,7 @@ pca10056.build.ldscript=nrf52840_s140_v6.ld
426406
pca10056.build.vid=0x239A
427407
pca10056.build.pid=0x8029
428408

429-
# SofDevice Menu
409+
# SoftDevice Menu
430410
pca10056.menu.softdevice.s140v6=S140 6.1.1
431411
pca10056.menu.softdevice.s140v6.build.sd_name=s140
432412
pca10056.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -443,20 +423,16 @@ pca10056.menu.debug.l3=Level 3 (Segger SystemView)
443423
pca10056.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
444424
pca10056.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
445425

446-
# ----------------------------------
426+
# -----------------------------------
447427
# Particle Xenon
448-
# ----------------------------------
428+
# -----------------------------------
449429
particle_xenon.name=Particle Xenon
450430

451-
# VID/PID for bootloader with/without UF2, Arduino + Circuitpython App
431+
# VID/PID for Bootloader, Arduino & CircuitPython
452432
particle_xenon.vid.0=0x239A
453433
particle_xenon.pid.0=0x8029
454434
particle_xenon.vid.1=0x239A
455435
particle_xenon.pid.1=0x0029
456-
particle_xenon.vid.2=0x239A
457-
particle_xenon.pid.2=0x002A
458-
particle_xenon.vid.3=0x239A
459-
particle_xenon.pid.3=0x802A
460436

461437
# Upload
462438
particle_xenon.bootloader.tool=bootburn
@@ -473,14 +449,14 @@ particle_xenon.build.f_cpu=64000000
473449
particle_xenon.build.board=PARTICLE_XENON
474450
particle_xenon.build.core=nRF5
475451
particle_xenon.build.variant=particle_xenon
476-
particle_xenon.build.usb_manufacturer="Particle Industries"
477-
particle_xenon.build.usb_product="Particle Xenon"
452+
particle_xenon.build.usb_manufacturer="Particle"
453+
particle_xenon.build.usb_product="Xenon"
478454
particle_xenon.build.extra_flags=-DNRF52840_XXAA {build.flags.usb}
479455
particle_xenon.build.ldscript=nrf52840_s140_v6.ld
480456
particle_xenon.build.vid=0x239A
481457
particle_xenon.build.pid=0x8029
482458

483-
# SofDevice Menu
459+
# SoftDevice Menu
484460
particle_xenon.menu.softdevice.s140v6=S140 6.1.1
485461
particle_xenon.menu.softdevice.s140v6.build.sd_name=s140
486462
particle_xenon.menu.softdevice.s140v6.build.sd_version=6.1.1
@@ -497,12 +473,12 @@ particle_xenon.menu.debug.l3=Level 3 (Segger SystemView)
497473
particle_xenon.menu.debug.l3.build.debug_flags=-DCFG_DEBUG=3
498474
particle_xenon.menu.debug.l3.build.sysview_flags=-DCFG_SYSVIEW=1
499475

500-
# ----------------------------------
501-
# Raytac MDBT50Q - RX
502-
# ----------------------------------
503-
mdbt50qrx.name=Raytac MDBT50Q-RX Dongle
476+
# -----------------------------------
477+
# Raytac nRF52840 Dongle
478+
# -----------------------------------
479+
mdbt50qrx.name=Raytac nRF52840 Dongle
504480

505-
# VID/PID for bootloader, Arduino + Circuitpython App
481+
# VID/PID for Bootloader, Arduino & CircuitPython
506482
mdbt50qrx.vid.0=0x239A
507483
mdbt50qrx.pid.0=0x810B
508484
mdbt50qrx.vid.1=0x239A
@@ -532,7 +508,7 @@ mdbt50qrx.build.ldscript=nrf52840_s140_v6.ld
532508
mdbt50qrx.build.vid=0x239A
533509
mdbt50qrx.build.pid=0x810B
534510

535-
# SofDevice Menu
511+
# SoftDevice Menu
536512
mdbt50qrx.menu.softdevice.s140v6=S140 6.1.1
537513
mdbt50qrx.menu.softdevice.s140v6.build.sd_name=s140
538514
mdbt50qrx.menu.softdevice.s140v6.build.sd_version=6.1.1

0 commit comments

Comments
 (0)