2025-01-13 11:10 PM
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
2025-01-14 03:08 AM
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/