Thingy91:x nRF5340 does not boot with external flash

Hello,

I am trying to build a firmware for the nRF5340 on the Thingy91:x. The firmware should use the external flash for the secondary Image and is using the chained bootload setup with NSIB -> MCUboot -> App-Firmware.

Unfortunately my bootloader encounters a BUS FAULT:

D: stack 0x2005c1b0 for thread 0x200027e0: obj_size=20240 buf_start=0x2005c1b0  buf_size 20240 stack_ptr=0x200610c0
D: stack 0x2005c070 for thread 0x20002760: obj_size=320 buf_start=0x2005c070  buf_size 320 stack_ptr=0x2005c1b0
D: Event: LFCLK_STARTED
D: lfclk: Clock started
I: Function: nrfx_spim_init, error code: NRFX_SUCCESS.
D: tx_bufs 0x20060fc8 - rx_bufs 0 - 1
D: current_tx 0x20060fd8 (1), current_rx 0 (0), tx buf/len 0x20060fc0/1, rx buf/len 0/0
I: Function: spim_xfer, error code: NRFX_SUCCESS.
E: Timeout waiting for transfer complete
E: Failed to stop instance with base address: 0x5000c000.
I: Uninitialized.
D: Transaction finished with status -116
E: Failed to exit DPD (-116)
*** Booting My Application v2.1.0-dev-ae1ee57f3906 ***
*** Using nRF Connect SDK v3.0.0-3bfc46578e42 ***
*** Using Zephyr OS v4.0.99-a0e545cb437a ***
D: scheduler unlocked (0x200027e0:0)
I: Starting bootloader
�W: Failed reading sectors; BOOT_MAX_IMG_SECTORS=2048 - too small?
E: ***** BUS FAULT *****
E:   Precise data bus error
E:   BFAR Address: 0x10fd08
E: r0/a1:  0x0010fd00  r1/a2:  0x00111120  r2/a3:  0x2001ad30
E: r3/a4:  0x00000020 r12/ip:  0x0000ba01 r14/lr:  0x00009a3d
E:  xpsr:  0x89000000
E: Faulting instruction address (r15/pc): 0x00011544
E: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
E: Current thread: 0x200027e0 (unknown)
E: Halting system

A minimal example is attached (build for thingy91x/nrf5340/cpuapp).
Increasing the CONFIG_BOOT_MAX_IMG_SECTORS=2048 even further did not change anything.

Can you tell me how to debug further?

edit: UART logs (tx) are available on Pin22 of the thingy-debug-board in my minimal example

Best Regards
Johannes
8446.app.zip

Parents
  • Hello,

    can you share your app directory again? I can't access it.

  • Hi Hakon,

    I replaced the file. It apparently broke, when i inserted my edit.

  • rothmajs said:
    I replaced the file. It apparently broke, when i inserted my edit.

    Okay great, it works now.

    UART logs (tx) are available on Pin22 of the thingy-debug-board in my minimal example

    Can you elaborate on this?

  • Can you elaborate on this?

    It is the pin labeled 22 on this board, which comes provided with the Thingy:

     


    I configured MCUboot to print out it's log via uart on this pin (this is how I got the logs as seen in my original post).

  • rothmajs said:
    It is the pin labeled 22 on this board, which comes provided with the Thingy:

    Ahh, that makes sense. I don't have this right now, but I will try to find it somewhere (I just have the thingy itself atm).

  • I have found the solution. My nrf9151 on the thingy was running the serial-lte-modem firmware, which was also using the spi-bus and accessing the flash.
    After mass-erasing the nrf9151 the bootloader does not encounter the BUS_FAULT anymore.

    D: stack 0x2005c1b0 for thread 0x200027e0: obj_size=20240 buf_start=0x2005c1b0  buf_size 20240 stack_ptr=0x200610c0
    D: stack 0x2005c070 for thread 0x20002760: obj_size=320 buf_start=0x2005c070  buf_size 320 stack_ptr=0x2005c1b0
    D: Event: LFCLK_STARTED
    D: lfclk: Clock started
    I: Function: nrfx_spim_init, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060fc8 - rx_bufs 0 - 1
    D: current_tx 0x20060fd8 (1), current_rx 0 (0), tx buf/len 0x20060fc0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: thread 0x200027e0 for 33 ticks
    D: tx_bufs 0x20060fd0 - rx_bufs 0x20060fd8 - 1
    D: current_tx 0x20060fe0 (2), current_rx 0x20060fe0 (2), tx buf/len 0x20060fc8/1, rx buf/len 0x20060fc8/1
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20061017/1
    D: rx buf/len 0x20061017/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060fe8 - rx_bufs 0x20060ff0 - 1
    D: current_tx 0x20060ff8 (2), current_rx 0x20060ff8 (2), tx buf/len 0x20060fe0/1, rx buf/len 0x20060fe0/1
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20061030/3
    D: rx buf/len 0x20061030/3
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: GD25LE255E@0: 32 MiBy flash
    D: Erase 4096 with 20
    D: Erase 32768 with 52
    D: Erase 65536 with d8
    D: Page size 256 bytes
    D: Checking enter-4byte-addr 01
    D: tx_bufs 0x20060fe8 - rx_bufs 0 - 1
    D: current_tx 0x20060ff8 (1), current_rx 0 (0), tx buf/len 0x20060fe0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060fe8 - rx_bufs 0 - 1
    D: current_tx 0x20060ff8 (1), current_rx 0 (0), tx buf/len 0x20060fe0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: thread 0x200027e0 for 33 ticks
    D: tx_bufs 0x20060fc8 - rx_bufs 0 - 1
    D: current_tx 0x20060fd8 (1), current_rx 0 (0), tx buf/len 0x20060fc0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: thread 0x200027e0 for 33 ticks
    *** Booting My Application v2.1.0-dev-ae1ee57f3906 ***
    *** Using nRF Connect SDK v3.0.0-3bfc46578e42 ***
    *** Using Zephyr OS v4.0.99-a0e545cb437a ***
    D: scheduler unlocked (0x200027e0:0)
    I: Starting bootloader
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad30/32
    D: rx buf/len 0x2001ad30/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f68/16
    D: rx buf/len 0x20060f68/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f67/1
    D: rx buf/len 0x20060f67/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa2/1
    D: rx buf/len 0x20060fa2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa3/1
    D: rx buf/len 0x20060fa3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad30/32
    D: rx buf/len 0x2001ad30/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f78/16
    D: rx buf/len 0x20060f78/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f77/1
    D: rx buf/len 0x20060f77/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb2/1
    D: rx buf/len 0x20060fb2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb3/1
    D: rx buf/len 0x20060fb3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Image index: 0, Swap type: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad88/32
    D: rx buf/len 0x2001ad88/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f68/16
    D: rx buf/len 0x20060f68/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f67/1
    D: rx buf/len 0x20060f67/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa2/1
    D: rx buf/len 0x20060fa2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa3/1
    D: rx buf/len 0x20060fa3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad88/32
    D: rx buf/len 0x2001ad88/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f78/16
    D: rx buf/len 0x20060f78/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f77/1
    D: rx buf/len 0x20060f77/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb2/1
    D: rx buf/len 0x20060fb2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb3/1
    D: rx buf/len 0x20060fb3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Image index: 1, Swap type: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ade0/32
    D: rx buf/len 0x2001ade0/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f68/16
    D: rx buf/len 0x20060f68/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f67/1
    D: rx buf/len 0x20060f67/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa2/1
    D: rx buf/len 0x20060fa2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa3/1
    D: rx buf/len 0x20060fa3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ade0/32
    D: rx buf/len 0x2001ade0/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f78/16
    D: rx buf/len 0x20060f78/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f77/1
    D: rx buf/len 0x20060f77/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb2/1
    D: rx buf/len 0x20060fb2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb3/1
    D: rx buf/len 0x20060fb3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Image index: 2, Swap type: none
    I: Bootloader chainload address offset: 0x30000
    I: Image version: v0.0.0
    I: Jumping to the first image slot


    Now I will try to modify the serial-lte-modem firmware to work without the flash.

Reply
  • I have found the solution. My nrf9151 on the thingy was running the serial-lte-modem firmware, which was also using the spi-bus and accessing the flash.
    After mass-erasing the nrf9151 the bootloader does not encounter the BUS_FAULT anymore.

    D: stack 0x2005c1b0 for thread 0x200027e0: obj_size=20240 buf_start=0x2005c1b0  buf_size 20240 stack_ptr=0x200610c0
    D: stack 0x2005c070 for thread 0x20002760: obj_size=320 buf_start=0x2005c070  buf_size 320 stack_ptr=0x2005c1b0
    D: Event: LFCLK_STARTED
    D: lfclk: Clock started
    I: Function: nrfx_spim_init, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060fc8 - rx_bufs 0 - 1
    D: current_tx 0x20060fd8 (1), current_rx 0 (0), tx buf/len 0x20060fc0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: thread 0x200027e0 for 33 ticks
    D: tx_bufs 0x20060fd0 - rx_bufs 0x20060fd8 - 1
    D: current_tx 0x20060fe0 (2), current_rx 0x20060fe0 (2), tx buf/len 0x20060fc8/1, rx buf/len 0x20060fc8/1
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20061017/1
    D: rx buf/len 0x20061017/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060fe8 - rx_bufs 0x20060ff0 - 1
    D: current_tx 0x20060ff8 (2), current_rx 0x20060ff8 (2), tx buf/len 0x20060fe0/1, rx buf/len 0x20060fe0/1
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20061030/3
    D: rx buf/len 0x20061030/3
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: GD25LE255E@0: 32 MiBy flash
    D: Erase 4096 with 20
    D: Erase 32768 with 52
    D: Erase 65536 with d8
    D: Page size 256 bytes
    D: Checking enter-4byte-addr 01
    D: tx_bufs 0x20060fe8 - rx_bufs 0 - 1
    D: current_tx 0x20060ff8 (1), current_rx 0 (0), tx buf/len 0x20060fe0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060fe8 - rx_bufs 0 - 1
    D: current_tx 0x20060ff8 (1), current_rx 0 (0), tx buf/len 0x20060fe0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: thread 0x200027e0 for 33 ticks
    D: tx_bufs 0x20060fc8 - rx_bufs 0 - 1
    D: current_tx 0x20060fd8 (1), current_rx 0 (0), tx buf/len 0x20060fc0/1, rx buf/len 0/0
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: thread 0x200027e0 for 33 ticks
    *** Booting My Application v2.1.0-dev-ae1ee57f3906 ***
    *** Using nRF Connect SDK v3.0.0-3bfc46578e42 ***
    *** Using Zephyr OS v4.0.99-a0e545cb437a ***
    D: scheduler unlocked (0x200027e0:0)
    I: Starting bootloader
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad30/32
    D: rx buf/len 0x2001ad30/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f68/16
    D: rx buf/len 0x20060f68/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f67/1
    D: rx buf/len 0x20060f67/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa2/1
    D: rx buf/len 0x20060fa2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa3/1
    D: rx buf/len 0x20060fa3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad30/32
    D: rx buf/len 0x2001ad30/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f78/16
    D: rx buf/len 0x20060f78/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f77/1
    D: rx buf/len 0x20060f77/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb2/1
    D: rx buf/len 0x20060fb2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb3/1
    D: rx buf/len 0x20060fb3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Image index: 0, Swap type: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad88/32
    D: rx buf/len 0x2001ad88/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f68/16
    D: rx buf/len 0x20060f68/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f67/1
    D: rx buf/len 0x20060f67/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa2/1
    D: rx buf/len 0x20060fa2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa3/1
    D: rx buf/len 0x20060fa3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ad88/32
    D: rx buf/len 0x2001ad88/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f78/16
    D: rx buf/len 0x20060f78/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f77/1
    D: rx buf/len 0x20060f77/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb2/1
    D: rx buf/len 0x20060fb2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb3/1
    D: rx buf/len 0x20060fb3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Image index: 1, Swap type: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ade0/32
    D: rx buf/len 0x2001ade0/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Primary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f68/16
    D: rx buf/len 0x20060f68/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f67/1
    D: rx buf/len 0x20060f67/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa2/1
    D: rx buf/len 0x20060fa2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060ef8 - rx_bufs 0x20060f00 - 1
    D: current_tx 0x20060f08 (2), current_rx 0x20060f08 (2), tx buf/len 0x20060ef0/5, rx buf/len 0x20060ef0/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fa3/1
    D: rx buf/len 0x20060fa3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Secondary image: magic=unset, swap_type=0x1, copy_done=0x3, image_ok=0x3
    I: Boot source: none
    D: tx_bufs 0x20060f38 - rx_bufs 0x20060f40 - 1
    D: current_tx 0x20060f48 (2), current_rx 0x20060f48 (2), tx buf/len 0x20060f30/5, rx buf/len 0x20060f30/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x2001ade0/32
    D: rx buf/len 0x2001ade0/32
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f78/16
    D: rx buf/len 0x20060f78/16
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f18 - rx_bufs 0x20060f20 - 1
    D: current_tx 0x20060f28 (2), current_rx 0x20060f28 (2), tx buf/len 0x20060f10/5, rx buf/len 0x20060f10/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060f77/1
    D: rx buf/len 0x20060f77/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb2/1
    D: rx buf/len 0x20060fb2/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: tx_bufs 0x20060f08 - rx_bufs 0x20060f10 - 1
    D: current_tx 0x20060f18 (2), current_rx 0x20060f18 (2), tx buf/len 0x20060f00/5, rx buf/len 0x20060f00/5
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0x20060fb3/1
    D: rx buf/len 0x20060fb3/1
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    D: Event: NRF_SPIM_EVENT_END.
    D: tx buf/len 0/0
    D: rx buf/len 0/0
    D: Transaction finished with status 0
    I: Function: spim_xfer, error code: NRFX_SUCCESS.
    I: Image index: 2, Swap type: none
    I: Bootloader chainload address offset: 0x30000
    I: Image version: v0.0.0
    I: Jumping to the first image slot


    Now I will try to modify the serial-lte-modem firmware to work without the flash.

Children
No Data
Related