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?
Please download K22 sdk from https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fmcuxpresso.nxp.com
There are lots of demos in sdk. You can start your project from that. Those demos have IAR/KEIL/MCUXpresso/CMAKE version.
Unlike ST, Kinetis driver only has one layer.
Retrieving data ...