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

I cannot write the sp register in the monitor mode

I use a Cortex-A7 board and write start up code.

I try to use Security Extension.

I use `smc` instruction and make cpu mode monitor mode.

In the monitor handler, I tried to changed stack pointer value for calling other functions.

But after execute `ldr sp, =_stack_start`, sp value is 0x0 (Of course, _stack_start is not 0x0 and I check it in the assembler code).

Therefore, after `push` some registers and `pop` those registers, the data abort excetpions occurred!

How can I change the sp value?

Parents
  • I do not use OpenOCD with my CubieBoard2, as I'm just running Linux from a SD card on this one.

    Looking further into this, I'm not sure the LS1021A is supported in OpenOCD yet (eg. I do not think there's a driver for it).

    To see the currently supported boards, list the contents of /usr/local/share/openocd/scripts/board/

    To see the possible targets, list the contents of /usr/local/share/openocd/scripts/target/

    If you feel like writing a driver for it, let me know, and I'll point you in the right direction - but it may be something that requires a fair amount of work.

    Another way might be to try a differnt IDE. Which one are you using right now ?

Reply
  • I do not use OpenOCD with my CubieBoard2, as I'm just running Linux from a SD card on this one.

    Looking further into this, I'm not sure the LS1021A is supported in OpenOCD yet (eg. I do not think there's a driver for it).

    To see the currently supported boards, list the contents of /usr/local/share/openocd/scripts/board/

    To see the possible targets, list the contents of /usr/local/share/openocd/scripts/target/

    If you feel like writing a driver for it, let me know, and I'll point you in the right direction - but it may be something that requires a fair amount of work.

    Another way might be to try a differnt IDE. Which one are you using right now ?

Children