⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
yaksheng
Offline
Last seen: 9 months 4 days ago
Joined: 2021-01-27 01:18
Questions on SysRAM on DA14531

Hi there

I see there are three SysRAM onboard the DA14531 device. Are there SRAM or DRAM, and volatile or non-volatile?

Also, can the SysRAM be used to store user data? If so, how?

Thank you.

Warmest Regards
Richard

Device: 
PM_Dialog
Offline
Last seen: 2 days 10 hours ago
Staff
Joined: 2018-02-08 11:03
Hi yaksheng,

Hi yaksheng,

It is volatile SRAM and you can used it for storing data. The A14531 has three (3) RAM cells that can be retained. If in da1458x_config_advanced.h file, the CFG_CUSTOM_SCATTER_FILE flag is undefined, then the system knows which blocks to retain based on the default SDK scatter file. The RAM3 block is always retained, since it contains the ROM data. For example, if the application code can fit into RAM1, then RAM2 block will be closed.

uint8_t my_var ; // stored in the RAM. When the chips goes to sleep or reboots, the data will be lost.

uint8_t my_var_1 __SECTION_ZERO("retention_mem_area0"); // stored in the retention RAM. Keep the data during sleep.

uint8_t my_var_2 __attribute__((section("retention_mem_area_uninit"),  zero_init)); //Stored in the uninitialized section of the Retention-RAM.

Thanks, PM_Dialog

yaksheng
Offline
Last seen: 9 months 4 days ago
Joined: 2021-01-27 01:18
Thanks PM_Dialog!

Thanks PM_Dialog!