I'm starting to work with the K22F but I do not know how to generate a HAL Bare metal where or how can I start?
There is the MCUXpresso SDK available on Welcome | MCUXpresso SDK Builder for this.
I hope this helps,
Erich