Hi,
I previously was able to debug by examining logging output in one of the /dev
files on Mac. The file was named something like /dev/cu.USB...
I can’t find any files that contain USB or ACM0 in /dev
. I can flash programs to Daisy Seed and the Patch_SM with no issues.
OS X: Sonoma 14.4.1, Mac M3
Same situation with Linux: Ubuntu 20.04.6 LTS
You need to enable USB serial. It’s done differently depending on if you’re using Arduino (DaisyDuino) or C++ (libDaisy).
Thanks,
Forgot to mention here is the relevant portion in my libDaisy code.
int main(void)
{
hw.Init();
hw.SetAudioBlockSize(4); // number of samples handled per callback
hw.SetAudioSampleRate(SaiHandle::Config::SampleRate::SAI_48KHZ);
hw.StartAudio(AudioCallback);
AdcChannelConfig adc_config[NUM_ADC_CHANNELS];
hw.adc.Init(adc_config, NUM_ADC_CHANNELS);
hw.StartLog(true);
hw.PrintLine("Config complete !!!");
Is there something else I am missing?
It seems the code is hanging some point before I started logging. This works
int main(void)
{
hw.Init();
hw.StartLog(true);
hw.PrintLine("Config complete !!!");
hw.SetAudioBlockSize(4); // number of samples handled per callback
hw.SetAudioSampleRate(SaiHandle::Config::SampleRate::SAI_48KHZ);
hw.StartAudio(AudioCallback);
AdcChannelConfig adc_config[NUM_ADC_CHANNELS];
hw.adc.Init(adc_config, NUM_ADC_CHANNELS);
StartLog(true) waits until USB is connected, then continues. StartLog(false) doesn’t wait.
Each has its uses.