您尚未登录。

楼主 # 2022-05-15 01:21:24

johnatia
会员
注册时间: 2022-05-15
已发帖子: 5
积分: 20

problem with spidev

Hello there,
I'm working on MangoPi-r3 based on F1C200S, I'm trying to communicate with TFT st7735r using spidev1.0
I wrote a code that working on RaspberryPi Zero and worked with the tft , but when I tried it on F1C200S it doesn't work , I think the problem in the spi driver
I also tried to run the spidev_test.c
https://github.com/rm-hull/spidev-test/blob/master/spidev_test.c

I was able to compile it but when trying to run it on F1C200S I got a strange message
/usr/lib/libc.so.6: version `GLIBC_2.33' not found

any help?

离线

楼主 #4 2022-05-19 00:43:50

johnatia
会员
注册时间: 2022-05-15
已发帖子: 5
积分: 20

Re: problem with spidev

I build the image here
https://github.com/mangopi-sbc/buildroot-mangopi-r

the build system I used the default buildroot toolchain
buildroot.jpeg bbcode buildroot

I compiled the spidev_test.c with cross compiler: arm-linux-gnueabi-gcc
I tried another program using this cross compiler and it worked for me

└─$ arm-linux-gnueabi-gcc --version                                                                     
arm-linux-gnueabi-gcc (Debian 11.2.0-18) 11.2.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

最近编辑记录 johnatia (2022-05-19 00:55:29)

离线

楼主 #5 2022-05-19 22:14:17

johnatia
会员
注册时间: 2022-05-15
已发帖子: 5
积分: 20

Re: problem with spidev

could someone tell me .. is the cross compiler I used is right or there's an official cross compiler for f1c200s ??

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn