This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16277 ) Change subject: debug code to use the DWT unit ...................................................................... debug code to use the DWT unit Change-Id: Ide6e34425e77425b260139ac1b4c528953a994f4 --- M sysmoOCTSIM/main.c 1 file changed, 23 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified laforge: Looks good to me, approved diff --git a/sysmoOCTSIM/main.c b/sysmoOCTSIM/main.c index 959e7eb..a1b84b7 100644 --- a/sysmoOCTSIM/main.c +++ b/sysmoOCTSIM/main.c @@ -442,6 +442,29 @@ char sernr_buf[16*2+1]; char rstcause_buf[RSTCAUSE_STR_SIZE]; +#if 0 +CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk ; //| /* tracing*/ +////CoreDebug_DEMCR_MON_EN_Msk; /* mon interupt catcher */ + + +DWT->COMP0 = 0x40003028; /* sercom 0 data */ +//DWT->COMP0 = 0x40003428; /* sercom 1 data */ +DWT->MASK0 = 0; /* 0 */ +DWT->FUNCTION0 = 0; /* has to be 0 for linked address */ + +DWT->COMP1 = 0xa5; /* value */ +DWT->MASK1 = 0; /* match all bits */ +DWT->FUNCTION1 = (0b10 << DWT_FUNCTION_DATAVSIZE_Pos) | /* DATAVSIZE 10 - dword */ +#if 1 +(0 << DWT_FUNCTION_DATAVADDR0_Pos) | /* Data Match linked addr pointer in COMP0 */ +#else +(1 << DWT_FUNCTION_DATAVADDR0_Pos) | /* Data Match on any addr -> own number */ +#endif +(1 << DWT_FUNCTION_DATAVMATCH_Pos) | /* DATAVMATCH Enable data comparation */ +(0b0111 << DWT_FUNCTION_FUNCTION_Pos); /* generate a watchpoint event on rw */ + +#endif + atmel_start_init(); get_chip_unique_serial_str(sernr_buf, sizeof(sernr_buf)); get_rstcause_str(rstcause_buf); -- To view, visit https://gerrit.osmocom.org/c/osmo-ccid-firmware/+/16277 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ccid-firmware Gerrit-Branch: master Gerrit-Change-Id: Ide6e34425e77425b260139ac1b4c528953a994f4 Gerrit-Change-Number: 16277 Gerrit-PatchSet: 4 Gerrit-Owner: Hoernchen <ewild at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: laforge <laforge at osmocom.org> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191128/1b3cbbc3/attachment.htm>