AnsweredAssumed Answered

Disable UART Rx Interrupt before Erase\Write Flash for PE App on KL15

Question asked by klmark on Jan 10, 2014
Latest reply on Jan 17, 2014 by Vojtech Filip

The application i'm writing is built with the processor expert Serial_LDD module.
My problem could be solved by disabling the Serial UART interrupt service and using polling mode. However i thought it would be nice to use the rx interrupt with events.


Assuming a message could come in from the PC while erasing\writing to flash i have a couple of questions.

1) Do i have to disable the UART Rx interrupt before Erasing\Writing to Flash to avoid rx interrupt firing during flash operation?


2) If yes to question 1. Is the best way to do this using the following macros generated by PE: UART0_PDD_EnableInterrupt\UART0_PDD_DisableInterrupt?
    I found the UART0_PDD_EnableInterrupt macro at the bottom of the Serial_Init function that was generated by PE.


3) If yes to question 2. If a message did come in while erasing\writing flash would it be lost or is there a way to capture the complete message?


Thanks in advance