write to QSPI via dfu-util

Hi there,

First message :slight_smile:
I love my daisy so far but I am facing a problem. I have made kind of an autochord machine and I would like to make it play PCM style sounds.

For that I am trying to flash a raw binary file (audio samples, 393216 bytes, padded to 64KB boundary) to the QSPI flash of my Daisy Seed from Mac using dfu-util.

I installed the Daisy Bootloader via the web programmer. After installation, dfu-util -l shows:

Found DFU: [0483:df11] ver=0200, devnum=4, cfg=1, intf=0, path="1-1.3", alt=0, name="@Flash /0x90000000/64*4Kg/0x90040000/60*64Kg/0x90400000/60*64Kg", serial="327D366A3133"

My firmware runs from internal flash (make program-dfu, 0x08000000). QSPI is only for samples.

I tried:

dfu-util -a 0 -s 0x90040000 -D output/qcm_samples_padded.bin

Result:

DfuSe interface name: "Internal Flash"
Downloading element to address = 0x90040000, size = 393216
dfu-util: Last page at 0x9009ffff is not writeable

The interface name says “Internal Flash” even though the address is 0x90040000 (QSPI range). Is this a dfu-util version issue on Mac, or am I targeting the wrong interface?

Thanks a lot!