How to customize the system on a Raspberry Pi 3b+ with emlid?

I want to measure the nanosecond time of certain code blocks while the flight control is in flight, and I noticed that I can do this by read accessing the CNTPCT register of the ARMv7, but without configuring the kernel’s options, a user space program can’t access it directly. Therefore, I would like to implement it by customizing the system myself.

Hi Qiaosen Liu,

Welcome to the forum!

Since it’s a custom configuration, we can hardly suggest anything specific. Hopefully, someone from our users who’s experienced with it can advise something. I can also suggest looking at the RPi forum.