Skip to content

__libc_init_array fails on STm32H750XBH6 #2551

Closed

Description

@thisdp

Arduino IDE 2.3.3
STM32H750XBH6
STM32 MCU Based Boards 2.8.1
An empty sketch is compiled with only setup and loop.
in startup_stm32h750xbhx.s
running "bl __libc_init_array" causes WWDG_Handler before entering "main".

Program compiled using CubeIDE works fine. "main" can be called.
Program compiled using Arduino but part number in VBTx works fine on STM32H750XBH6. "main" can be called.

Activity

  1. fpistm commented on Nov 5, 2024

    @fpistm
    Member

    Hi @thisdp
    Thanks for the issue.
    I think it is linked to the linker script. If you used the one from the VBTx it will works.
    I have to analyze deeply to understand the root cause.

  2. added
    bug 🐛
    on Nov 5, 2024
  3. added this to the 2.9.0 milestone on Nov 5, 2024
  4. thisdp commented on Nov 5, 2024

    @thisdp
    Author

    Hi @thisdp Thanks for the issue. I think it is linked to the linker script. If you used the one from the VBTx it will works. I have to analyze deeply to understand the root cause.

    VBTx IBKx can work, I haven't tested others, but I am sure XBHx can not work.

  5. fpistm commented on Nov 5, 2024

    @fpistm
    Member

    This is what I said if you used the linker script of the VB with the HB it will work.

  6. thisdp commented on Nov 5, 2024

    @thisdp
    Author

    This is what I said if you used the linker script of the VB with the HB it will work.

    I mean that I am not sure if other chips/part numbers have the same problem, since I found XBHx is broken.

  7. added a commit that references this issue on Nov 5, 2024
    350a546
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions