Skip to content

KernelInitialize crash on STM32F4 platform on HEAD revision #4532

Closed
@RobMeades

Description

@RobMeades

Description

  • Type: Bug
  • Priority: Blocker

STM32F4 target UBLOX_C030_U201 fails to boot. I updated to HEAD revision of mbed-os today (last time was ~4 weeks ago) and now it doesn't get past KernelInitialize. I have a feeling this may not be isolated to my platform, this issue may be the same thing and, indeed, it might be true of any STM32F4 platform. I mention this because I'm the only one who has this specific platform at the moment.

There was initially an issue with the new mbed-os boot pattern trying to write interrupt vectors to flash, which I have fixed, but I'm completely stumped by this subsequent issue.

Here are some people who may be interested or may be able to help:

@0xc0170 , @adustm , @bulislaw , @andreaslarssonublox

Target
UBLOX_C030_U201

Toolchain:
GCC_ARM

Toolchain version:
5.2.1

mbed-cli version:
1.1.1

mbed-os sha:
f31ea01

Expected behavior
Platform boots.

Actual behavior
The last thing the platform does before hitting the exception handler is to execute the assembler instruction svc 0 in the service call to KernelInitialize in rtx_kernel.c, see debugger screenshots below.

Before:
before

After:
after

Steps to reproduce
Build anything for the platform and try to run it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions