ohmtech-rdi / eurorack-blocks

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

Use bss section for sramptr #607

Closed ohmtech-rdi closed 11 months ago

ohmtech-rdi commented 11 months 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.