Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

FreeRTOS: Cube generates FreeRTOS application code stubs, which limits program modularity #31

Closed
tygamvrelis opened this issue Jul 17, 2018 · 1 comment · Fixed by #38

Comments

@tygamvrelis
Copy link
Member

tygamvrelis commented Jul 17, 2018

Cube places all the task stubs, queues, etc in freertos.c, which reduces modularity. A better approach is using Cube to generate the peripheral drivers, and adding the FreeRTOS application code ourselves.

To resolve this issue, the Cube project should be modified to contain no data about our FreeRTOS application structure. This way, we can move around FreeRTOS threads, and structures such as queues, without needing to worry about these things being regenerated each time we run the Cube utilities.

@tygamvrelis
Copy link
Member Author

It has now been learned that Cube can simply generate function declarations while allowing the functions themselves to be implemented solely by the user. With this in mind, we have decided that it would be best to use Cube to track the resources used by FreeRTOS.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants