https://github.com/SoloKeysSec/solo/blob/master/targets/efm3...
Like what others mention, it really depends on documentation from the vendor for the chipset you're working with. I mainly copied and pasted code from a form post by the vendor.
And of course link to the security key product :)
https://solokeys.com/