Memory mapping and its size, request for UM-B-011 document

⚠️
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//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
lis82
Offline
Last seen:1 year 8 months ago
加入:2018-03-02 19:54
Memory mapping and its size, request for UM-B-011 document

Hello,

I am trying to understand how many memory have the DA1458x chip, and its position in CM0 address space.

The datasheed describes retention RAM as 8kB separated by 4 banks (2+2+3+1)
Since datasheet describe only sizes but not positions in CM0 address map i review
the scatter file from SDK (sdk/common_project_files/scatterfiles/scatterfile_common.sct).

There i found interesting (but confusing) thing:
Retention ram area there - 12kB !!! (0x80000 - 0x83000)
and length described as `(length = 0x2898)` which greater than 8kB.

Please explain who are right scatterfile or datasheet.

Also i found reference to UM-B-011 which should enlighten these things,
but i dont able to find this document in downloads, so i also request this doc if possible.

Thanks

Device:
PM_Dialog
Offline
Last seen:2 days 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi lis82,

Hi lis82,

Regarding the DA14580 datasheet, the retention RAM, as you mentioned correctly, is 8KB (RetRAM=2KB, RetRAM2=3KB, RetRAM3=2KB, RetRAM4=1KB). The additional 4KB that you found in the scatterfiles, is part of System RAM, but when the device enters the extended sleep mode, the System RAM is not powered off and it is retained. That’s why in the scatterfile_common file this additional area is characterized as “Retention RAM”. Regarding the UM-B-011 document, it is not currently available in our support page, but it will be uploaded as soon as possible and I will let you know. Be aware that this documents is for SDK3, thas is a quite old version of the SDK and it is not supported any more. It is highly recommended to download our latest version of SDK (version5.0.4) for DA14580/1/2/3 family chip from our support page. You are able to find it in theSoftware&Toolstab, under theSoftware Development Kitsection.

Thanks, PM_Dialog

lis82
Offline
Last seen:1 year 8 months ago
加入:2018-03-02 19:54
Hello PM_Dialog,

Hello PM_Dialog,

thank you very much for explanation.
Retention RAM mapped as:
- RetRAM1 (2kB): 0x00080000 - 0x000807FF
- RetRAM2 (3kB): 0x00080800 - 0x000813FF
- RetRAM3 (2kB): 0x00081400 - 0x00081BFF
- RetRAM4 (1kB): 0x00081C00 - 0x00081FFF

Correct me if i'm wrong.

Also i want to clear situation with 4k System RAM,
according to datasheet there are 42k total of System RAM.
I think it separated into two contiguous blocks:
1.0x20000000 - 0x200097FF-- 38kB block,
2.0x00082000 - 0x00082FFF——4 kb块描述in you previous answer.
Thats correct?

And final question:
Is the OTP memory mapped to Cortex M0 address space ?

Thank you.

-----
edited 2018-09-11:
My attempt to place stack in0x00082000 - 0x00082FFFregion leads to immediate HardFault.

PM_Dialog
Offline
Last seen:2 days 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi lis82,

Hi lis82,

Yes, that’s correct. The OTP is mapped as 0x00040000 - 0x00047FFF. The UM-B-011 document will be uploaded as soon as possible and then you will be able to check it. I will let you know when it is available to download it. If you found any of the above answers useful please mark one of them as accepted.

Thanks, PM_Dialog

PM_Dialog
Offline
Last seen:2 days 2 hours ago
工作人员
加入:2018-02-08 11:03
Hi lis82,

Hi lis82,

The UM-B-011 document and the excel tool is back on-line in the documents tab of DA14580 under the Discontinued documents, SDK3 documents section.

Thanks, PM_Dialog