Skip to content

STM32H5 internal compiler error #2138

@dojyorin

Description

@dojyorin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions