EEPROM programing and IRQ question

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

EEPROM programing and IRQ question

1,153 Views
javiervallori
Contributor III

Hi,

we have a product that do a EEPROM programing within the main App. The app runs on a LPC43S67, wich EEPROM operation access works via memory on the AHB bus. Beside the App uses CAN and SCT IRQs.

The user manual of the corresponding chip indicates the following:

"The erase/program cycle is triggered by
writing 0x6 to the CMD register. The page that is programmed is determined by the
address of the last AHB transfer. Therefore it is advised to perform a page write with
the page address and to prevent AHB reads between page register writes and the
erase/program trigger."

My question is, is it recommended to disable the IRQs during the EEPROM programing operation to avoid  within the IRQ a AHB transfer and wrongly change the "last AHB transfer address"? Or the "last AHB transfer address" is just referred to EEPROM's address range?

Thank you.

Labels (2)
Tags (2)
0 Kudos
Reply
1 Reply

942 Views
Carlos_Mendoza
NXP Employee
NXP Employee

Hi Javier,

There is no need to disable the interrupts during the EEPROM Write/Erase. I would recommend you to use the periph_eeprom example that comes with LPCOpen as reference for your application:

LPCOpen Software for LPC43XX|NXP 


Hope it helps!

Best Regards,
Carlos Mendoza
Technical Support Engineer

0 Kudos
Reply