zephyr: [Zephyr v1.14.0] stm32: MCUboot bootloader results in Hardware exception

Describe the bug I tried to support MCUboot bootloader in some STM32 platform SOCs but with no success. After building the bootloader from the mcuboot repository, when flashed it results in a Hardware Exception.

I’ve tried with the following Zephyr revisions:

  • tags/v1.14.0
  • v1.14-branch (6950a38cb3)
  • HEAD

and mcuboot at master (fc07eab)

The target socs/boards I’ve tried are:

  • nucleo_f401re (there is already DTS suppport)
  • nucleo_l496zg (I’ve added DTS support)
  • custom board with STM32L496RE

To Reproduce Steps to reproduce the behavior:

  1. cd mcuboot/boot/zephyr
  2. mkdir build; cd build
  3. cmake -GNinja -DBOARD=nucleo_f4014re ..
  4. ninja
  5. ninja flash
  6. See the error

Expected behavior See the bootloader boot.

Impact Blockage

Screenshots or console output

  • Zephyr@v1.14.0
***** USAGE FAULT *****
  Illegal load of EXC_RETURN into PC
***** Hardware exception *****
Current thread ID = 0x00000000
Faulting instruction address = 0x8008060
  • Zephyr@v1.14-branch
***** USAGE FAULT *****
  Illegal load of EXC_RETURN into PC
***** Hardware exception *****
Current thread ID = 0x00000000
Faulting instruction address = 0x8008058
  • Zephyr@HEAD Everything work as expected

Environment (please complete the following information):

  • OS: GNU/Linux
  • Toolchain: Zephyr SDK
  • Commit SHA: various

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

@gon1332 , can you provide MCUBoot SHA1?

You need to enable multi thread support for the board in MCUboot.

@jli157, is that something that has changed from 1.14 and current master?