When initializing the posix client from the examples main() creates a FLASH_RAM_SIZE buffer on the stack for memory. This defaults to 1MB and can contribute to stack overflows later in execution. Since this is the posix example and should have heap available, putting the flash on the heap reduces the likelihood of overflows.
When initializing the posix client from the examples main() creates a FLASH_RAM_SIZE buffer on the stack for memory. This defaults to 1MB and can contribute to stack overflows later in execution. Since this is the posix example and should have heap available, putting the flash on the heap reduces the likelihood of overflows.