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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

555 Views
admin
Specialist II

Hello:
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

0 Kudos
1 Reply

269 Views
vfilip
NXP Employee
NXP Employee

Hello,

could you please provide more detail? Some demonstration project would be the best. Anyway you should be able to use Serial_LDD + Flash_LDD together in interrupt mode without any problem.

Best regards

Vojtech Filip

Processor Expert Support Team

0 Kudos