Dear All,
I am running a led toggle sub-routine in infinite loop for Cortex M33 on MPS2+ FPGA Board, want to calculate cycle count in one iteration.
ToggleLED_Subroutine PROC
LDR R0, =0x40302000 ;FPGAIO Base Address(0x40302000) + LED_OFFSET(0) MOV R2,#3
Loop LDR R1, [R0] EOR R1,R1,R2 STR R1,[R0] B Loop ENDP
Please assist me to do this
Thanks a lot.
First hint: https://developer.arm.com/docs/103489824/latest/number-of-instructions-executed-by-the-processor-in-a-given-time-interval
2nd hint: developer.arm.com/.../dwt-programmers-model