[Arduino IDE] Can't get example code to work

I’m trying to run the oscillator example code, and I keep getting this error:

/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /private/var/folders/n1/c8s4rxgx6hj4ky4htt4966nh0000gn/T/arduino/sketches/083DECBB6829D0EBE10EC1A5FFDC8A56/libraries/DaisyDuino/utility/objs.a(qspi.cpp.o): in function `QUADSPI_IRQHandler':
qspi.cpp:(.text.QUADSPI_IRQHandler+0x2): undefined reference to `HAL_QSPI_IRQHandler'
/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: /private/var/folders/n1/c8s4rxgx6hj4ky4htt4966nh0000gn/T/arduino/sketches/083DECBB6829D0EBE10EC1A5FFDC8A56/libraries/DaisyDuino/utility/objs.a(sdram.c.o): in function `dsy_sdram_init':
sdram.c:(.text.dsy_sdram_init+0x6a): undefined reference to `HAL_SDRAM_Init'
/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: sdram.c:(.text.dsy_sdram_init+0x8c): undefined reference to `HAL_SDRAM_SendCommand'
/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: sdram.c:(.text.dsy_sdram_init+0xa8): undefined reference to `HAL_SDRAM_SendCommand'
/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: sdram.c:(.text.dsy_sdram_init+0xbe): undefined reference to `HAL_SDRAM_SendCommand'
/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: sdram.c:(.text.dsy_sdram_init+0xdc): undefined reference to `HAL_SDRAM_SendCommand'
/Users/[laptopname]/Library/Arduino15/packages/STMicroelectronics/tools/xpack-arm-none-eabi-gcc/12.2.1-1.2/bin/../lib/gcc/arm-none-eabi/12.2.1/../../../../arm-none-eabi/bin/ld: sdram.c:(.text.dsy_sdram_init+0xe8): undefined reference to `HAL_SDRAM_ProgramRefreshRate'
collect2: error: ld returned 1 exit status

exit status 1

Compilation error: exit status 1

Some context: I’m on Mac and I’ve already tried uninstalling and reinstalling the DaisyDuino library. How do I fix this?

I just built both of those, no problem.
early 2015 Intel MacBook Pro 13”, Mac OS 12.7.4, Arduino 2.3.2, DaisyDuino 1.7.0

Important:
Under Tools, select:
Board: Generic STM32H7 Series
Board part number: Daisy Seed

I selected both of those already and my code is still not working :frowning:

are u using gitbash?
remember this being an error of using the wrong terminal

no, was using Arduino IDE the whole time.

Also update: was able to get it to work! just had to play around with redownloading files and decalibrating all the board settings then putting them back…

1 Like