mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
Module stack sizes are tuned for 32-bit targets. The POSIX task spawn and the work queues already pass them through PX4_STACK_ADJUSTED(), which doubles them when pointers are 64-bit; px4_task_spawn_cmd() on NuttX did not, so a 64-bit NuttX target overflows stacks such as the SIH simulator's. On 32-bit targets PX4_STACK_ADJUSTED() leaves the size unchanged. Assisted-by: Claude:claude-opus-5-5 Signed-off-by: Afonso Oliveira <afonso.oliveira707@gmail.com>