You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
When i tried to use DWT registers to count execution cycles, the result was always 0. So i wonder whether the gnu-mcu-eclipse supports DWT register for cortex m4?
Steps to Reproduce
enable and initiate DWT
runs lines of instructions
get cycle from DWT_CYCCNT
Expected behaviour: [What you expected to happen]
any value greater than 0 Actual behaviour: [What actually happened]
0
Versions
QEMU v2.8.0-3
Eclipse Oxygen.2
Btw, if DWT is really not implemented yet, how should i count the cycle?
Thanks for any advice and help!
The text was updated successfully, but these errors were encountered:
DWT (Data Watchpoint and Trace Unit) is present on M3/M4 at 0xE0001000–0xE0001FFF.
The DWT->CYCCNT is at 0xE0001004.
DWT->CTRL is at 0xE0001000.
[0] | CYCCNTENA | Enable the CYCCNT counter. If not enabled, the counter does not count and no event is generated for PS sampling or CYCCNTENA. In normal use, the debugger must initialize the CYCCNT counter to 0.
I checked the current code, and there is no easy way to get the cycles count.
I'll leave this open and I'll revisit it after updating to the latest sources.
Description
When i tried to use DWT registers to count execution cycles, the result was always 0. So i wonder whether the gnu-mcu-eclipse supports DWT register for cortex m4?
Steps to Reproduce
Expected behaviour: [What you expected to happen]
any value greater than 0
Actual behaviour: [What actually happened]
0
Versions
Btw, if DWT is really not implemented yet, how should i count the cycle?
Thanks for any advice and help!
The text was updated successfully, but these errors were encountered: