ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
320 stars 22 forks source link

Use bss section for sramptr #607

Closed ohmtech-rdi closed 1 year ago

ohmtech-rdi commented 1 year ago

This PR use the .bss section instead of .heap to place our SramPtr memory pool in SRAM. We were using heap before, but then we saw that allocating through malloc would overlap with our addresses. In all cases, that's really a bss so a better section to describe it.

Note bss section is mapped to SRAM for both flash and qspi linker scripts, but that's not the case for the sram lds.