Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tcf-dev] Help regarding removing OS dependencies in TCF C agent

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.

  1. 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? 
  2. 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,

Shashanka Navada



This email and any attachments are intended for the sole use of the named recipient(s) and contain(s) confidential information that may be proprietary, privileged or copyrighted under applicable law. If you are not the intended recipient, do not read, copy, or forward this email message or any attachments. Delete this email message and any attachments immediately.


Back to the top