I am using the FRDM-MKL82Z Board and its accompanying SDK. One of the examples it comes with demonstrates the "lpuart interrupt" functionality where it runs through an ISR whenever data enters the UART buffer. I am trying to develop a project based on this, but using the "New Project Wizard," I am unable to do this successfully. I tried at first just copying and pasting the contents of the main() source file from the example into my main source file, but this does not work. It seems like every time I receive a byte, the mcu freezes up (goes into hardfault through debugger).
I would like to know how to set up a new project from scratch (with the New Project Wizard) and setup the lpuart interrupt functionality, perhaps by utilizing the config tools as well (to setup clocks and pins). Does anybody have experience with this or have any resources I can look to that will show how to do this?
Thank you for your interest in the NXP kinetis product, I would like to provide service for you.
After you create the new project, do you check the pinmux.c to configure the related pins?
Then you need to add the related drivers.
Do you have any build issues?
I think you also can compare with the SDK project, check which detail code you have lost.
When initialize the uart, any issues? Or just receive the UART have hardfault? If yes, please check your interrupt handler, do you register the handler or use the .s related UART handler as the function?
Please double check your project and compare it with the SDK working project.
If you still have questions about it, just kindly let me know.