繁体   English   中英

在嵌入式ARM系统(STM32 F4)上使用protobuf-c 0.15

[英]Uses protobuf-c 0.15 on an embedded ARM system (STM32 F4)

是否可以开发一个在嵌入式ARM系统(STM32 F4)上使用protobuf-c 0.15并与使用protobuf的Java服务器通信的系统?

protobuf-c 0.15使用动态内存分配。 并编译抛出错误:

/opt/arm/sourcery-arm-none-eabi-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-abort.o): In function `abort':
abort.c:(.text+0xa): undefined reference to `_exit'
/opt/arm/sourcery-arm-none-eabi-2011.09/bin/../lib/gcc/arm-none-eabi/4.6.1/../../../../arm-none-eabi/lib/thumb2/libc.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text+0x12): undefined reference to `_sbrk'
...

我了解nanopb和protobuf嵌入式c。 但是他们对protobuf的支持有限。

_sbrk的未定义引用来自newlib,它是CodeSourcery随附的libc。 您将需要提供系统调用功能,以将其正确连接到系统。 例如,请参阅: https : //sites.google.com/site/stm32discovery/open-source-development-with-the-stm32-discovery/getting-newlib-to-work-with-stm32-and-code-sourcery-精简版,EABI

(关于nanopb对protobuf的有限支持,我想听听更多关于您需要什么功能的信息。我是nanopb的作者。)

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM