Csound Csound-dev Csound-tekno Search About

[Csnd] DaisyCsound bootloader and flashing program

Date2025-04-23 13:44
FromTetsuya Miwa
Subject[Csnd] DaisyCsound bootloader and flashing program
Hello,

I’m trying DaisyCsound by following the instruction below:
https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples

Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.

Any help would be greatly appreciated!

Best regards,
Tetsuya Miwa
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

Date2025-04-23 13:57
FromTetsuya Miwa
SubjectRe: [Csnd] DaisyCsound bootloader and flashing program
Hi,

I’m using MacOS to build DaisyCsound from copied repository.

-----------

Hello,

I’m trying DaisyCsound by following the instruction below:
https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples

Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.

Any help would be greatly appreciated!

Best regards,
Tetsuya Miwa

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

Date2025-04-23 14:16
FromAman Jagwani
SubjectRe: [Csnd] DaisyCsound bootloader and flashing program
Hi Tetsuya, 

You should be able to flash the two examples like any Daisy program that uses the bootloader as per this:
https://daisy.audio/tutorials/_a7_Getting-Started-Daisy-Bootloader/

The dsy_bootloader_v5_4.bin will automatically be used (the makefile handles this). 

So you can run:
make program-boot
and then:
make program-dfu

Make sure you have the Daisy toolchain installed and you can refer to the link above for the sequence of pressing the boot and reset buttons on the Daisy to enable it to be flashed. 

Hope this helps!
Thank you, 
Aman Jagwani

On Wed, Apr 23, 2025 at 6:27 PM Tetsuya Miwa <izc07036@nifty.com> wrote:
Hi,

I’m using MacOS to build DaisyCsound from copied repository.

-----------

Hello,

I’m trying DaisyCsound by following the instruction below:
https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples

Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.

Any help would be greatly appreciated!

Best regards,
Tetsuya Miwa

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

Date2025-04-23 18:42
FromTarmo Johannes
SubjectRe: [Csnd] DaisyCsound bootloader and flashing program
Hi!

I can confirm I got the Genarative example up and running on Daisy, then dis not have time to investigate it further...

It is exciting though!


Tarmo


K, 23. aprill 2025 16:16 Aman Jagwani <amanjagwani1998@gmail.com> kirjutas:
Hi Tetsuya, 

You should be able to flash the two examples like any Daisy program that uses the bootloader as per this:
https://daisy.audio/tutorials/_a7_Getting-Started-Daisy-Bootloader/

The dsy_bootloader_v5_4.bin will automatically be used (the makefile handles this). 

So you can run:
make program-boot
and then:
make program-dfu

Make sure you have the Daisy toolchain installed and you can refer to the link above for the sequence of pressing the boot and reset buttons on the Daisy to enable it to be flashed. 

Hope this helps!
Thank you, 
Aman Jagwani

On Wed, Apr 23, 2025 at 6:27 PM Tetsuya Miwa <izc07036@nifty.com> wrote:
Hi,

I’m using MacOS to build DaisyCsound from copied repository.

-----------

Hello,

I’m trying DaisyCsound by following the instruction below:
https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples

Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.

Any help would be greatly appreciated!

Best regards,
Tetsuya Miwa

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

Date2025-04-24 11:00
FromTetsuya Miwa
SubjectRe: [Csnd] DaisyCsound bootloader and flashing program
Dear Aman,

Thank you for your explanation.
After running "make program-boot”, dsy_bootloader_v5_4.bin was successfully written into Daisy Seed (Error 74 can be ignored).
However, I got an error for “make program-dfu”. The complete error log is attached below.
It tried to write the program to the address 0x90040000(QSPI Flash), which is as expected because APP_TYPE = BOOT_QSPI is configured in the Makefile.
QSPI flash is 8MB and the bin file is 2.2MB, so the error should not due to lack of memory.
Any further help would be greatly appreciated!

Best regards,
Teteuya Miwa

Log:
(base) tetsuya@MacBook-Air DaisyCsoundGenerative % make program-dfu
dfu-util -a 0 -s 0x90040000:leave -D build/daisyCsoundGenerative.bin -d ,0483:df11
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0483:df11
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash   "
Downloading element to address = 0x90040000, size = 2153468
dfu-util: Last page at 0x9024dbfb is not writeable
make: *** [program-dfu] Error 64


> 2025/04/23 22:16、Aman Jagwani のメール:
> 
> Hi Tetsuya, 
> 
> You should be able to flash the two examples like any Daisy program that uses the bootloader as per this:
> https://daisy.audio/tutorials/_a7_Getting-Started-Daisy-Bootloader/
> 
> The dsy_bootloader_v5_4.bin will automatically be used (the makefile handles this). 
> 
> So you can run:
> make program-boot
> and then:
> make program-dfu
> 
> Make sure you have the Daisy toolchain installed and you can refer to the link above for the sequence of pressing the boot and reset buttons on the Daisy to enable it to be flashed. 
> 
> Hope this helps!
> Thank you, 
> Aman Jagwani
> 
> On Wed, Apr 23, 2025 at 6:27 PM Tetsuya Miwa  wrote:
> Hi,
> 
> I’m using MacOS to build DaisyCsound from copied repository.
> 
> -----------
> 
> Hello,
> 
> I’m trying DaisyCsound by following the instruction below:
> https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples
> 
> Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
> I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.
> 
> Any help would be greatly appreciated!
> 
> Best regards,
> Tetsuya Miwa
> 
> 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

Date2025-04-24 11:57
FromAman Jagwani
SubjectRe: [Csnd] DaisyCsound bootloader and flashing program
Hi Tetsuya,

That error is occurring because after you flash the bootloader, you do not need to enter the Daisy into boot mode again. Here is the full sequence of flashing the bootloader and then the example binary:

  1. Enter boot mode - press and hold boot, press and hold reset, let go of reset, and let go of boot.
  2. run make program-boot
  3. press and let go reset and then press and let go boot - after this you should see the LED on the daisy gradually glow and fade repeatedly, indicating that the bootloader is ready.
  4. run make program-dfu

This sequence will ensure that the bootloader is flashed and then the example program is flashed to the correct memory location (QSPI) with the bootloader. Also you only need to flash the bootloader once, after that if you make any changes and want to flash an example again you can just follow steps 3 and 4 from above.

Thank you,
Aman Jagwani

On Thu, Apr 24, 2025 at 3:30 PM Tetsuya Miwa <izc07036@nifty.com> wrote:
Dear Aman,

Thank you for your explanation.
After running "make program-boot”, dsy_bootloader_v5_4.bin was successfully written into Daisy Seed (Error 74 can be ignored).
However, I got an error for “make program-dfu”. The complete error log is attached below.
It tried to write the program to the address 0x90040000(QSPI Flash), which is as expected because APP_TYPE = BOOT_QSPI is configured in the Makefile.
QSPI flash is 8MB and the bin file is 2.2MB, so the error should not due to lack of memory.
Any further help would be greatly appreciated!

Best regards,
Teteuya Miwa

Log:
(base) tetsuya@MacBook-Air DaisyCsoundGenerative % make program-dfu
dfu-util -a 0 -s 0x90040000:leave -D build/daisyCsoundGenerative.bin -d ,0483:df11
dfu-util 0.11

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

dfu-util: Warning: Invalid DFU suffix signature
dfu-util: A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0483:df11
Device DFU version 011a
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 011a
Device returned transfer size 1024
DfuSe interface name: "Internal Flash   "
Downloading element to address = 0x90040000, size = 2153468
dfu-util: Last page at 0x9024dbfb is not writeable
make: *** [program-dfu] Error 64


> 2025/04/23 22:16、Aman Jagwani <amanjagwani1998@GMAIL.COM>のメール:
>
> Hi Tetsuya,
>
> You should be able to flash the two examples like any Daisy program that uses the bootloader as per this:
> https://daisy.audio/tutorials/_a7_Getting-Started-Daisy-Bootloader/
>
> The dsy_bootloader_v5_4.bin will automatically be used (the makefile handles this).
>
> So you can run:
> make program-boot
> and then:
> make program-dfu
>
> Make sure you have the Daisy toolchain installed and you can refer to the link above for the sequence of pressing the boot and reset buttons on the Daisy to enable it to be flashed.
>
> Hope this helps!
> Thank you,
> Aman Jagwani
>
> On Wed, Apr 23, 2025 at 6:27 PM Tetsuya Miwa <izc07036@nifty.com> wrote:
> Hi,
>
> I’m using MacOS to build DaisyCsound from copied repository.
>
> -----------
>
> Hello,
>
> I’m trying DaisyCsound by following the instruction below:
> https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples
>
> Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
> I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.
>
> Any help would be greatly appreciated!
>
> Best regards,
> Tetsuya Miwa
>
> 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

Date2025-04-24 17:16
FromTetsuya Miwa
SubjectRe: [Csnd] DaisyCsound bootloader and flashing program
Dear Aman,

Thank you very much for the detailed step-by-step instructions.
Finally I can successfully run Csound on Daisy Seed. This is wonderful!
One important point I can add to Step 3 is that I need to press the boot button after pressing reset button, and while the LED is blinking briefly.

Tetsuya Miwa

> 2025/04/24 19:57、Aman Jagwani のメール:
> 
> Hi Tetsuya,
> 
> That error is occurring because after you flash the bootloader, you do not need to enter the Daisy into boot mode again. Here is the full sequence of flashing the bootloader and then the example binary:
> 
>     1. Enter boot mode - press and hold boot, press and hold reset, let go of reset, and let go of boot.
>     2. run make program-boot
>     3. press and let go reset and then press and let go boot - after this you should see the LED on the daisy gradually glow and fade repeatedly, indicating that the bootloader is ready.
>     4. run make program-dfu
> 
> 
> This sequence will ensure that the bootloader is flashed and then the example program is flashed to the correct memory location (QSPI) with the bootloader. Also you only need to flash the bootloader once, after that if you make any changes and want to flash an example again you can just follow steps 3 and 4 from above.
> 
> Thank you,
> Aman Jagwani
> 
> On Thu, Apr 24, 2025 at 3:30 PM Tetsuya Miwa  wrote:
> Dear Aman,
> 
> Thank you for your explanation.
> After running "make program-boot”, dsy_bootloader_v5_4.bin was successfully written into Daisy Seed (Error 74 can be ignored).
> However, I got an error for “make program-dfu”. The complete error log is attached below.
> It tried to write the program to the address 0x90040000(QSPI Flash), which is as expected because APP_TYPE = BOOT_QSPI is configured in the Makefile.
> QSPI flash is 8MB and the bin file is 2.2MB, so the error should not due to lack of memory.
> Any further help would be greatly appreciated!
> 
> Best regards,
> Teteuya Miwa
> 
> Log:
> (base) tetsuya@MacBook-Air DaisyCsoundGenerative % make program-dfu
> dfu-util -a 0 -s 0x90040000:leave -D build/daisyCsoundGenerative.bin -d ,0483:df11
> dfu-util 0.11
> 
> Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
> Copyright 2010-2021 Tormod Volden and Stefan Schmidt
> This program is Free Software and has ABSOLUTELY NO WARRANTY
> Please report bugs to http://sourceforge.net/p/dfu-util/tickets/
> 
> dfu-util: Warning: Invalid DFU suffix signature
> dfu-util: A valid DFU suffix will be required in a future dfu-util release
> Opening DFU capable USB device...
> Device ID 0483:df11
> Device DFU version 011a
> Claiming USB DFU Interface...
> Setting Alternate Interface #0 ...
> Determining device status...
> DFU state(2) = dfuIDLE, status(0) = No error condition is present
> DFU mode device DFU version 011a
> Device returned transfer size 1024
> DfuSe interface name: "Internal Flash   "
> Downloading element to address = 0x90040000, size = 2153468
> dfu-util: Last page at 0x9024dbfb is not writeable
> make: *** [program-dfu] Error 64
> 
> 
> > 2025/04/23 22:16、Aman Jagwani のメール:
> > 
> > Hi Tetsuya, 
> > 
> > You should be able to flash the two examples like any Daisy program that uses the bootloader as per this:
> > https://daisy.audio/tutorials/_a7_Getting-Started-Daisy-Bootloader/
> > 
> > The dsy_bootloader_v5_4.bin will automatically be used (the makefile handles this). 
> > 
> > So you can run:
> > make program-boot
> > and then:
> > make program-dfu
> > 
> > Make sure you have the Daisy toolchain installed and you can refer to the link above for the sequence of pressing the boot and reset buttons on the Daisy to enable it to be flashed. 
> > 
> > Hope this helps!
> > Thank you, 
> > Aman Jagwani
> > 
> > On Wed, Apr 23, 2025 at 6:27 PM Tetsuya Miwa  wrote:
> > Hi,
> > 
> > I’m using MacOS to build DaisyCsound from copied repository.
> > 
> > -----------
> > 
> > Hello,
> > 
> > I’m trying DaisyCsound by following the instruction below:
> > https://github.com/csound/csound/tree/develop/Daisy/DaisyCsoundExamples
> > 
> > Finally I built daisyCsoundGenerative.bin and daisyCsoundMidi.bin, but how can I upload them to Daisy Seed?
> > I also found dsy_bootloader_v5_4.bin in the repository. I guess the default boot loader should be replaced by this, but no idea how to do it.
> > 
> > Any help would be greatly appreciated!
> > 
> > Best regards,
> > Tetsuya Miwa
> > 
> > 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