页次: 1
https://github.com/nminaylov/F1C100s_projects 这位大佬的项目甚至还在更新,可以参考学习学习
尝试编译这里的hello_led工程
win10 安装arm-none-eabi-gcc和make mkdir cp等工具
编译出错
"mkdir" -p build/
arm-none-eabi-gcc -c -march=armv5te -mtune=arm926ej-s -mfloat-abi=soft -marm -mno-thumb-interwork -g -ggdb -Wall -fdata-sections -ffunction-sections -ffreestanding -std=gnu99 -Os -fomit-frame-pointer -Wall -fverbose-asm -DLOAD_HEADER -D__ARM32_ARCH__=5 -D__ARM926EJS__ -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1 -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD=1 -I. -I../../f1c100s/arm926/inc -I../../f1c100s/drivers/inc -I../../lib/printf main.c -o build/main.o
"mkdir" -p build/
arm-none-eabi-gcc -c -march=armv5te -mtune=arm926ej-s -mfloat-abi=soft -marm -mno-thumb-interwork -g -ggdb -Wall -fdata-sections -ffunction-sections -ffreestanding -std=gnu99 -Os -fomit-frame-pointer -Wall -fverbose-asm -DLOAD_HEADER -D__ARM32_ARCH__=5 -D__ARM926EJS__ -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1 -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD=1 -I. -I../../f1c100s/arm926/inc -I../../f1c100s/drivers/inc -I../../lib/printf system.c -o build/system.o
"mkdir" -p build/
arm-none-eabi-gcc -c -march=armv5te -mtune=arm926ej-s -mfloat-abi=soft -marm -mno-thumb-interwork -g -ggdb -Wall -fdata-sections -ffunction-sections -ffreestanding -std=gnu99 -Os -fomit-frame-pointer -Wall -fverbose-asm -DLOAD_HEADER -D__ARM32_ARCH__=5 -D__ARM926EJS__ -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES=1 -DPRINTF_ALIAS_STANDARD_FUNCTION_NAMES_HARD=1 -I. -I../../f1c100s/arm926/inc -I../../f1c100s/drivers/inc -I../../lib/printf exception.c -o build/exception.o
make: *** No rule to make target `build/image.o', needed by `build/hello_led.elf'. Stop.
https://github.com/nminaylov/F1C100s_projects 这位大佬的项目甚至还在更新,可以参考学习学习
这个例程很好,非常感谢。
F1C100S裸奔framebuffer+PWM+GPIO驱动
https://whycan.com/t_1457.html
学习中。
请教,如何使用DKTool哇酷网特别版将bin加载到sdram内运行。
用sunxi-fel uboot 命令每次都要重启。
某鱼淘了块串口屏,芯片用的是F1C200S。
根据论坛前辈的帖子,flash 1脚和地短路上电,可进入fel模式。用DKTool哇酷网特别版可以识别。
跑这个程序
https://github.com/hongxuyao/F1C100s_with_Keil_RTX4_emWin5
可以使用SPL代码串口输出正常工作,spl-separated的代码内串口不工作。
1 程序开头的DBG_INIT()定义是空,如何能让串口工作?
2 当单片机用,把spl分出来有什么好处?
3 哪里有简单的例程供学习?就像单片机的官方例程每个外设一个例程。或者没有系统和GUI,仅较简单的控制gpio,uart,lcd,i2c等常用外设的工程。
谢谢各位。
https://www.jianshu.com/p/fd0103d59d8e
为什么这里说arm-eabi-gcc 是 Android ARM 编译器。
新版是否应该用 gcc-arm-none-eabi-
直接在bbb上编译通过
运行出错
app_root_is_valid:43 app_root != NULL
path_is_abs:202 path != NULL && *path
try /home/ubuntu/bbtest1/awtk/awtk-linux-fb/build/bin
try /home/ubuntu/bbtest1/awtk/awtk-linux-fb/build/bin
app_root=
Not found valid assets folder!
fb_info_t: /dev/fb0
xres=800 yres=600
xres_virtual=800 yres_virtual=600
bits_per_pixel=16 line_length=1600
fb_info_t: red(11 5) green(5 6) blue(0 5)
xpanstep=1 ywrapstep=0
fb_size=960000 fb_total_size=960000 fb_nr=1 smem_len=960000
fb_open clear
fb_open ok
ratio=1.000000 800 600
assets_manager_preload:643 info != NULL
assets_manager_preload:643 info != NULL
Build at: Jul 2 2020 16:48:45
!!!Asset [name=system_bar type=ui] not exist!!!
ui_loader_load_widget:38 ui != NULL
!!!Asset [name=basic type=ui] not exist!!!
ui_loader_load_widget:38 ui != NULL
widget_set_prop:1536 widget != NULL && name != NULL && v != NULL
widget_add_timer:2723 widget != NULL && on_timer != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
widget_lookup_all:870 widget != NULL && name != NULL
widget_on_with_tag:1066 widget != NULL && on_event != NULL
theme_find_style:84 t != NULL && t->data != NULL
^Cassets_manager_unref:621 info != NULL
suggest_words_destroy:135 suggest_words != NULL
assets_manager_unref:621 info != NULL
timer_manager_remove:96 timer_manager != NULL
application_exit
tk_thread_destroy:362 thread != NULL
tk_thread_destroy:362 thread != NULL
tk_thread_destroy:362 thread != NULL
fb_close
fb_close ok
on_app_exit
各位好!
我用windows编译、运行awtk正常。现在想在beaglebone black的framebuffer上运行awtk。
windows下安装了交叉编译工具
https://gnutoolchains.com/beaglebone/
arm-linux-gnueabihf-gcc在C:\SysGCC\beaglebone\bin目录下。
这个目录加到环境变量path里,命令行可以直接运行arm-linux-gnueabihf-gcc。
awtk_config.py已改为
#for prebuild tslib
TSLIB_LIB_DIR=''
TSLIB_INC_DIR=''
TOOLS_PREFIX='arm-linux-gnueabihf-'
编译出错:
G:\gui\awtk-linux-fb>scons
scons: Reading SConscript files ...
KeyError: 'TOOLS_NAME':
File "G:\gui\awtk-linux-fb\SConstruct", line 61:
SConscript(SConscriptFiles)
File "c:\python\python37_6\lib\site-packages\scons\SCons\Script\SConscript.py", line 660:
return method(*args, **kw)
File "c:\python\python37_6\lib\site-packages\scons\SCons\Script\SConscript.py", line 597:
return _SConscript(self.fs, *files, **subst_kw)
File "c:\python\python37_6\lib\site-packages\scons\SCons\Scri
请教如何才能正确在windows下编译?
试了下eclipse win-builds 和 msys2
eclipse 用和qt同样的gcc编译器,同样的源码和makefile,链接出错。感觉感觉要比qt编译的快。
Building target: lv_dev_5
Invoking: Cross GCC Linker
i686-w64-mingw32-gcc -o "lv_dev_5" ./lvgl/lv_themes/lv_theme.o ./lvgl/lv_themes/lv_theme_alien.o
......
./lv_drivers/indev/keyboard.o ./lv_drivers/indev/mouse.o ./lv_drivers/display/R61581.o ./lv_drivers/display/SSD1963.o ./lv_drivers/display/ST7565.o ./lv_drivers/display/fbdev.o ./lv_drivers/display/monitor.o ./main.o -lSDL2main -lSDL2
e:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.2/../../../../i686-w64-mingw32/lib/../lib/libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
makefile:81: recipe for target 'lv_dev_5' failed
make: *** [lv_dev_5] Error 1
win-builds 集成的东西要多一些。
http://win-builds.org/doku.php
sdl版本是2.0.3 它自带的gcc
编译有一个警告。
CC lv_examples/lv_tutorial/3_styles/lv_tutorial_styles.c
CC lv_examples/lv_tutorial/4_themes/lv_tutorial_themes.c
CC lv_examples/lv_tutorial/5_antialiasing/lv_tutorial_antialiasing.c
lv_examples/lv_tutorial/6_images/lv_tutorial_images.c: In function 'pcfs_open':
lv_examples/lv_tutorial/6_images/lv_tutorial_images.c:170:8: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
if((long int)f <= 0) return LV_FS_RES_UNKNOWN;
^
CC lv_examples/lv_tutorial/6_images/lv_tutorial_images.c
CC lv_examples/lv_tutorial/6_images/img_red_flower.c
CC lv_examples/lv_tutorial/7_fonts/lv_tutorial_fonts.c
运行出错。
Starting F:\Other\pc_simulator\demo.exe...
Fatal Error: Out of memory - aborting
F:/Other/pc_simulator/demo.exe exited with code 0
msys2链接也出错
v_tutorial_objects.o lv_tutorial_styles.o lv_tutorial_themes.o lv_tutorial_antialiasing.o lv_tutorial_images.o img_red_flower.o lv_tutorial_fonts.o ubuntu_40_ascii.o ubuntu_40_cyrillic.o lv_tutorial_animations.o lv_tutorial_responsive.o -lSDL2 -lm -L/mingw64/lib/ -lSDL2main -lSDL2 -mwindows
/usr/lib/../lib/libmsys-2.0.a(libcmain.o):在函数‘main’中:
/msys_scripts/msys2-runtime/src/msys2-runtime/winsup/cygwin/lib/libcmain.c:37:对‘WinMain’未定义的引用
/msys_scripts/msys2-runtime/src/msys2-runtime/winsup/cygwin/lib/libcmain.c:37:(.text.startup+0x94): 截断重寻址至相符: R_X86_64_PC32 针对未定义的符号 WinMain
collect2: 错误:ld 返回 1
make: *** [Makefile:95:default] 错误 1
qt会检测到后装的mingw,用这个编译会有一个警告,但是也能运行。
main.c: In function 'SDL_main':
main.c:59:9: warning: 'usleep' is deprecated [-Wdeprecated-declarations]
usleep(1000); /*Just to let the system breath*/
^~~~~~
In file included from main.c:11:0:
c:\mingw\include\unistd.h:104:5: note: declared here
int usleep( useconds_t period ){ return __mingw_sleep( 0, 1000 * period ); }
^~~~~~
试了一下挺好,linux下主题,挺好用。
在win10下原demo运行正常,主题的demo编译不能通过。
重装了win7,qt,原demo也编译不过了。
一堆错误:
process_begin: CreateProcess(NULL, pwd, ...) failed.
mingw32-make: Makefile:88: pipe: No such file or directory
process_begin: CreateProcess(NULL, pwd, ...) failed.
mingw32-make: Makefile:88: pipe: No such file or directory
...
...
可能是什么原因呢?
页次: 1