Skip to content

__libc_init_array fails on STm32H750XBH6 #2551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
thisdp opened this issue Nov 5, 2024 · 4 comments · Fixed by #2552
Closed

__libc_init_array fails on STm32H750XBH6 #2551

thisdp opened this issue Nov 5, 2024 · 4 comments · Fixed by #2552
Labels
bug 🐛 Something isn't working
Milestone

Comments

@thisdp
Copy link

thisdp commented Nov 5, 2024

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.

@fpistm
Copy link
Member

fpistm commented Nov 5, 2024

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.

@fpistm fpistm added the bug 🐛 Something isn't working label Nov 5, 2024
@fpistm fpistm added this to the 2.9.0 milestone Nov 5, 2024
@thisdp
Copy link
Author

thisdp commented Nov 5, 2024

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.

@fpistm
Copy link
Member

fpistm commented Nov 5, 2024

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

@thisdp
Copy link
Author

thisdp commented Nov 5, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
Development

Successfully merging a pull request may close this issue.

2 participants