Skip to content

Commit

Permalink
Fix redundant access to DBGMCU for SAMD5 per issue #157
Browse files Browse the repository at this point in the history
  • Loading branch information
mubes committed Oct 27, 2024
1 parent dfb021d commit 7eff039
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions Support/gdbtrace.init
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 7eff039

Please sign in to comment.