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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

568件の閲覧回数
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 件の賞賛
1 返信

282件の閲覧回数
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 件の賞賛