Hey guys, i'm trying to use uart peripheral with mke02z32vlc4, with processor isn't hard but for my application i need optimize the size code because i have many other modules.
The solution was try make all project with manual register write, but, when i put some value in any config register peripheral the program enter in a loop to irq default handler, in the debug is something like:
-> write register ----> defalut irq handler ---|
^--------------------------------------------------|
This occurs with other peripherals too, SPI, ADC, ... the line that crash the program is:
UART1_SC2 = 0x0C; //write config to enable uart
And the entire code is:
I think that is a problem with the interrupt configs in kinetis, but i don't have many experience with this, so please, if anybody can help me I will appreciate it.