2019-01-29 07:33 AM
for my project I have to
the small bandwidth is hogging up my cpu and impairing functionalities, so i want to explore alternatives. i am looking at
I am looking for insights into this problem, such as which of these approaches are feasible, how to implement them, are there other ideas to do what i need done with such constraints, etc.
Any comments, opinions or ideas would be appreciated.
2019-01-29 08:36 AM
Sounds like you need to better partition the tasks so as not to block linear execution.
Put the critical, fast executing stuff in interrupts. Don't block. If you can't complete an operation, create a state machine so you can leave and come back later, and pick up from where you left. Use interrupts from the hardware, or a 1KHz task.
Queue IO tasks and buffer data. Manage the queue and access to the SD card in the foreground task.
20Hz is not fast
2019-01-31 03:56 AM
Thanks for your reply. I am a complete beginner in the embedded world. Due to my limitations, I understand some of your ideas, but not all of them. For example, I do not understand why you ask me to create state machine (for a manual interruption of something?) or interrupt using a 1KHz task.
My current plan is as follows:
Among other things, I do not exactly know how to implement the interrupt from the SD. for example:
Do you have any references for resources which will help me learn about setting up interrupts and using that to manage cache and SD card access.