Open nmeurer opened 3 years ago
Mozzi only supports stm32f1 right now, I know its unclear in the documentation and it gave me alot of headaches. I tryed making a port to stm32f4 and the offical stm32duino core but it's really time consuming. Maby try using one of the stm32f1 nucleo boards?
Hello everyone! I tried compiling Mozzi using PlatformIO for my STM32 Nucleo Board and I always get the same error:
.pio\libdeps\nucleo_f446re\Mozzi\mozzi_rand.cpp:6:10: fatal error: STM32ADC.h: No such file or directory 6 | #include <STM32ADC.h> | ^~~~~~~~~~~~ compilation terminated. *** [.pio\build\nucleo_f446re\libe2b\Mozzi\mozzi_rand.cpp.o] Error 1 .pio\libdeps\nucleo_f446re\Mozzi\mozzi_utils.cpp: In function 'long int trailingZeros(long unsigned int)': .pio\libdeps\nucleo_f446re\Mozzi\mozzi_utils.cpp:12:11: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] 12 | return (*(uint32_t *)&f >> 23) - 0x7f; | ^~~~~~~~~~~~~~
I am using stm32duino like platformIO does by default and even tried to change it to maple once (which caused even more errors). I select the correct board for my project and included Mozzi as a Github-Repository so I don't run into the issue of having an old repository.
I assume that I am overlooking something simple, perhaps someone could help me. Best regards Noah