I want to use protocol buffers with IAR workbench....am I screwed?

133 views
Skip to first unread message

Bradzo

unread,
Nov 19, 2013, 3:57:59 PM11/19/13
to prot...@googlegroups.com
Hi,

I have used google protocol buffers in the past and like them a lot. I need to set up communication between a embedded processor (we are using IAR workbench and the tool chain associated with it) and a standard Linux board.  

I am only working on the 'application to application' part at the moment. I have loaded the google protocol buffer source code, compiles the package, installed it, compiled the example code (address book) and also run protoc and gotten come .cc and .h files. This all sounds good (It only took a couple of hours). Now I want to compile the .cc file with the IAR compiler. It seems that IAR is not very up to date with the STL.  Google protocol buffers does make use of the STL. Is there any way I can get it not to be dependent on the STL (I know this is kind of backward...the STL is a modern way of doing it, but getting my company to drop IAR and use the GNU tool chain, just to use protocol buffers is not going to happen.)

We am I screw'd? Or is there some work around.

Bradzo

Marco Nilsson

unread,
Nov 21, 2013, 1:44:35 AM11/21/13
to prot...@googlegroups.com
You can do what I did for our AVR32 project and use a different Protobuf implementation. We chose nanopb since it seemed to be the most complete implementation for embedded projects. Note that it is a little more work since you have to write some of the (de)serializers yourself unless you utilize the nanopb extensions, but at least it gets you going and it does the job fast.
Reply all
Reply to author
Forward
0 new messages