This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Translation error in armv8 a72

Hello experts,

I am trying to enable MMU on LS1046ARDB Board and have generated MMU translation table . I am able to write entries into translation table  . I am running my code from flash memory and translation table base address is in DRAM . As soon as MMU bit is enabled in sctlr register I am getting Translation at level 1 error. Please can anyone help me where/what can be the mistake?

Any help would be appreciated.

Below is the assembly code .

Thanks.

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
* This file was automatically generated using arm64-pgtable-tool.
* See: https://github.com/ashwio/arm64-pgtable-tool
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
* This code programs the following translation table structure:
*
* level 1 table @ 0x80000000
* [# 1]---------------------------\
* level 2 table @ 0x80001000
* [# 0]---------------------------\
* level 3 table @ 0x80002000
* [# 256] 0x000040100000-0x000040100fff, Code, CODE
* [# 257] 0x000040101000-0x000040101fff, Code, CODE
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

0