Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-pico
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-pico
Commits
19552151
Commit
19552151
authored
Apr 06, 2021
by
Earle F. Philhower, III
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Picoprobe USB PID
Thanks to @me-no-dev for pointing out that the Picoprobe does UART passthrough!
parent
af1d595e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
boards.txt
boards.txt
+3
-3
tools/makeboards.py
tools/makeboards.py
+7
-3
No files found.
boards.txt
View file @
19552151
...
...
@@ -104,7 +104,7 @@ rpipico.menu.dbglvl.NDEBUG=NDEBUG
rpipico.menu.dbglvl.NDEBUG.build.debug_level=-DNDEBUG
rpipicopicoprobe.name=Raspberry Pi Pico (Picoprobe)
rpipicopicoprobe.vid.0=0x2e8a
rpipicopicoprobe.pid.0=0x000
a
rpipicopicoprobe.pid.0=0x000
4
rpipicopicoprobe.build.usbpid=-DSERIALUSB_PID=0x000a
rpipicopicoprobe.build.board=RASPBERRY_PI_PICO
rpipicopicoprobe.build.mcu=cortex-m0plus
...
...
@@ -336,7 +336,7 @@ adafruitfeather.menu.dbglvl.NDEBUG=NDEBUG
adafruitfeather.menu.dbglvl.NDEBUG.build.debug_level=-DNDEBUG
adafruitfeatherpicoprobe.name=Adafruit Feather RP2040 (Picoprobe)
adafruitfeatherpicoprobe.vid.0=0x2e8a
adafruitfeatherpicoprobe.pid.0=0x000
b
adafruitfeatherpicoprobe.pid.0=0x000
4
adafruitfeatherpicoprobe.build.usbpid=-DSERIALUSB_PID=0x000b
adafruitfeatherpicoprobe.build.board=ADAFRUIT_FEATHER_RP2040
adafruitfeatherpicoprobe.build.mcu=cortex-m0plus
...
...
@@ -596,7 +596,7 @@ generic.menu.boot2.boot2_w25x10cl_4_padded_checksum=W25X10CL QSPI /4
generic.menu.boot2.boot2_w25x10cl_4_padded_checksum.build.boot2=boot2_w25x10cl_4_padded_checksum
genericpicoprobe.name=Generic RP2040 (Picoprobe)
genericpicoprobe.vid.0=0x2e8a
genericpicoprobe.pid.0=0x
f00a
genericpicoprobe.pid.0=0x
0004
genericpicoprobe.build.usbpid=-DSERIALUSB_PID=0xf00a
genericpicoprobe.build.board=GENERIC_RP2040
genericpicoprobe.build.mcu=cortex-m0plus
...
...
tools/makeboards.py
View file @
19552151
...
...
@@ -44,10 +44,10 @@ def BuildBoot(name):
print
(
"%s.menu.boot2.%s=%s"
%
(
name
,
l
[
1
],
l
[
0
]))
print
(
"%s.menu.boot2.%s.build.boot2=%s"
%
(
name
,
l
[
1
],
l
[
1
]))
def
BuildHeader
(
name
,
prettyname
,
pid
,
boarddefine
,
variant
,
uploadtool
,
flashsize
,
boot2
):
def
BuildHeader
(
name
,
prettyname
,
pid
touse
,
pid
,
boarddefine
,
variant
,
uploadtool
,
flashsize
,
boot2
):
print
(
"%s.name=%s"
%
(
name
,
prettyname
))
print
(
"%s.vid.0=0x2e8a"
%
(
name
))
print
(
"%s.pid.0=%s"
%
(
name
,
pid
))
print
(
"%s.pid.0=%s"
%
(
name
,
pid
touse
))
print
(
"%s.build.usbpid=-DSERIALUSB_PID=%s"
%
(
name
,
pid
))
print
(
"%s.build.board=%s"
%
(
name
,
boarddefine
))
print
(
"%s.build.mcu=cortex-m0plus"
%
(
name
))
...
...
@@ -82,7 +82,11 @@ def MakeBoard(name, prettyname, pid, boarddefine, flashsizemb, boot2):
fssizelist
=
[
0
,
64
*
1024
,
128
*
1024
,
256
*
1024
,
512
*
1024
]
for
i
in
range
(
1
,
flashsizemb
):
fssizelist
.
append
(
i
*
1024
*
1024
)
BuildHeader
(
n
,
p
,
pid
,
boarddefine
,
name
,
c
,
flashsizemb
*
1024
*
1024
,
boot2
)
if
a
==
"picoprobe"
:
pidtouse
=
'0x0004'
else
:
pidtouse
=
pid
BuildHeader
(
n
,
p
,
pidtouse
,
pid
,
boarddefine
,
name
,
c
,
flashsizemb
*
1024
*
1024
,
boot2
)
if
name
==
"generic"
:
BuildFlashMenu
(
n
,
2
*
1024
*
1024
,
[
0
,
1
*
1024
*
1024
])
BuildFlashMenu
(
n
,
4
*
1024
*
1024
,
[
0
,
2
*
1024
*
1024
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment