zlgopen / awtk-stm32f103ze-raw Goto Github PK
View Code? Open in Web Editor NEWawtk在stm32f103ze平台上的移植。
License: GNU Lesser General Public License v2.1
awtk在stm32f103ze平台上的移植。
License: GNU Lesser General Public License v2.1
..\awtk\src\base\bitmap.c(149): error: #28: expression must have a constant value
rgba_t t = pixel_rgba8888_to_rgba((*p));
这个宏定义看起来没有什么问题,不知道为什么通不过编译。
缺少source x.c file
按照readme文件操作,编译的时候提示
awtk\demos\demo_basic.c(98): error: At end of source: #112: expected "while"
awtk\demos\demo_basic.c(98): error: At end of source: #125: expected a "("
awtk\demos\demo_basic.c(98): error: At end of source: #29: expected an expression
awtk\demos\demo_basic.c(98): error: At end of source: #18: expected a ")"
awtk\demos\demo_basic.c(98): error: At end of source: #65: expected a ";"
.\awtk\src\awtk_main.inc(70): warning: #177-D: variable "is_reboot" was declared but never referenced
bool_t is_reboot = FALSE;
awtk\demos\demo_basic.c(98): error: At end of source: #67: expected a "}"
双击错误后,keil索引到这个位置(demo_basic.c )
ret_t application_exit() {
log_debug("application_exit\n");
return RET_OK;
}
#include "awtk_main.inc"
将demo下载至本机,使用keil v4版本编译,发现以下异常:
Build target 'awtk'
compiling button.c...
..\awtk\src\widgets\button.c(213): error: #69: integer conversion resulted in truncation
.on_event = button_on_event,
..\awtk\src\widgets\button.c: 0 warnings, 1 error
compiling button.c...
..\awtk\src\widgets\button.c(213): error: #69: integer conversion resulted in truncation
.on_event = button_on_event,
..\awtk\src\widgets\button.c: 0 warnings, 1 error
compiling check_button.c...
..\awtk\src\widgets\check_button.c(151): error: #69: integer conversion resulted in truncation
.clone_properties = s_check_button_properties,
..\awtk\src\widgets\check_button.c(167): error: #69: integer conversion resulted in truncation
.clone_properties = s_check_button_properties,
..\awtk\src\widgets\check_button.c: 0 warnings, 2 errors
compiling dialog.c...
..\awtk\src\widgets\dialog.c(95): error: #69: integer conversion resulted in truncation
.clone_properties = s_dialog_properties,
..\awtk\src\widgets\dialog.c: 0 warnings, 1 error
compiling window.c...
..\awtk\src\widgets\window.c(80): error: #69: integer conversion resulted in truncation
.on_event = window_base_on_event,
..\awtk\src\widgets\window.c: 0 warnings, 1 error
compiling window_manager.c...
..\awtk\src\base\window_manager.c(852): error: #69: integer conversion resulted in truncation
.type = WIDGET_TYPE_WINDOW_MANAGER,
..\awtk\src\base\window_manager.c: 0 warnings, 1 error
compiling slider.c...
..\awtk\src\widgets\slider.c(456): error: #69: integer conversion resulted in truncation
.clone_properties = s_slider_properties,
..\awtk\src\widgets\slider.c: 0 warnings, 1 error
compiling system_info.c...
..\awtk\src\base\system_info.c(216): error: #69: integer conversion resulted in truncation
.get_prop = system_info_get_prop,
..\awtk\src\base\system_info.c: 0 warnings, 1 error
compiling pages.c...
..\awtk\src\widgets\pages.c(108): error: #69: integer conversion resulted in truncation
.type = WIDGET_TYPE_PAGES,
..\awtk\src\widgets\pages.c(110): error: #69: integer conversion resulted in truncation
.clone_properties = s_pages_clone_properties,
..\awtk\src\widgets\pages.c: 0 warnings, 2 errors
compiling edit.c...
..\awtk\src\widgets\edit.c(1119): error: #69: integer conversion resulted in truncation
.clone_properties = s_edit_properties,
..\awtk\src\widgets\edit.c: 0 warnings, 1 error
compiling spin_box.c...
..\awtk\src\widgets\spin_box.c(34): error: #69: integer conversion resulted in truncation
.clone_properties = s_edit_properties,
..\awtk\src\widgets\spin_box.c: 0 warnings, 1 error
compiling combo_box.c...
..\awtk\src\widgets\combo_box.c(150): error: #69: integer conversion resulted in truncation
.type = WIDGET_TYPE_COMBO_BOX,
..\awtk\src\widgets\combo_box.c: 0 warnings, 1 error
compiling popup.c...
..\awtk\src\widgets\popup.c(116): error: #69: integer conversion resulted in truncation
.clone_properties = s_popup_properties,
..\awtk\src\widgets\popup.c: 0 warnings, 1 error
compiling color_tile.c...
..\awtk\src\widgets\color_tile.c(82): error: #69: integer conversion resulted in truncation
.set_prop = color_tile_set_prop,
..\awtk\src\widgets\color_tile.c: 0 warnings, 1 error
compiling system_bar.c...
..\awtk\src\widgets\system_bar.c(101): error: #69: integer conversion resulted in truncation
.clone_properties = s_system_bar_properties,
..\awtk\src\widgets\system_bar.c: 0 warnings, 1 error
compiling overlay.c...
..\awtk\src\widgets\overlay.c(37): error: #69: integer conversion resulted in truncation
.on_event = window_base_on_event,
..\awtk\src\widgets\overlay.c: 0 warnings, 1 error
"..\obj\awtk_demo1.axf" - 18 Error(s), 0 Warning(s).
Target not created
Dear @xianjimli
I cannot activate my account on Taobao.
Do you know another option for international shipping of this development board?
Thank you.
Thank you.
我将awtk/demos/assets 放入sd卡中,路径是awtk/assets/default/raw/---
文件系统是调用的例程STM32H743 ,
现在在main中调用 assert(file_exist("0://awtk/assets/default/raw/fonts/default.ttf")); 通过调试可以知道文件是存在的,这样可以说明文件系统已经是对的了吗;然后 我在assets-mini.c中修改了一下
ret_t assets_init(void) {
assets_manager_t* am = assets_manager();
#ifdef WITH_FS_RES
assets_manager_preload(am, ASSET_TYPE_FONT, "default");
assets_manager_preload(am, ASSET_TYPE_STYLE, "default");
#else
assets_manager_add(am, font_default_18);
assets_manager_add(am, image_bricks);
......
}
awtk_config.h 中 增加
#define WITH_FS_RES 1
#define APP_RES_ROOT "0://awtk/"
其他地方无改动,编译运行,界面显示白色,无其他显示。
我想知道F103ZE能达到怎样的一个显示效果。
你好,最近在看您的AWTK,在调试过程中发现使用 image_gen编译出来的数组是 RGB565格式的,但是在使用lcd_reg.inc中static ret_t lcd_reg_draw_image()显示时是乱码。通过跟踪代码大概发现是由于该函数不支持RGB格式的图片。
打开keil项目文件,导入对应的源文件,编译发现没有darray文件,请问darray文件是否变成了"awtk-master\awtk-master\src\tkc\array.c",另外widget_pool文件实在没找到,编译的时候也没有使用这个文件,对项目运行不知道有没有影响
创建button控件,button边框可以显示,但是文本内容不显示
show_dialog = button_create(win, 190, 5, 40, 30);
widget_set_text(show_dialog, L"Dialog");
请问有没有能在stm32f103上运行的例程? 我使用普中的开发板没有能使用的例程. 谢谢
[Issue]
wcsdup函数声明与定义不一致
wcsdup()在外面被调用,但在wstr.h没有声明。
[期望结果]
在wstr.h中增加:
wchar_t* wcsdup(const wchar_t* s);
在使用awtk\demos\assets\default\中的图片和data数据 在平台中能够显示,但是我通过使用resgen工具将自己的图片转换后加入平台,却无法显示。
与官方卖的开发板配置不匹配,建议修改一下,官方开发板配置的是240*320的屏幕
stm32f103文件树的text_edit.c和self_layouter_menu.c在awtk找不到?
awtk-stm32f103ze-raw文件和awtk文件都是最新的
下载了awtk-stm32f103ze-raw 和awtk-master,将awtk文件夹放在工程目录里面,用keil4打开,出现非常多的错误,请问是我下载的文件错误吗?还是我放置的方法不对?还是文件不匹配?
您好,我按照这个例程在正点原子的精英板(也是STM32F103ze)移植。
前面的LCD和Systick都测试成功了,但是到最后一步在main函数中,加入gui_app_start后,编译会出现大量的Error: L6406E: No space in execution regions with .ANY selector
我的awtk_config.h文件也按照例程修改了,宏也配置了,添加的文件是基于awtk-lpc1768-raw那个例程来的。
请问是什么原因呢?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.