sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.07k stars 186 forks source link

Running the most basic program on Pico rp2040 resulted in the following error: #273

Closed lechenghhh closed 2 weeks ago

lechenghhh commented 2 weeks ago

In file included from d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/MozziGuts.h:205:0, from d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/Mozzi.h:33, from D:\我的文档\Arduino\Eurorack_PGM\Mozzi2040\Mozzi2040.ino:2: d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/internal/MozziGuts.hpp: In function 'void MozziPrivate::bufferAudioOutput(AudioOutput)': d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/internal/MozziGuts.hpp:85:3: error: 'audioOutput' was not declared in this scope audioOutput(f); ^~~ d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/internal/MozziGuts.hpp:85:3: note: suggested alternative: 'AudioOutput' audioOutput(f); ^~~ AudioOutput d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/internal/MozziGuts.hpp: In function 'void MozziPrivate::audioHook()': d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/internal/MozziGuts.hpp:232:7: error: 'canBufferAudioOutput' was not declared in this scope if (canBufferAudioOutput()) { ^~~~~~~~ d:\�ҵ��ĵ�\Arduino\libraries\Mozzi/internal/MozziGuts.hpp:232:7: note: suggested alternative: 'bufferAudioOutput' if (canBufferAudioOutput()) { ^~~~~~~~ bufferAudioOutput

exit status 1

Compilation error: exit status 1

Excuse me, is it caused by some incorrect configurations of mine? The same program ran normally on Arduino Nano before

tomcombriat commented 2 weeks ago

Hi!

There is too little information to spot the problem for now, but the answers to these questions should help :) :

lechenghhh commented 2 weeks ago

Mozzi Version:2.0.1 Pgm: Mozzi/01.Basics/Sinewave.ino Controller: Pico RP2040

tomcombriat commented 2 weeks ago

Works here with no problem. Are you trying to compile the example with no modification? Have you tried any other examples? Are you using the Arduino IDE with Earle F. Philhower's core for RP2040?

tomcombriat commented 2 weeks ago

Hi,

Hi got some more comments here by email, but I cannot find them on the thread… Deleted?

In any case, did you manage? From what I saw, I think you were not using the correct core:

boards:Arduino Mbed OS RP2040 Boards by Arduino version 4.1.5

whereas Mozzi has been ported to Earle F. Philhower's core

lechenghhh commented 2 weeks ago

I am not sure about the relationship between this kernel and the default options I found in the Arduino IDE development board manager. However, how to use Earle F. Philhower's core on Pico rp2040? Maybe I should check out this information

lechenghhh commented 2 weeks ago

Hello! After I switched to the development board core you mentioned, my rp2040 can now produce sound. Thank you very much for your question