Overview
- Object ID : 5188 (2025-03-07 09:11:49)
- Author : Michael
- Content : App Note
- Microcontroller : Propeller 1
- Language : SPIN
- Category : Tool
- Licence : MIT
- Tag : Stack
Content
When programming the multicore Propeller 1 (P8X32A) in Spin, each Spin-based parallel process that is launched needs its own stack space allocated in main memory.
To develop optimal Spin-based multiprocessing objects, allocate plenty of stack space during development, then, as a last step, decrease it to an optimal size by measuring actual call stack requirements using the Stack Space.spin library object.
Download the full PDF application note, and accompanying code. Open the "Stack Length Demo.spin" file in Propeller Tool or Spin Tools IDE to get started.