Hi Shashanka,
Yes, it is possible to run TCF agent on baremetal. I have done it and it works very well. You would need to develop an alternative baremetal implementation of several modules: asyncreq.c, mdep.c,
mdep.h, mdep-inet.h and mdep-threads.h. You also will need baremetal implementation of TCP/IP and, optionally, file system. I used lwIP and FatFs. “Easy” is relative term here – it is a lot of work. Using RTOS is also a good option. And it should be much less
work.
> I am not sure how to proceed with removing OS dependencies from these functions.
You provide your own implementation of OS functions.
Regards,
Eugene
From: tcf-dev-bounces@xxxxxxxxxxx [mailto:tcf-dev-bounces@xxxxxxxxxxx]
On Behalf Of Shashanka Navada
Sent: Monday, January 09, 2017 9:40 PM
To: tcf-dev@xxxxxxxxxxx
Subject: [tcf-dev] Help regarding removing OS dependencies in TCF C agent
Hello,
I am trying to port TCF C agent to a microcontroller. I have come across few files like mdep.c or events.c which heavily use threads and other OS functions. I am not sure how to
proceed with removing OS dependencies from these functions.
-
I tried to search for libraries that can mimic thread handling without using an OS but couldn't find one. Is
there a way not to use these and achieve a real baremetal (No OS) TCF agent?
-
I read in this TCF
homepage that it should be easy to port to a baremetal platform. Does that mean without OS or with an Real-time operating system (RTOS)?
It would be helpful if I can get to know in which direction I can proceed.
Regards,