Csound Csound-dev Csound-tekno Search About

[Csnd] Csound running on bare metal

Date2023-11-26 16:21
FromVictor Lazzarini
Subject[Csnd] Csound running on bare metal
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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

Date2023-11-26 16:24
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Csound running on bare metal
Congratulations!  And thanks.  Looking forward to play with it. 

søn. 26. nov. 2023, 17:21 skrev Victor Lazzarini <Victor.Lazzarini@mu.ie>:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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
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

Date2023-11-26 16:27
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] Csound running on bare metal
Awesome.  Congratulations.  Can't wait to play "Trapped" and the Trapped MIDI collection on there - and Iain's Haiku and "everything" from the Csound Manual.  The next frontier.  Awesome work.  So exciting.

- Dr.B


Dr. Richard Boulanger

Professor

Electronic Production and Design

Berklee College of Music

Professional Writing & Technology Division



On Sun, Nov 26, 2023 at 11:21 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://us-west-2.protection.sophos.com?d=youtube.com&u=aHR0cHM6Ly93d3cueW91dHViZS5jb20vd2F0Y2g_dj11S1pLdzFBNUxCbw==&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=Y08xTVVqc2VIWFFiaS9sMDcwcHJ5b2g5WlE5VHptL2NhOU1hQ0YrRzdHST0=&h=cada6993ec7749df94e21c677defd8f5&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


Csound mailing list
Csound@listserv.heanet.ie
https://us-west-2.protection.sophos.com?d=heanet.ie&u=aHR0cHM6Ly9saXN0c2Vydi5oZWFuZXQuaWUvY2dpLWJpbi93YT9BMD1DU09VTkQ=&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=WVZMRlI4dlFUVUZ6V2NTOUU5eE9lZnFIemtoc2hxYlBDMFFCWmtKZzhzRT0=&h=cada6993ec7749df94e21c677defd8f5&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A
Send bugs reports to
        https://us-west-2.protection.sophos.com?d=github.com&u=aHR0cHM6Ly9naXRodWIuY29tL2Nzb3VuZC9jc291bmQvaXNzdWVz&i=NWYxNzBkMDNiNTVmZGEwZmIyNjczYmRm&t=YlNrQ2lLclRLZUpGUE1iR0FyY2M1eW1NTUU5SUozWlJwMTNZU2NXT1BLOD0=&h=cada6993ec7749df94e21c677defd8f5&s=AVNPUEhUT0NFTkNSWVBUSVYpmKWVU1jKuTPLD5gnaWwAaG5wwcHTpfjKIfFGmt9h9A
Discussions of bugs and features can be posted here
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

Date2023-11-26 16:48
FromMichael Gogins
SubjectRe: [Csnd] Csound running on bare metal
Very nice!

On Sun, Nov 26, 2023, 11:21 Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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
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

Date2023-11-26 18:38
FromRory Walsh
SubjectRe: [Csnd] Csound running on bare metal
Well done all. This is really something! 

On Sun, 26 Nov 2023 at 16:48, Michael Gogins <michael.gogins@gmail.com> wrote:
Very nice!

On Sun, Nov 26, 2023, 11:21 Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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
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
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

Date2023-11-26 19:03
FromSteven Yi
SubjectRe: [Csnd] Csound running on bare metal
+1 Great work!

On Sun, Nov 26, 2023 at 1:38 PM Rory Walsh <rorywalsh@ear.ie> wrote:
Well done all. This is really something! 

On Sun, 26 Nov 2023 at 16:48, Michael Gogins <michael.gogins@gmail.com> wrote:
Very nice!

On Sun, Nov 26, 2023, 11:21 Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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
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
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
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

Date2023-11-27 18:15
FromIain Duncan
SubjectRe: [Csnd] Csound running on bare metal
Fantastic, the Daisy is a great platform!


On Sun, Nov 26, 2023 at 11:03 AM Steven Yi <stevenyi@gmail.com> wrote:
+1 Great work!

On Sun, Nov 26, 2023 at 1:38 PM Rory Walsh <rorywalsh@ear.ie> wrote:
Well done all. This is really something! 

On Sun, 26 Nov 2023 at 16:48, Michael Gogins <michael.gogins@gmail.com> wrote:
Very nice!

On Sun, Nov 26, 2023, 11:21 Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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
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
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
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
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

Date2023-11-27 18:43
FromKelly Hirai
SubjectRe: [Csnd] Csound running on bare metal
ooh yeah, excellent! looking forward to trying this out.

k.

On 11/26/23 11:21 AM, Victor Lazzarini wrote:
> Hi everyone,
> 
> today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
> the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
> and we have been updating the Csound develop branch for this so that the build can be reproduced by others.
> 
> Here is a very simple video demo showing Csound running on the Daisy Board
> 
> https://www.youtube.com/watch?v=uKZKw1A5LBo
> 
> Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
> a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
> (that is a more long term plan, which is part of Aman’s PhD research).
> 
> best regards
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
> 
> 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

-- 
kelly hirai
https://hiraimusic.net/~khirai

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

Date2023-11-28 12:18
FromTetsuya Miwa
SubjectRe: [Csnd] Csound running on bare metal
Great! Very promising for use in digital Eurorack module.

Tetsuya Miwa
https://note.com/tmnkj

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

Date2023-11-28 21:04
FromAaron Krister Johnson
SubjectRe: [Csnd] Csound running on bare metal
This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.

Cheers,


On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa <izc07036@nifty.com> wrote:
Great! Very promising for use in digital Eurorack module.

Tetsuya Miwa
https://note.com/tmnkj

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
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

Date2023-11-28 21:13
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csound running on bare metal
The code on develop now will build for the STM32H7 with the toolchain from Bela.
We just need to push the cross compile file for cmake so anyone can have a go.

There’s a strange issue with csoundReadScore() that we still need to diagnose, but
everything else seems to work OK.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Nov 2023, at 21:04, Aaron Krister Johnson  wrote:
> 
> *Warning*
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.
> 
> Cheers,
> 
> Aaron Krister Johnson
> Music, etc.:
> https://soundcloud.com/aaron-krister-johnson
> https://soundcloud.com/filtercreed
> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
> https://aaronkristerjohnson.bandcamp.com/
> http://www.untwelve.org
> Code:
> https://github.com/akjmicro
> 
> 
> On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa  wrote:
> Great! Very promising for use in digital Eurorack module.
> 
> Tetsuya Miwa
> https://note.com/tmnkj
> 
> 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
> 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


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

Date2023-11-29 18:21
FromGes Cook
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csound running on bare metal
Wow. Can't wait to see how the fpga stuff works out. I've been wanting to get my Zedboard accelerating Csound for years ever since the old extended Csound work by Barry Vercoe based on DSP Sharc devices from Analog Devices.. 

Good luck

Ges
 

On Tue, 28 Nov 2023, 21:13 Victor Lazzarini, <Victor.Lazzarini@mu.ie> wrote:
The code on develop now will build for the STM32H7 with the toolchain from Bela.
We just need to push the cross compile file for cmake so anyone can have a go.

There’s a strange issue with csoundReadScore() that we still need to diagnose, but
everything else seems to work OK.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Nov 2023, at 21:04, Aaron Krister Johnson <akjmicro@GMAIL.COM> wrote:
>
> *Warning*
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.
>
> Cheers,
>
> Aaron Krister Johnson
> Music, etc.:
> https://soundcloud.com/aaron-krister-johnson
> https://soundcloud.com/filtercreed
> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
> https://aaronkristerjohnson.bandcamp.com/
> http://www.untwelve.org
> Code:
> https://github.com/akjmicro
>
>
> On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa <izc07036@nifty.com> wrote:
> Great! Very promising for use in digital Eurorack module.
>
> Tetsuya Miwa
> https://note.com/tmnkj
>
> 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
> 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


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
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

Date2023-11-29 18:49
FromAaron Krister Johnson
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csound running on bare metal
Victor -- curious how csound reads "files" if there is no OS -- what is the "file" concept? Also, devices, etc.

And how does one interact with the process? Is there a "shell"?

I've never really worked with bare metal, so I imagine this is a thing where you build on another host and push a self-executing image over a USB or serial port...but I've worked with Beal, and there's a basic Linux OS there.

On Tue, Nov 28, 2023 at 2:13 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
The code on develop now will build for the STM32H7 with the toolchain from Bela.
We just need to push the cross compile file for cmake so anyone can have a go.

There’s a strange issue with csoundReadScore() that we still need to diagnose, but
everything else seems to work OK.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Nov 2023, at 21:04, Aaron Krister Johnson <akjmicro@GMAIL.COM> wrote:
>
> *Warning*
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.
>
> Cheers,
>
> Aaron Krister Johnson
> Music, etc.:
> https://soundcloud.com/aaron-krister-johnson
> https://soundcloud.com/filtercreed
> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
> https://aaronkristerjohnson.bandcamp.com/
> http://www.untwelve.org
> Code:
> https://github.com/akjmicro
>
>
> On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa <izc07036@nifty.com> wrote:
> Great! Very promising for use in digital Eurorack module.
>
> Tetsuya Miwa
> https://note.com/tmnkj
>
> 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
> 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


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
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

Date2023-11-29 18:50
FromAaron Krister Johnson
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csound running on bare metal

On Wed, Nov 29, 2023 at 11:49 AM Aaron Krister Johnson <akjmicro@gmail.com> wrote:
Victor -- curious how csound reads "files" if there is no OS -- what is the "file" concept? Also, devices, etc.

And how does one interact with the process? Is there a "shell"?

I've never really worked with bare metal, so I imagine this is a thing where you build on another host and push a self-executing image over a USB or serial port...but I've worked with Beal, and there's a basic Linux OS there.

On Tue, Nov 28, 2023 at 2:13 PM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
The code on develop now will build for the STM32H7 with the toolchain from Bela.
We just need to push the cross compile file for cmake so anyone can have a go.

There’s a strange issue with csoundReadScore() that we still need to diagnose, but
everything else seems to work OK.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 28 Nov 2023, at 21:04, Aaron Krister Johnson <akjmicro@GMAIL.COM> wrote:
>
> *Warning*
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.
>
> Cheers,
>
> Aaron Krister Johnson
> Music, etc.:
> https://soundcloud.com/aaron-krister-johnson
> https://soundcloud.com/filtercreed
> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
> https://aaronkristerjohnson.bandcamp.com/
> http://www.untwelve.org
> Code:
> https://github.com/akjmicro
>
>
> On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa <izc07036@nifty.com> wrote:
> Great! Very promising for use in digital Eurorack module.
>
> Tetsuya Miwa
> https://note.com/tmnkj
>
> 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
> 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


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
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

Date2023-11-29 19:08
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csound running on bare metal
No files - only memory. So we supply Csound code as strings. Daisy has a way of accessing files in an SD card so that
could be used to load code.

Currently you have to write a program using the Csound API and it runs on the board. All IO then has to be handled
by that program (dispatching MIDI to Csound, GPIOs etc), we’ll be working on that now that we have sound.

One thing is not working: csoundReadScore(), so there’s no score sorting services available (yet) but otherwise
everything else seems to be good. I have not yet identified why it doesn’t work but I hope to get to the bottom of
this soon.

Instructions to follow.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 29 Nov 2023, at 18:49, Aaron Krister Johnson  wrote:
> 
> Victor -- curious how csound reads "files" if there is no OS -- what is the "file" concept? Also, devices, etc.
> 
> And how does one interact with the process? Is there a "shell"?
> 
> I've never really worked with bare metal, so I imagine this is a thing where you build on another host and push a self-executing image over a USB or serial port...but I've worked with Beal, and there's a basic Linux OS there.
> 
> Aaron Krister Johnson
> Music, etc.:
> https://soundcloud.com/aaron-krister-johnson
> https://soundcloud.com/filtercreed
> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
> https://aaronkristerjohnson.bandcamp.com/
> http://www.untwelve.org
> Code:
> https://github.com/akjmicro
> 
> 
> On Tue, Nov 28, 2023 at 2:13 PM Victor Lazzarini  wrote:
> The code on develop now will build for the STM32H7 with the toolchain from Bela.
> We just need to push the cross compile file for cmake so anyone can have a go.
> 
> There’s a strange issue with csoundReadScore() that we still need to diagnose, but
> everything else seems to work OK.
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
> > On 28 Nov 2023, at 21:04, Aaron Krister Johnson  wrote:
> > 
> > *Warning*
> > This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> > This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.
> > 
> > Cheers,
> > 
> > Aaron Krister Johnson
> > Music, etc.:
> > https://soundcloud.com/aaron-krister-johnson
> > https://soundcloud.com/filtercreed
> > https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
> > https://aaronkristerjohnson.bandcamp.com/
> > http://www.untwelve.org
> > Code:
> > https://github.com/akjmicro
> > 
> > 
> > On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa  wrote:
> > Great! Very promising for use in digital Eurorack module.
> > 
> > Tetsuya Miwa
> > https://note.com/tmnkj
> > 
> > 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
> > 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
> 
> 
> 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
> 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



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

Date2023-11-30 01:13
FromSynaptic Memory Seepage
SubjectRe: [Csnd] Csound running on bare metal
I've followed this listserv for several years.  I haven't had time to work with C Sound for the past 5 years, but I love getting reminders.  Over the past few years, I've done many microcontroller projects in school.  I would love to get back to C Sound and try to implement it on a board running an ARM microprocessor.

Best regards,
Jonathan Winters
BS EE, EIT (PA)

On Sun, Nov 26, 2023 at 11:21 AM Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Hi everyone,

today we have managed to build and run Csound on bare metal (e.g. without an OS) on two different platforms:
the Daisy Seed and an arm processor on a Xylinx FPGA board. This work was carried out by Aman Jagwani,
and we have been updating the Csound develop branch for this so that the build can be reproduced by others.

Here is a very simple video demo showing Csound running on the Daisy Board

https://www.youtube.com/watch?v=uKZKw1A5LBo

Once we have a bit more done in terms of integration IO such as MIDI and voltage sources on the Daisy, we hope to put together
a set of documents to guide any interested users. We are also hoping to integrate Csound and the FPGA to provide acceleration
(that is a more long term plan, which is part of Aman’s PhD research).

best regards
========================
Prof. Victor Lazzarini
Maynooth University
Ireland


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
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

Date2023-12-01 09:02
FromAlex Hofmann
SubjectRe: [Csnd] [EXTERNAL] [Csnd] Csound running on bare metal
Hi Victor and Aman, that's awesome work! 

I am trying to reproduce this on Daisy Pod right now.. I managed to build libcsound.a (its only 3mb?) and have to see where to go from there. Any hints are very much appreciated :-)

Best,
Alex

> Am 29.11.2023 um 20:08 schrieb Victor Lazzarini :
> 
> No files - only memory. So we supply Csound code as strings. Daisy has a way of accessing files in an SD card so that
> could be used to load code.
> 
> Currently you have to write a program using the Csound API and it runs on the board. All IO then has to be handled
> by that program (dispatching MIDI to Csound, GPIOs etc), we’ll be working on that now that we have sound.
> 
> One thing is not working: csoundReadScore(), so there’s no score sorting services available (yet) but otherwise
> everything else seems to be good. I have not yet identified why it doesn’t work but I hope to get to the bottom of
> this soon.
> 
> Instructions to follow.
> ========================
> Prof. Victor Lazzarini
> Maynooth University
> Ireland
> 
>> On 29 Nov 2023, at 18:49, Aaron Krister Johnson  wrote:
>> 
>> Victor -- curious how csound reads "files" if there is no OS -- what is the "file" concept? Also, devices, etc.
>> 
>> And how does one interact with the process? Is there a "shell"?
>> 
>> I've never really worked with bare metal, so I imagine this is a thing where you build on another host and push a self-executing image over a USB or serial port...but I've worked with Beal, and there's a basic Linux OS there.
>> 
>> Aaron Krister Johnson
>> Music, etc.:
>> https://soundcloud.com/aaron-krister-johnson
>> https://soundcloud.com/filtercreed
>> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
>> https://aaronkristerjohnson.bandcamp.com/
>> http://www.untwelve.org
>> Code:
>> https://github.com/akjmicro
>> 
>> 
>> On Tue, Nov 28, 2023 at 2:13 PM Victor Lazzarini  wrote:
>> The code on develop now will build for the STM32H7 with the toolchain from Bela.
>> We just need to push the cross compile file for cmake so anyone can have a go.
>> 
>> There’s a strange issue with csoundReadScore() that we still need to diagnose, but
>> everything else seems to work OK.
>> ========================
>> Prof. Victor Lazzarini
>> Maynooth University
>> Ireland
>> 
>>> On 28 Nov 2023, at 21:04, Aaron Krister Johnson  wrote:
>>> 
>>> *Warning*
>>> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
>>> This is great news indeed. When the time comes, and with your permission, I'll update the forked source for "diet csound" with the under-development build code.
>>> 
>>> Cheers,
>>> 
>>> Aaron Krister Johnson
>>> Music, etc.:
>>> https://soundcloud.com/aaron-krister-johnson
>>> https://soundcloud.com/filtercreed
>>> https://www.youtube.com/channel/UC_utjGYbSizWE0dNyr0Vdmg
>>> https://aaronkristerjohnson.bandcamp.com/
>>> http://www.untwelve.org
>>> Code:
>>> https://github.com/akjmicro
>>> 
>>> 
>>> On Tue, Nov 28, 2023 at 5:18 AM Tetsuya Miwa  wrote:
>>> Great! Very promising for use in digital Eurorack module.
>>> 
>>> Tetsuya Miwa
>>> https://note.com/tmnkj
>>> 
>>> 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
>>> 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
>> 
>> 
>> 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
>> 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
> 
> 
> 
> 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

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