cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Bootloader exection time measurement

SBhon.1
Associate III

Hi,

 

I have written a custom bootlader which verifies CRC of the aplication and then jumps to the application. I wanted to know how can I check the total execution time it takes from start of the bootloader execution to the start of the application execution. Is there any method to do this?

Currently what I am doing is setting a GPIO pin in the bootloader and then resetting that GPIO at the start of the application code. Is the a correct approach or is there any other method should I try?

 

Thanks,

Sahil

1 REPLY 1

Yes, toggling a GPIO is a very common way to do this.

Another option is to use a Timer.

Possibly the DWT_CYCCNT:

https://developer.arm.com/documentation/ka001499/latest/