stm32f4discovery - printing the stack of a task in FreeRTOS -


i working on stm32f4-discovery board, installed freertos on board , able run 2 tasks created main function. want task 1 access local variables of task 2 passing of variable reference or value. thought print stack content of task 2 , locate local variables , use in task1

can guide me this? tried print address of each variable , tried use in task1, program did not compile , returned -1.

it not clear me trying achieve, or mean program returning -1 because didn't compile, not normal 1 task access stack variable of task.

each task has own stack, , stack private task. there lots of ways tasks can communicate each other though, without need access each other's stack. simplest way make variable global, although global variables thing. other send value 1 task on queue (http://www.freertos.org/inter-task-communication.html), or using task notification mailbox (http://www.freertos.org/rtos_task_notification_as_mailbox.html).


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -