From 7eff03927dcd3add3f7e1b08fb238589b05226d0 Mon Sep 17 00:00:00 2001 From: Dave Marples Date: Sun, 27 Oct 2024 23:18:17 +0000 Subject: [PATCH] Fix redundant access to DBGMCU for SAMD5 per issue #157 --- Support/gdbtrace.init | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Support/gdbtrace.init b/Support/gdbtrace.init index 00d5b728..b4aacac1 100644 --- a/Support/gdbtrace.init +++ b/Support/gdbtrace.init @@ -1550,15 +1550,6 @@ define enableSAMD5XTRACE set *(unsigned char *)(0x41008000+0x80*2+0x40+24) = (($drive) << 6) | 1 end - # Set number of bits in DBGMCU_CR - set *0xE0042004 &= ~(3<<6) - - if ($bits<3) - set *0xE0042004 |= ((($bits+1)<<6) | (1<<5)) - else - set *0xE0042004 |= ((3<<6) | (1<<5)) - end - # Enable Trace TRCENA (DCB DEMCR) set *($CDBBASE+0xC)=(1<<24)