Compile error - Arduino IDE - DaisySeed - Undefined reference #56
Replies: 2 comments 3 replies
-
Do you know if one of these defines where active? |
Beta Was this translation helpful? Give feedback.
-
The "ADUINO_DAISY_SEED" defines were probably not active. I messed around with your code and got it eventually solved when I deleted all #if (defined ARDUINO_DAISY_SEED) || (defined STM32H7xx) lines and also #define ML_SYNTH_INLINE_DECLARATION and #ifdef ML_SYNTH_INLINE_DEFINITION. Then I continued deleting all lines that were not related to DaisySeed to make it easier for me. I'm using the board library "STM32 MCU based board", and tried both the last one 2.8.1 and the 2.1.0. In the boards list I selected Generic STM32H7 series. Which library should I use ? Some additional info.... #include <MIDI.h> void handleNoteOn(byte inChannel, byte inNote, byte inVelocity) { void handleNoteOff(byte inChannel, byte inNote, byte inVelocity) { Off course it's just note on/off, nothing more, but to me this is a great achieval. I'll continue trying adding stuff like pitch, reverb etc. Not easy for me but I got this far so... I mainly use the standard midi connection in stead off the midi-USB. At this point I did not try or have experience with connection the DaisyPod via midi-USB. I'm going to but first I have to find my USB-host adapter. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm a noob and like messing around with microcontrollers and music and would like to get the organ running on my DaisySeed. I'm using Arduino IDE with a DaisySeed. I read and applied the advice regarding compiler.libraries.ldflags=. This is is far as I got, errors of "undefined references" :
For example, in the main program there's DaisySeed_Setup() which is defined in the audio_module.h (and more like Audio_Setup, etc.). The errors are concerning the linking between both. I hoped the ldflags advice would bring solution but apparently not in this case.
My errormessage...
c:/users/kurtf/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\kurtf\AppData\Local\Temp\arduino\sketches\A8736EEABD96E429ADC21121DB16C9C2\sketch\ML_Synth_1.ino.cpp.o: in function
setup': ML_Synth_1.ino.cpp:(.text.setup+0x4): undefined reference to
DaisySeed_Setup()'c:/users/kurtf/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: ML_Synth_1.ino.cpp:(.text.setup+0x30): undefined reference to
Audio_Setup()' c:/users/kurtf/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: ML_Synth_1.ino.cpp:(.text.setup+0x34): undefined reference to
Midi_Setup()'c:/users/kurtf/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: C:\Users\kurtf\AppData\Local\Temp\arduino\sketches\A8736EEABD96E429ADC21121DB16C9C2\sketch\ML_Synth_1.ino.cpp.o: in function
loop': ML_Synth_1.ino.cpp:(.text.loop+0x22): undefined reference to
Midi_Process()'c:/users/kurtf/appdata/local/arduino15/packages/stmicroelectronics/tools/xpack-arm-none-eabi-gcc/10.2.1-1.1/bin/../lib/gcc/arm-none-eabi/10.2.1/../../../../arm-none-eabi/bin/ld.exe: ML_Synth_1.ino.cpp:(.text.loop+0x30): undefined reference to `Audio_OutputMono(long const*)'
collect2.exe: error: ld returned 1 exit status
Using library ML SynthTools at version 1.3.1 in folder: C:\Users\kurtf\Documents\Arduino\libraries\ML_SynthTools
Using library Source Wrapper at version 1.0.1 in folder: C:\Users\kurtf\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.1.0\libraries\SrcWrapper
exit status 1
Compilation error: exit status 1
Beta Was this translation helpful? Give feedback.
All reactions