Skip to content
GitLab
Menu
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
a19ed247
Commit
a19ed247
authored
Nov 01, 2012
by
Fabio Utzig
Browse files
Removed duplicated erase
parent
5642d4a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
lm4flash/lm4flash.c
View file @
a19ed247
...
...
@@ -450,7 +450,6 @@ static int write_firmware(libusb_device_handle *handle, FILE *f)
MEM_READ
(
DID0
,
&
val
);
MEM_READ
(
NVMSTAT
,
&
val
);
/* XXX: Repeated below, why? */
MEM_WRITE
(
FMA
,
0x0
);
MEM_READ
(
DHCSR
,
&
val
);
FLASH_ERASE
(
0
,
0
);
...
...
@@ -459,13 +458,6 @@ static int write_firmware(libusb_device_handle *handle, FILE *f)
MEM_WRITE
(
DHCSR
,
0x0
);
/* XXX: this is the same sequence of the above commands? */
MEM_WRITE
(
FMA
,
0x200
);
MEM_READ
(
DHCSR
,
&
val
);
FLASH_ERASE
(
0
,
0
);
SEND_COMMAND
(
"debug creset"
);
MEM_READ
(
DHCSR
,
&
val
);
MEM_READ
(
ROMCTL
,
&
val
);
MEM_WRITE
(
ROMCTL
,
0x0
);
MEM_READ
(
DHCSR
,
&
val
);
...
...
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