I am trying to implement a simple LPUART0 and have tested the FRDM-KL27Z driver examples. The example work great and I can simply send data and receive it by the openSDA USB port. However when I manually try to use kinetis with the 1.2.0 sdk I get some strange error.
1. Either when I try to send data by using LPUART_HAL_SENDDATA (...) i go directly to the hardfault handler.
2. or The MCG_mode is not selected and it is looping forever.
I am upploading pictures that will show my configurations. I find it very strange since the examples work but my code generation by using KDS does not work properly.
Am I missing somehting ??
I have uploaded some pictures.