Skip to content
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

STM32H5 internal compiler error #2138

Closed
dojyorin opened this issue Sep 23, 2023 · 4 comments
Closed

STM32H5 internal compiler error #2138

dojyorin opened this issue Sep 23, 2023 · 4 comments

Comments

@dojyorin
Copy link
Contributor

dojyorin commented Sep 23, 2023

Details

Compilation fails with "internal compiler error: Segmentation fault" during compilation.

Repeatability

  • OS: Windows 11 x64
  • Arduino Version: Arduino-CLI 0.34.2
  • Use from: VSCode Arduino Extension
  • STM32duino Version: 2.6.0
  • Target Board: Nucleo-H563ZI

The problem occurs even if I compile an blank project.

void setup(){}
void loop(){}

Cause

After some research I don't know why, replaced DMA_CLBAR_LBA to 0 in below, compilation was successful.

if (temp != ((uint32_t)ref & DMA_CLBAR_LBA))

if (temp != ((uint32_t)ref & 0))

The current value of DMA_CLBAR_LBA is 0xFFFF0000.

Log

ErrorLog
[Starting] Verifying sketch 'arduino\sketches\template\template.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
during GIMPLE pass: evrp
C:\Users\*\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.6.0\libraries\SrcWrapper\src\HAL\stm32yyxx_hal_dma_ex.c: In function 'HAL_DMAEx_List_ReplaceNode_Head':
C:\Users\*\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.6.0\libraries\SrcWrapper\src\HAL\stm32yyxx_hal_dma_ex.c:34:9: internal compiler error: Segmentation fault
34 | #pragma GCC diagnostic pop
|         ^~~
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
Error during build: exit status 1
IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Error] Verifying sketch 'arduino\sketches\template\template.ino': Exit with code=1
@fpistm fpistm added this to To do in STM32 core based on ST HAL via automation Sep 25, 2023
@fpistm
Copy link
Member

fpistm commented Sep 25, 2023

Hi @dojyorin
I was not able to reproduce on Windows 10 nor with Linux.
Anyway, it seems already reported to STMicroelectronics GH:
STMicroelectronics/stm32u5xx_hal_driver#5
Reading this issue, you will be redirected to some bugzilla.
It is linked to gcc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108340

So I close it as not related to the core and will be fixed within next arm none eabi gcc toolchain update.

@fpistm fpistm closed this as completed Sep 25, 2023
STM32 core based on ST HAL automation moved this from To do to Done Sep 25, 2023
@fpistm
Copy link
Member

fpistm commented Sep 25, 2023

Maybe this issue could interest @ilg-ul. At least for information.

@ilg-ul
Copy link

ilg-ul commented Sep 25, 2023

Thank you @fpistm, I'll keep in mind that there is an issue, but there is not much we can do, we'll wait for Arm to make a new release.

@fpistm
Copy link
Member

fpistm commented Sep 25, 2023

Thank you @fpistm, I'll keep in mind that there is an issue, but there is not much we can do, we'll wait for Arm to make a new release.

Welcome, as stated it is more FYI than expecting support. I know you can't do nothing 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants