Bus Fault - Precise data bus error when jumping from mcuboot

I have a custom board and set mcuboot secondary in external flash. The tests that i made everything is working OK with the app update, but now i tested mcuboot update and i have an error. As the error is on mcuboot i activated log on it and this is the output, see image.

Following the report of similar errors i tried to use 'addr2line' to see if can get more info, but no success, no extra info.

Can you give me some guidelines how to debug this error?

  • Hi Sigurd,

    All of this is very strange, the error isn't constant.

    I made several tests and got different errors

    This was the first, the solution increase the main stack size.

    After many tests without hard fault log, the last one gave some info, see image below

    Used the addresses from r15 and r14 on 'addr2line' and used the image 's1_image' .elf where the addresses are, see image

    I'm using sdk1.9.1 and a custom board, to adapt the project to nrf9160_DK won't be easy, but i'll try.

    Even with this error it's possible to upgrade and downgrade the app, i made it a couple of times, modem firmeware is udated without a problem only mcuboot has problems updating.

  • ICM_UC said:

    After many tests without hard fault log, the last one gave some info, see image below

    1)It fails every time you try to update the MCUboot, correct?

    2) But it's only sometimes you get the log output?

    Try setting this in you app config, and see if you always get the error printed then:

    CONFIG_LOG=y
    # When enabled, non-secure logs are printed to UARTE0 when secure fault occurs
    CONFIG_SPM_NS_DEBUG_LOGS_DUMP=y
    CONFIG_SPM_SERVICE_NS_HANDLER_FROM_SPM_FAULT=y

Related