Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
fwatch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
fwatch
Commits
165dac5f
Commit
165dac5f
authored
Sep 30, 2014
by
Theodor-Adrian Stana
Committed by
Projects
Sep 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bootloader: Removed a potential debug lock.
parent
76ec61ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
26 deletions
+1
-26
main.c
sw/bootloader-an0042/main.c
+1
-26
No files found.
sw/bootloader-an0042/main.c
View file @
165dac5f
...
...
@@ -297,32 +297,7 @@ static void commandlineLoop( void )
/* Debug lock */
case
'l'
:
#if defined( BL_DEBUG )
/* We check if there is a debug session active in DHCSR. If there is we
* abort the locking. This is because we wish to make sure that the debug
* lock functionality works without a debugger attatched. */
if
((
CoreDebug
->
DHCSR
&
CoreDebug_DHCSR_C_DEBUGEN_Msk
)
!=
0x0
)
{
USB_PUTS
(
"
\r\n\r\n
**** WARNING: DEBUG SESSION ACTIVE. NOT LOCKING! ****
\r\n\r\n
"
);
BOOTLDIO_printString
(
"Debug active.
\r\n
"
);
}
else
{
USB_PUTS
(
"Starting debug lock sequence.
\r\n
"
);
#endif
FLASH_writeWord
(
DEBUG_LOCK_WORD
,
0x0
);
if
(
*
(
volatile
uint32_t
*
)
DEBUG_LOCK_WORD
==
0x0
)
{
BOOTLDIO_printString
(
okString
);
}
else
{
BOOTLDIO_printString
(
failString
);
}
#if defined( BL_DEBUG )
USB_PRINTF
(
"Debug lock word: 0x%x
\r\n
"
,
*
((
uint32_t
*
)
DEBUG_LOCK_WORD
)
);
}
#endif
BOOTLDIO_printString
(
"Debug lock not supported
\r\n
"
);
break
;
/* Verify content by calculating CRC of entire flash */
...
...
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