I am using the PSoC 5 microcontroller and built a FreeRTOS firmware app based on the associated example.
I am having an interesting problem in where any variable I declare in main() is not accessible by a task. That is, I create a variable in main(), and then pass a pointer that points to this variable to the tasks. After calling vTaskStartScheduler(), the tasks then try and read/write to this variable, however it is invalid?
I would of thought this would be o.k., since the firmware never exits main(), this variable should be accessible.