Hi all,
I am getting to know the TF-M, yet I do not understand the following comment and code where ROM (Read Only) is mentioned and its address used to store Code Data (flash_layout.h)!! Can someone help me understand this better? Thanks
BR
Michael
/* Use flash memory to store Code data */ #define S_ROM_ALIAS_BASE (0x10000000) #define NS_ROM_ALIAS_BASE (0x00000000)
Hi Michael,
If I understand your question correctly you are confused about ROM and Flash memory. Flash is treated as RO memory and the address represents where Flash is mapped in a device address space. Does this answer your question?
Hope that helps, Anton
From: Michael Khoyilar via TF-M tf-m@lists.trustedfirmware.org Sent: Monday, November 4, 2024 11:52 PM To: tf-m@lists.trustedfirmware.org Subject: [TF-M] Use of ROM address - flash_layout.h
Hi all,
I am getting to know the TF-M, yet I do not understand the following comment and code where ROM (Read Only) is mentioned and its address used to store Code Data (flash_layout.h)!! Can someone help me understand this better? Thanks
BR
Michael
/* Use flash memory to store Code data */ #define S_ROM_ALIAS_BASE (0x10000000) #define NS_ROM_ALIAS_BASE (0x00000000)
I just wanted to add on top of Anton's reply that this is probably a bad naming that was chosen at the beginning for those macros and that stuck with: despite being defined as "ROM", the expectation is for it to mark a memory area which should be treated as read only for code, not an actual physical ROM.
Thanks, Antonio
________________________________ From: Anton Komlev via TF-M tf-m@lists.trustedfirmware.org Sent: Tuesday, November 5, 2024 08:41 To: Michael Khoyilar mkhoyilar@innophaseiot.com; tf-m@lists.trustedfirmware.org tf-m@lists.trustedfirmware.org Subject: [TF-M] Re: Use of ROM address - flash_layout.h
Hi Michael,
If I understand your question correctly you are confused about ROM and Flash memory. Flash is treated as RO memory and the address represents where Flash is mapped in a device address space. Does this answer your question?
Hope that helps,
Anton
From: Michael Khoyilar via TF-M tf-m@lists.trustedfirmware.org Sent: Monday, November 4, 2024 11:52 PM To: tf-m@lists.trustedfirmware.org Subject: [TF-M] Use of ROM address - flash_layout.h
Hi all,
I am getting to know the TF-M, yet I do not understand the following comment and code where ROM (Read Only) is mentioned and its address used to store Code Data (flash_layout.h)!! Can someone help me understand this better? Thanks
BR
Michael
/* Use flash memory to store Code data */
#define S_ROM_ALIAS_BASE (0x10000000)
#define NS_ROM_ALIAS_BASE (0x00000000)
Great guys. Now, I see the confusion point and resolved. Thanks.
MHK
From: Antonio De Angelis Antonio.DeAngelis@arm.com Sent: Tuesday, November 5, 2024 2:06 AM To: Michael Khoyilar mkhoyilar@innophaseiot.com; tf-m@lists.trustedfirmware.org; Anton Komlev Anton.Komlev@arm.com Subject: Re: Use of ROM address - flash_layout.h
You don't often get email from antonio.deangelis@arm.commailto:antonio.deangelis@arm.com. Learn why this is importanthttps://aka.ms/LearnAboutSenderIdentification CAUTION:This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe. If you suspect that this email may be a phishing attempt, please do not forward it to your colleagues. Instead, report it by forwarding this email to phishing@innophaseiot.commailto:phishing@innophaseiot.com. I just wanted to add on top of Anton's reply that this is probably a bad naming that was chosen at the beginning for those macros and that stuck with: despite being defined as "ROM", the expectation is for it to mark a memory area which should be treated as read only for code, not an actual physical ROM.
Thanks, Antonio
________________________________ From: Anton Komlev via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Tuesday, November 5, 2024 08:41 To: Michael Khoyilar <mkhoyilar@innophaseiot.commailto:mkhoyilar@innophaseiot.com>; tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Subject: [TF-M] Re: Use of ROM address - flash_layout.h
Hi Michael,
If I understand your question correctly you are confused about ROM and Flash memory. Flash is treated as RO memory and the address represents where Flash is mapped in a device address space. Does this answer your question?
Hope that helps,
Anton
From: Michael Khoyilar via TF-M <tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org> Sent: Monday, November 4, 2024 11:52 PM To: tf-m@lists.trustedfirmware.orgmailto:tf-m@lists.trustedfirmware.org Subject: [TF-M] Use of ROM address - flash_layout.h
Hi all,
I am getting to know the TF-M, yet I do not understand the following comment and code where ROM (Read Only) is mentioned and its address used to store Code Data (flash_layout.h)!! Can someone help me understand this better? Thanks
BR
Michael
/* Use flash memory to store Code data */
#define S_ROM_ALIAS_BASE (0x10000000)
#define NS_ROM_ALIAS_BASE (0x00000000)
tf-m@lists.trustedfirmware.org