What I am trying to do is that I want to program my board so that I can boot from an external flash using QSPI (part number: IS25LP128F.)
The board is configured to run QSPI, but when I use Segger Jtag to debug the code this is what I get in deassembly:
......... ...
00217398: lsls r0, r0, #14
0021739a: bpl.n 0x2173a4
0021739c: ldr r0, [r7, #0]
0021739e: tst.w r0, #2147483648 ; 0x80000000
002173a2: bpl.n 0x217396
002173a4: ldr r0, [r6, #0]
002173a6: lsls r0, r0, #27
002173a8: bmi.n 0x2173dc
002173aa: bl 0x21aa3c
002173ae: cbz r0, 0x2173dc
002173b0: ldr r0, [r4, #0]
002173b2: movw r2, #57054 ; 0xdede
002173b6: ldr r1, [r4, #4]
002173b8: adds r0, r0, r2
002173ba: str r0, [r4, #0]
002173bc: adc.w r1, r1, #0
002173c0: str r1, [r4, #4]
002173c2: bl 0x21a5a0
002173c6: ldr r0, [r4, #0]
002173c8: movw r2, #8482 ; 0x2122
002173cc: ldr r1, [r4, #4]
002173ce: movt r2, #65535 ; 0xffff
002173d2: adds r2, r0, r2
002173d4: str r2, [r4, #0]
002173d6: adc.w r0, r1, #4294967295
002173da: str r0, [r4, #4]
002173dc: bl 0x20d102
002173e0: cmp r0, #0
002173e2: beq.n 0x217396
002173e4: ldr r0, [r4, #0]
002173e6: movw r2, #57054 ; 0xdede
002173ea: ldr r1, [r4, #4]
002173ec: adds r2, r0, r2
002173ee: str r2, [r4, #0]
002173f0: adc.w r0, r1, #0
002173f4: str r0, [r4, #4]
002173f6: bl 0x21a5b8
002173fa: ldr r0, [r4, #0]
002173fc: movw r1, #8482 ; 0x2122
00217400: ldr r2, [r4, #4]
00217402: movt r1, #65535 ; 0xffff
00217406: adds r1, r0, r1
00217408: str r1, [r4, #0]
0021740a: adc.w r0, r2, #4294967295
0021740e: str r0, [r4, #4]
00217410: b.n 0x217396
00217412: stmdb sp!, {r3, r4, r5, r6, r7, r8, r9, lr}
00217416: movw r1, #32800 ; 0x8020
0021741a: movt r1, #16399 ; 0x400f
0021741e: ldr r6, [r1, #0]
00217420: str r6, [sp, #0]
00217422: mov.w r9, #0
......... ...