Vybrid TWR-VF65GS10 Alignment fault exception for on-chip sysRAM execution (Cortex-A5 only mode)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Vybrid TWR-VF65GS10 Alignment fault exception for on-chip sysRAM execution (Cortex-A5 only mode)

Jump to solution
1,399 Views
zeeshanaslam
Contributor I

Hi,

I am running code from sysRAM using Cortex-A5 alone with MMU/caches disabled. I get alignment fault data abort when accessing (store instruction) sysRAM memory from strcat() that is not aligned on word boundary. I have following questions regarding  this issue:

1- Doesn't the processor support unaligned sysRAM memory access  even when I have A bit cleared in SCTLR register. Is there any cortex-A5 specific configured required?

2- Is sysRAM on this target un-cacheable. Moreover, can I enable MMU with translation table placed on sysRAM? Currently I am unable to enable MMU from sysRAM.

Solution that can allow hardware unaligned access for sysRAM is preferred rather than needing to change code or using compiler alignment flags. Or I will have to enable externa DDR and then MMU to get rid of these issue?

Thank you!

Best Regards,

Zeeshan Aslam

Labels (1)
Tags (2)
0 Kudos
1 Solution
819 Views
RossMcLuckie
NXP Employee
NXP Employee

Hi, this seems quite an old question, please let me know if you are still having problems. There should be no issues with unaligned access, you should be able to select whether the SRAM is cacheable or not.

For specifics on the cores go to -

http://infocenter.arm.com/help/index.jsp

Searching for "a5 mmu" or "a5 alignment" should provide you with links to the relevant information.

Ross

View solution in original post

0 Kudos
1 Reply
820 Views
RossMcLuckie
NXP Employee
NXP Employee

Hi, this seems quite an old question, please let me know if you are still having problems. There should be no issues with unaligned access, you should be able to select whether the SRAM is cacheable or not.

For specifics on the cores go to -

http://infocenter.arm.com/help/index.jsp

Searching for "a5 mmu" or "a5 alignment" should provide you with links to the relevant information.

Ross

0 Kudos