Not applicable
Apr 21, 2016
12:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2016
12:22 AM
Coming from XMC4500 I was a bit surprised that I couldn't turn of the Unaligned Access Trap which I had previously done there.
Is there any way to avoid getting HardFault for simple things such as access to a misaligned memory address? Or does everything need to be 4 byte aligned? That would gobble up my flash in no time.
2 Replies
Apr 21, 2016
02:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2016
02:42 AM
Hello,
From the ARM infocenter, it is stated:
Link:
(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0497a/BABFAIGG.html)
Therefore, I don't think it is possible to remove the unaligned trap.
Regards,
Min Wei
From the ARM infocenter, it is stated:
There is no support for unaligned accesses on the Cortex-M0 processor. Any attempt to perform an unaligned memory access operation results in a HardFault exception.
Link:
(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0497a/BABFAIGG.html)
Therefore, I don't think it is possible to remove the unaligned trap.
Regards,
Min Wei
Not applicable
Apr 21, 2016
05:34 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Apr 21, 2016
05:34 AM
chismo wrote:
Hello,
From the ARM infocenter, it is stated:
Link:
(http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0497a/BABFAIGG.html)
Therefore, I don't think it is possible to remove the unaligned trap.
Regards,
Min Wei
Thank you Min Wei! Then at least I know.