BOOT_SRAM not loading program [SOLVED]

Hi guys
I’m having trouble using the daisy bootloader and BOOT_SRAM.
The program is not loading.
I know that the bootloader is working correctly because when i use BOOT_QSPI instead it loads my program fine (apart from performance issues, hence my wish to use BOOT_SRAM).
There is no SoS led pattern.
I have no idea how to debug this really, here is my build output, it looks exactly like i would expect it to which memory not taken up in flash or QSPI and instead in DTCMRAM. Also it doesnt look too big :person_shrugging:

Memory region         Used Size  Region Size  %age Used
           FLASH:          0 GB       128 KB      0.00%
         DTCMRAM:       12736 B       128 KB      9.72%
            SRAM:       94348 B       480 KB     19.20%
      RAM_D2_DMA:       16960 B        32 KB     51.76%
          RAM_D2:          0 GB       256 KB      0.00%
          RAM_D3:          0 GB        64 KB      0.00%
     BACKUP_SRAM:          12 B         4 KB      0.29%
         ITCMRAM:          0 GB        64 KB      0.00%
           SDRAM:     1920048 B        64 MB      2.86%
       QSPIFLASH:          0 GB      7936 KB      0.00%

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 4096
DfuSe interface name: "Flash "
Downloading element to address = 0x90040000, size = 94348
Erase           [=========================] 100%        94348 bytes
Erase    done.
Download        [=========================] 100%        94348 bytes
Download done.
File downloaded successfully

Any advice on how to debug is very welcome!!!

For anyone having similar issues in future, i managed to fix it.

i found out that the ReverbSc class was taking up too much memory when initialised. Specifically this part: DaisySP-LGPL/Source/Effects/reverbsc.h at c89d380c62620d6fee9105c5035e081c9b7ea843 · electro-smith/DaisySP-LGPL · GitHub

I fixed it by replacing that array with a global one like so: DSY_SDRAM_BSS float g_reverb_aux[DSY_REVERBSC_MAX_SIZE]; This works for me as i only have 1 reverb line and now everything runs well.

So in general, if your SRAM program is valid and the bootloader is working, then check your dynamic memory usage.