F133-A未验证.zip
再下献丑了 未验证!!!,嘉立创免费卷没了,再加上天气降温了不太想动
libfakeroot.c: In function 'setxattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1658:5: note: in expansion of macro 'INT_NEXT_STAT'
1658 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function 'lsetxattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1679:5: note: in expansion of macro 'INT_NEXT_LSTAT'
1679 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fsetxattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1700:5: note: in expansion of macro 'INT_NEXT_FSTAT'
1700 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'getxattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1721:5: note: in expansion of macro 'INT_NEXT_STAT'
1721 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function 'lgetxattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1742:5: note: in expansion of macro 'INT_NEXT_LSTAT'
1742 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fgetxattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1763:5: note: in expansion of macro 'INT_NEXT_FSTAT'
1763 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'listxattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1784:5: note: in expansion of macro 'INT_NEXT_STAT'
1784 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function 'llistxattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1805:5: note: in expansion of macro 'INT_NEXT_LSTAT'
1805 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'flistxattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1826:5: note: in expansion of macro 'INT_NEXT_FSTAT'
1826 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'removexattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
| ^
libfakeroot.c:1847:5: note: in expansion of macro 'INT_NEXT_STAT'
1847 | r=INT_NEXT_STAT(path, &st);
| ^~~~~~~~~~~~~
libfakeroot.c: In function 'lremovexattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
| ^
libfakeroot.c:1868:5: note: in expansion of macro 'INT_NEXT_LSTAT'
1868 | r=INT_NEXT_LSTAT(path, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fremovexattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
| ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
| ^
libfakeroot.c:1889:5: note: in expansion of macro 'INT_NEXT_FSTAT'
1889 | r=INT_NEXT_FSTAT(fd, &st);
| ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fts_read':
libfakeroot.c:1953:22: warning: passing argument 1 of 'send_get_stat64' from incompatible pointer type [-Wincompatible-pointer-types]
1953 | SEND_GET_STAT64(r->fts_statp, _STAT_VER);
| ~^~~~~~~~~~~
| |
| struct stat *
libfakeroot.c:89:46: note: in definition of macro 'SEND_GET_STAT64'
89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
| ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected 'struct stat64 *' but argument is of type 'struct stat *'
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~~~~~~~~~~~~~^~~
libfakeroot.c: In function 'fts_children':
libfakeroot.c:1976:24: warning: passing argument 1 of 'send_get_stat64' from incompatible pointer type [-Wincompatible-pointer-types]
1976 | SEND_GET_STAT64(r->fts_statp, _STAT_VER);
| ~^~~~~~~~~~~
| |
| struct stat *
libfakeroot.c:89:46: note: in definition of macro 'SEND_GET_STAT64'
89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
| ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected 'struct stat64 *' but argument is of type 'struct stat *'
209 | extern void send_get_stat64(struct stat64 *buf);
| ~~~~~~~~~~~~~~~^~~
make[6]: *** [Makefile:638: libfakeroot.lo] Error 1
make[6]: Leaving directory '/home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2'
make[5]: *** [Makefile:660: all-recursive] Error 1
make[5]: Leaving directory '/home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2'
make[4]: *** [Makefile:434: all] Error 2
make[4]: Leaving directory '/home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2'
make[3]: *** [Makefile:21: /home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2/.built] Error 2
make[3]: Leaving directory '/home/yangmei/D1/tools/fakeroot'
make[2]: *** [tools/Makefile:135: tools/fakeroot/compile] Error 2
make[2]: Leaving directory '/home/yangmei/D1'
make[1]: *** [tools/Makefile:133: /home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2
make[1]: Leaving directory '/home/yangmei/D1'
make: *** [/home/yangmei/D1/build/toplevel.mk:306:world] 错误 2
#### make failed to build some targets (10:45 (mm:ss)) ####
出错,不知道啥原因
可以,我准备把外设做全面点
感觉是有点问题,不知道是芯片还是驱动,有时上电挂载会不成功,按复位键又可以了,
res =1;k=0;
while(res)
{
SDIO_Init();
for(i=0;i<10000;i++);
res =f_mount(&fs[0],"0:",1);
if(res==FR_OK)SD1_UartShow_CardInfo(); //打印TF卡信息
else printf("f_mount(&fs[0],0:,1) -> %d \r\n",res);
k++;
if(k>3)res =0;
}所以,我连续挂载三次,不成功就再次初始化SDIO,这样就没问题了,,但是小容量的内存卡就不会出现这种情况,上电之间ok,
TK499_SDIO.7z
你试下我的工程看看
感觉是有点问题,不知道是芯片还是驱动,有时上电挂载会不成功,按复位键又可以了,
res =1;k=0;
while(res)
{
SDIO_Init();
for(i=0;i<10000;i++);
res =f_mount(&fs[0],"0:",1);
if(res==FR_OK)SD1_UartShow_CardInfo(); //打印TF卡信息
else printf("f_mount(&fs[0],0:,1) -> %d \r\n",res);
k++;
if(k>3)res =0;
}
所以,我连续挂载三次,不成功就再次初始化SDIO,这样就没问题了,,但是小容量的内存卡就不会出现这种情况,上电之间ok,
https://whycan.cn/files/members/2275/_20200509141249.png
这个进度条有点问题,我的也是一样
找到原因了,用了16位色,启用了阴影绘制就会这样,关闭阴影绘制就正常了
lcd_cfg_Struct lcd_cfg={
.pixel_clock_hz=33000000,
.width=PHY_LCD_WIDTH,
.height=PHY_LCD_HEIGHT,
.h_front_porch=40,
.h_back_porch=87,
.h_sync_len=1,
.v_front_porch=13,
.v_back_porch=31,
.v_sync_len=1,
.h_sync_active=false,
.v_sync_active=false,
.den_active=false,
.clk_active=false,
.line_per_pixel=18,
.rstdefe=46,
.rstdebe=44,
.rsttcon=36,
.backcolor=0x00000000,
} ;
Rebuild target 'Target 1'
compiling main.c...
compiling gpio-f1c100s.c...
compiling clk-f1c100s-pll.c...
compiling fb-f1c100s.c...
compiling dma.c...
compiling printf.c...
compiling malloc.c...
compiling irq_misc.c...
compiling pwm-f1c100s.c...
compiling reset-f1c100s.c...
assembling start.S...
assembling memcpy.S...
assembling memset.S...
compiling usb_cdc.c...
compiling usb_hid.c...
compiling usb_dev.c...
compiling usb_phy.c...
compiling exception.c...
compiling sys-clock.c...
compiling sys-mmu.c...
compiling sys-dram.c...
compiling sys-uart.c...
compiling sys-spi-flash.c...
compiling sys-copyself.c...
linking...
After Build - User command #1: Toolchain\bin\arm-none-eabi-objcopy -O binary Objects\f1c100s.elf Objects\f1c100s.bin
After Build - User command #2: Tools\mksunxi Objects\f1c100s.bin
".\Objects\f1c100s.elf" - 0 Error(s), 0 Warning(s).
Build Time Elapsed: 00:01:11
感觉我编译出来的和楼主的不一样,,,少了boot size
我也遇到了
*** Error: Failed to execute 'arm-none-eabi-gcc'
compiling fb-f1c100s.c...
*** Error: Failed to execute 'arm-none-eabi-gcc'
compiling irq_misc.c...
*** Error: Failed to execute 'arm-none-eabi-gcc'
linking...
--- Error: failed to execute 'arm-none-eabi-gcc'
".\Objects\f1c100s.elf" - 1 Error(s), 0 Warning(s).
Target not created.
Build Time Elapsed: 00:00:01
这是原理图TK488-5C.pdf
怎么进入设置的,为什么我的进不了
这里下载工具链: Latest Bare-Metal Targeted Binary Toolchain Releases
因为我的电脑是ubuntu14.04 x64版本的,所以我下载这个工具链: gcc-linaro-7.2.1-2017.11-x86_64_arm-eabi.tar.xz
一般解压缩到 /usr/local/ 目录,
然后把目录 export PATH=/usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-eabi/bin:$PATH 添加到 /etc/profile, 或者 ~/.bashrc 文件然后执行:
我的是linux子系统ubuntu18.04的下面需要选哪个:
gcc-linaro-7.2.1-2017.11-i686-mingw32_arm-linux-gnueabihf.tar.xz 27-Feb-2018 00:54 319.7M open
gcc-linaro-7.2.1-2017.11-i686-mingw32_arm-linux-gnueabihf.tar.xz.asc 28-Jan-2018 19:47 99 open
gcc-linaro-7.2.1-2017.11-i686_arm-linux-gnueabihf.tar.xz 27-Feb-2018 00:54 102.4M open
gcc-linaro-7.2.1-2017.11-i686_arm-linux-gnueabihf.tar.xz.asc 28-Jan-2018 19:48 91 open
gcc-linaro-7.2.1-2017.11-linux-manifest.txt 28-Jan-2018 19:48 9.9K open
gcc-linaro-7.2.1-2017.11-win32-manifest.txt 28-Jan-2018 19:48 9.9K open
gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz 27-Feb-2018 00:54 103.4M open
gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz.asc 28-Jan-2018 19:48 93 open
runtime-gcc-linaro-7.2.1-2017.11-arm-linux-gnueabihf.tar.xz 28-Jan-2018 19:48 6.2M open
runtime-gcc-linaro-7.2.1-2017.11-arm-linux-gnueabihf.tar.xz.asc 28-Jan-2018 19:48 94 open
sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf.tar.xz 27-Feb-2018 00:54 40.3M open
sysroot-glibc-linaro-2.25-2017.11-arm-linux-gnueabihf.tar.xz.asc 28-Jan-2018 19:48 225 open
用一楼我列出的那个工具链试一试
root@DESKTOP-SDMPT9S:/mnt/c/Users/ASUS/xboot# make CROSS_COMPILE=/path/to/arm-eabi- PLATFORM=arm32-f1c100s
make[1]: Entering directory '/mnt/c/Users/ASUS/xboot/src'
[AS] arch/arm32/lib/cpu/cache-v7.S
make[1]: /path/to/arm-eabi-gcc: Command not found
Makefile:291: recipe for target '.obj/arch/arm32/lib/cpu/cache-v7.o' failed
make[1]: *** [.obj/arch/arm32/lib/cpu/cache-v7.o] Error 127
make[1]: Leaving directory '/mnt/c/Users/ASUS/xboot/src'
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
root@DESKTOP-SDMPT9S:/mnt/c/Users/ASUS/xboot#
请问下这是什么情况
晕哥 说:那你下载 xboot 官方整理好的 eclipse + gcc 编译吧: https://pan.baidu.com/s/1i3ImG0d
具体资料参考这里: https://github.com/xboot/xboot/blob/master/README.md
谢谢 晕哥,我试下
晕哥,按照开发指南步骤操作,但是编译出现4个错误,这是什么情况,百度搜了下,termios.h这个就不属于WIN系统的头文件
米客方德: http://www.mkfounder.com/
是这家吗?
是的,就是这家,很多产品是很实用,没有用过批量的,质量就不清楚
那你下载 xboot 官方整理好的 eclipse + gcc 编译吧: https://pan.baidu.com/s/1i3ImG0d
具体资料参考这里: https://github.com/xboot/xboot/blob/master/README.md
谢谢 晕哥,我试下
晕哥 说:别急,都是小问题,现在你卡在哪里呢?
不会 git 克隆,还是不会编译?不会烧录?
主要是编译问题,不会用LINUX,,想在WINDOWS下编译,,荔枝排的开发板烧了个uboot和RTT OS进去后,串口可以正常进入OS,但是发现操作IO口,用万用表测试io没有反应,所以想着会不会是UBOOT问题,现在想换个XBOOT试下
F1C100S这芯片确实不错,准备上RTT OS在加入LVGL GUI进去,可以操作IO口,再完善下应该就可以做些项目测试下了,网上找了很久,无意中发现的这芯片,发现真的挺强大,特别是需要用到显示屏的项目,如果用stm32F4以上的去做那种成本更高,而且屏的分辨率过高时STM32还是不行的
可以自己编译一个: https://whycan.cn/t_449.html
那个教程看了,但是我用的是win10系统,估计不一样,后面电脑也装了ubtuntu,但是发现用起来好费劲,发现没有资源管理器,找不到目录,,刚从单片机入操作系统这方面,真的是万事开头难啊,现在就是想把屏点亮,IO口可以操作,感觉都快失去兴趣了