Keil Logo

MCB2300: Problems with Battery Backup RAM


Information in this article applies to:

  • MCB2300 Evaluation Boards

QUESTION

I have written a program that writes into the Battery RAM. When I am using char or short variables the program doesn't work.

Also, when I change values in the Memory Window of the µVision Debugger, writing to the memory window overwrites 4 subsequent bytes.

What can be wrong?

ANSWER

The battery backup RAM in the LPC2300 and LPC2400 devices supports only 32-bit write operations. Therefore it is impossible to write to a char or short variable in this memory area.

That is also what causes the overwrite effects in the µVision Memory Window. The Memory Window works properly when you switch to long value output format.

MORE INFORMATION

Last Reviewed: Tuesday, January 12, 2021


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.