Skip to main content
Ypinh.1
Associate II
January 6, 2022
Solved

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

  • January 6, 2022
  • 2 replies
  • 765 views

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

This topic has been closed for replies.
Best answer by TDK

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).

2 replies

TDK
TDKBest answer
January 6, 2022

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
Ypinh.1Author
Associate II
January 6, 2022

Thanks a lot TDK !

it helped a lot