This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cycle count for a subroutine on Cortex M33

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.