cancel
Showing results for 
Search instead for 
Did you mean: 

for the STM32l412 MCU - Is it possible to get LPUART interrupt while write & erase page on the internal NVM flash?

Ypinh.1
Associate III

when performed NVM operations (write on page and erase page),

i lost some recieved bytes in my LPUART Rx line.

  • when i uncomment the part of writing on the nvm, the lpuart works fine.

can any one please tell me if there is a way to use this modules together?

Thanks a lot,

Yoni

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

While erase operations are ongoing, access to the flash bank will block the cpu until the erase is finished.

If you want to run code while erasing flash pages, you'll need to move that code to RAM, or use separate banks (if available on your chip).

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2
TDK
Guru

While erase operations are ongoing, access to the flash bank will block the cpu until the erase is finished.

If you want to run code while erasing flash pages, you'll need to move that code to RAM, or use separate banks (if available on your chip).

If you feel a post has answered your question, please click "Accept as Solution".
Ypinh.1
Associate III

Thanks a lot TDK !

it helped a lot