Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ti-connected-launchpad
lm4tools_public
Commits
8b6dc672
Commit
8b6dc672
authored
Oct 20, 2012
by
Peter Stuge
Browse files
lm4flash: Print error message with USB IDs if no device is found
parent
862792cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
lm4flash.c
View file @
8b6dc672
...
...
@@ -30,6 +30,9 @@
//#define DEBUG 1
#define ICDI_VID 0x1cbe
#define ICDI_PID 0x00fd
// Flash Patch and Breakpoint: see ARM Debug Interface V5 Architecture Specification
static
const
uint32_t
FPB
=
0xe0002000
;
...
...
@@ -407,9 +410,10 @@ int main(int argc, char *argv[])
}
/* FIXME: should not be using this function call! */
handle
=
libusb_open_device_with_vid_pid
(
ctx
,
0x1cbe
,
0x00fd
);
handle
=
libusb_open_device_with_vid_pid
(
ctx
,
ICDI_VID
,
ICDI_PID
);
if
(
!
handle
)
{
printf
(
"Device not found
\n
"
);
fprintf
(
stderr
,
"No ICDI device with USB VID:PID %04x:%04x found!
\n
"
,
ICDI_VID
,
ICDI_PID
);
goto
done
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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