What is stackMemId and how to figure out what number to set it to when configuring the DSP server?
Each algorithm in the DSP server is instantiated and run in a DSP/BIOS task. stackMemId is used to determine where the stack of this task is going to be allocated. Typically, the stack is allocated from one of the existing heaps in the system. Each heap in DSP/BIOS has an identifier (a number) associated with it. This id is determined as follows: • The heap used by DSP/BIOS object segment (bios.MEM.BIOSOBJSEG referenced in the DSP/BIOS API guide) always has ID 0. • Look up all the memory objects (MEM_Obj) listed in the generated *cfg.s62 file from the package/cfg/bin/ directory of your server package that has a heap defined. The first one in the list that has a heap defined has id 1, the 2nd one has id 2, etc. Ignore/Skip the one corresponding to the DSP/BIOS object segment.