This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Battery RAM not saving data

Having problem with Battery RAM area 0xE0084000 - 0xE00847FF. Have 32 data stored there, but it is lost when power is removed.
Vbat is connected and battery voltage is good. RTC retains date & time data just fine.

Made sure the Linker Scatter file does not have zero-init applied.

Not sure what I'm missing?

Any help would be appreciated.

Thanks,

Walt

Parents
  • Yes its a LPC2378 device.

    Sounds simple enough. I'm just stumped on this one. When processor is reset the memory vars are set to zero. Any thoughts are appreciated.

    Can you show me how you allocate your struct to this memory area?

    Thanks,

    My linker map looks as follows: kw_hr 0xe0084000 Data 4 batsram.o(.data) kw_sec 0xe0084004 Data 4 batsram.o(.data)

    Execution Region RW_IRAM4 (Base: 0xe0084000, Size: 0x00000008, Max: 0x000007ff, ABSOLUTE, UNINIT)

    Base Addr Size Type Attr Idx E Section Name Object

    0xe0084000 0x00000004 Data RW 708 .data batsram.o 0xe0084004 0x00000004 Data RW 709 .data batsram.o

Reply
  • Yes its a LPC2378 device.

    Sounds simple enough. I'm just stumped on this one. When processor is reset the memory vars are set to zero. Any thoughts are appreciated.

    Can you show me how you allocate your struct to this memory area?

    Thanks,

    My linker map looks as follows: kw_hr 0xe0084000 Data 4 batsram.o(.data) kw_sec 0xe0084004 Data 4 batsram.o(.data)

    Execution Region RW_IRAM4 (Base: 0xe0084000, Size: 0x00000008, Max: 0x000007ff, ABSOLUTE, UNINIT)

    Base Addr Size Type Attr Idx E Section Name Object

    0xe0084000 0x00000004 Data RW 708 .data batsram.o 0xe0084004 0x00000004 Data RW 709 .data batsram.o

Children