Skip to content

Commit 980947c

Browse files
aethanielcmaglie
authored andcommitted
Adding breakpoints in handlers for DEBUG mode
1 parent 30d3861 commit 980947c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/arduino/startup.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ void Dummy_Handler(void);
3737
#if defined DEBUG
3838
void HardFault_Handler( void )
3939
{
40+
__BKPT( 3 ) ;
41+
4042
while ( 1 )
4143
{
4244
}
@@ -386,6 +388,10 @@ void Reset_Handler( void )
386388
*/
387389
void Dummy_Handler( void )
388390
{
391+
#if defined DEBUG
392+
__BKPT( 3 ) ;
393+
#endif // DEBUG
394+
389395
while ( 1 )
390396
{
391397
}

0 commit comments

Comments
 (0)