Hi!
Happy new year to everyone!
This is mostly meant for Aman and Victor - as you demonstrated so inspiringly the bare metal Csound on Daisy platform in Vienna.
I got a Daisy pod now, I was able to set up the build tools and got the demos of Daisy/Examples built and working. But I have not managed to have Csound on the board yet…
What I did was:
Cloned Amar’s repo: https://github.com/amanjagwani/DaisyCsound
flashed daisyCsound.bin from the build directory to Daisy. It got installed but nothing happened. I tried to connect a MIDI controller via usb port on the pod to play some notes but it did nothing.
I wanted to replace the Csound code with something that makes sound by itself.
I compiled and installed Csound7 according to the instructions in Daisy folder of Csound sources. I replaced libDaisy/core/STM32H750IB_qspi.lds with the one form csound/Daisy folder, as instructed.
Then I created a new project to the DaisyExamples folder and started to go step by step, using the leds on the pod to signal what gets executed (I don’t have a debugging probe yet, so it is really hard to guess, what is happening).
One thing I found out: when I added this to my Makefile (to load the binary to extended RAM):
APP_TYPE = BOOT_QSPI
- even with a simple LED program, nothing happened with the STM32H750IB_qspi.lds from Csound sources. When I used the original file, it worked as expected.
I used make program-boot && make program-dfu to flash it.
Then I tried to add some minimal Csound and seems that the program gets stuck in creating Csound object:
int main(void)
{
hw.Init();
hw.led1.Set(0, 0, 1); // blue
hw.UpdateLeds();
System::Delay(5000);
CSOUND *cs = csoundCreate(NULL, NULL);
hw.led1.Set(0, 1, 0); // green
hw.UpdateLeds();
When I use the original STM32H750IB_qsp - the led is lit blue but never green.
When I use Csound’s STM32H750IB_qsp - nothing is lit, even blue.
What can be the reason? How to proceed?
Aman, Victor, do you have some ready, working .bin that makes some sound and does not require MIDI for testing?
By the way, daisyCsound.cpp and .hpp files in DaisyCsound repo are outdated and do not compile with present Csound7 API any more. I copied the source files from Daisy/example to that repo, since the Makefile there is nice to use, made necessary changes and then it built well.
If I get through of this, I will write the whole process down for others to follow. It is pretty exciting to get Csound to the small chips!
I attach my .cpp and Makefile.
Thanks!
tarmo
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
(Attachment Makefile is missing)
(Attachment TestProject.cpp is missing)