[softwarelist] Re: DPScan + ARMini -> crash?

  • From: "Ian Platt" <plattir@xxxxxxx>
  • To: "davidpilling@xxxxxxxxxxxxx" <davidpilling@xxxxxxxxxxxxx>
  • Date: Tue, 19 Jul 2011 18:09:22 +0000


On 19/7/2011, "David Pilling" <flist@xxxxxxxxxxxxxxxxxxx> wrote:

>Hi,
>
>In message <Iv2HtpCl6YIOFwAH@xxxxxxxxxxxxxxxxxxx>, David Pilling
><flist@xxxxxxxxxxxxxxxxxxx> writes
>>>> The crash occurs with the program counter pointing at the last
>>>> instruction below:
>
>>>> ADD     R13,R13,#4
>
>>>> LDR     R6,&0008FB24
>>>> LDR     R5,&00090490
>
>>>> CMP     R0,#0
>>>> BLT     &00090480
>
>Once again Chris has done a test for me. I replaced the above code LDR
>R6, LDR R5 with:
>
>        NOP                              ; <- changes start
>        NOP
>        LDR      v3,[pc, #L0000b4-.-8]
>        NOP
>        NOP
>        MOV      v2,#&84
>        ORR      v2,v2,#&2D00
>        ORR      v2,v2,#&D0000
>        NOP
>        NOP
>        NOP                               <- changes end
>
>The crash is the R5 load, which gets a constant address from memory.
>Instead of doing that I have put in the MOV, ORR, ORR sequence that
>loads the same value.
>
>The program now does not crash.
>
>Of course what I don't know is if adding the above words would have been
>enough to stop the error. In other words if memory alignment or offset
>values is the problem.
>
>If there are any users left reading this, the above is not a solution.
>
Oh yes! We're agog and thankful you're still on the case, David. :-)

Best wishes
Ian P.


To unsubscribe or subscribe goto: //www.freelists.org/list/davidpilling

Other related posts: