USB烧录貌似时间有点长需要46秒 镜像大小2.90M 明天吧屏幕焊接号应该就能显示了
Pre-Boot Program ... (2023-11-14 13:46:14)SPINOR
tinySPL [Built on Nov 21 2023 11:14:09]
[W] usbh_get_connect_id()107 usb 0 port change wait failed.
[E] main()137 Not find udisk.
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
qspi0 freq ( bus ): 100000000Hz
Selecting default config 'Luban-lite firmware'
mtd read: 696332 byte, 32161 us -> 21143 KB/s
no string for index 1
146569 : Run APP
_ _ ___ ___ _ _
/ \ _ __| |_|_ _|_ __ / __| |__ (_)_ __
/ _ \ | '__| __|| || '_ \| | | '_ \| | '_ \
/ ___ \| | | |_ | || | | | |__| | | | | |_) |
/_/ \_\_| \__|___|_| |_|\___|_| |_|_| .__/
|_|
Welcome to ArtInChip Luban-Lite 1.0 [Built on Dec 7 2023 09:54:34]
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
[32m01-01 08:00:00 I/SFUD: Flash ID: 0xef4017
[0m[32m01-01 08:00:00 I/SFUD: Find a Winbond flash chip. Size is 8388608 bytes.
[0mqspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 100000000Hz
[32m01-01 08:00:00 I/SFUD: norflash0 flash device is initialize success.
[0m[32m01-01 08:00:00 I/SFUD: Probe SPI flash norflash0 by SPI device qspi01 success.
[0m[32m01-01 08:00:00 I/touch: rt_touch init success
[0m[32m01-01 08:00:00 I/gt911: touch device gt911 init success
[0m[I] aic_find_panel()56 find panel driver : panel-rgb
[I] aicfb_probe()809 fb0 allocated at 0x40010720
[I] hal_ge_init()320 cmd queue hal, cmdq buffer size = 2048
[I] hal_ge_init()377 dither line phys :0X040268f80
[I] hal_ge_init()385 hal_ge_init() end
[32m01-01 08:00:00 I/touch: rt_touch init success
[0m[32m01-01 08:00:00 I/RTP: ArtInChip RTP loaded
[0m[I] aic_sdmc_clk_init()543 SDMC1 sclk: 49500 KHz, parent clk 792000 KHz
[32m01-01 08:00:00 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62
[0m[I] aic_sdmc_probe()636 SDMC1 driver loaded
[31;22m[E/FAL] (check_and_update_part_cache:123) Initialize failed! Partition(data) offset address(8650752) out of flash bound(<8388608).[0m
[31;22m[E/FAL] (check_and_update_part_cache:123) Initialize failed! Partition(data) offset address(8650752) out of flash bound(<8388608).[0m
[31;22m[E/FAL] (fal_init:48) RT-Thread Flash Abstraction Layer initialize failed.[0m
[32m01-01 08:00:00 I/WDT: ArtInChip WDT loaded
[0m[31m01-01 08:00:00 E/DFS: mount fs[elm] on /rodata failed.
[0m[31m01-01 08:00:00 E/DFS: mount fs[lfs] on /data failed.
[0m[31m01-01 08:00:00 E/DFS: mount fs[elm] on /sdcard failed.
[0m[31m01-01 08:00:00 E/DFS: mount fs[elm] on /sdcard failed.
[0mReboot action: Warm-Reset, reason: External-Reset
Startup time: 0.456 sec
info: cmd ring buf size:1920
info: cmd ring buf size:1920
[31m01-01 08:00:00 E/gt911: read id failed
[0mid = GT67126203
[31m01-01 08:00:00 E/gt911: read info failed
[0mrange_x = 0
range_y = 0
point_num = 251
aic /> [32m01-01 08:00:00 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62
[0m[31m01-01 08:00:00 E/gt911: read info failed
[0m
最近编辑记录 tangloong (2023-12-07 10:05:32)
离线
Nor 写很慢
离线
楼主板子开源吗:D
离线
我另外一个 众筹的帖子里面有原理图呢
目前这块板子 缺少电源指示灯 串口丝印忘打了,
烧录官方的sdk 目前rgb 无法显示 触摸好像也成功 ,硬件上来说 我在f1c100s 40pin 和触摸画过三四款板子了,原理图应该问题不大 没有内容显示 暂时还不知道问题在哪
离线
这个是几层板?
离线
这个是几层板?
没几个东西 就两层板 5cm*5cm
就三路电源 晶振 40PIN RGB RTP SD卡 外加引出IO
离线
板子接口稍微有点少,我画的板子,基本接口都接出来了。
离线
请教一下,这种屏幕排线怎么焊接的?会把座焊坏吗?
离线
请教一下,这种屏幕排线怎么焊接的?会把座焊坏吗?
我是嘉立创smt的, 68pin的我开了钢网 买了鹿仙子焊台 准备手帖焊这个应该不在话下
离线
板子接口稍微有点少,我画的板子,基本接口都接出来了。
https://whycan.com/files/members/739/D133CBS.png
usb 转串口有ch340e 封装小很多
离线
lcfmax 说:板子接口稍微有点少,我画的板子,基本接口都接出来了。
https://whycan.com/files/members/739/D133CBS.pngusb 转串口有ch340e 封装小很多
是的,一直用开340C,手头还有一些剩余,就一直用下来了。
离线
板子接口稍微有点少,我画的板子,基本接口都接出来了。
https://whycan.com/files/members/739/D133CBS.png
大佬开源嘛,想自己折腾个开发板学习学习:D
离线
lcfmax 说:板子接口稍微有点少,我画的板子,基本接口都接出来了。
https://whycan.com/files/members/739/D133CBS.png大佬开源嘛,想自己折腾个开发板学习学习:D
还没发出去打板,等验证所有功能OK后,可分享出来,
离线
请问一下这种板子可以在线debug嘛
io都引出来了 配套官方调试器 按理是可以debug的 需要eclipse
离线
KLONE 说:请问一下这种板子可以在线debug嘛
io都引出来了 配套官方调试器 按理是可以debug的 需要eclipse
请问用cklink调试是不是只要接JTAG_MS JTAG_CK和地就行? 看官方的使用说明里接了4个IO
离线
tangloong 说:KLONE 说:请问一下这种板子可以在线debug嘛
io都引出来了 配套官方调试器 按理是可以debug的 需要eclipse
请问用cklink调试是不是只要接JTAG_MS JTAG_CK和地就行? 看官方的使用说明里接了4个IO
是的V33 GND JTAG_MS JTAG_CK,但是我没有调试器,没验证
目前RGB屏幕还是无法显示
最近编辑记录 tangloong (2023-12-14 20:52:45)
离线
cklink 可以自己做个用,c906的内核跟全志F133/D1s差不多,用cdk调试很方便
http://bbs.eeworld.com.cn/thread-1200313-1-1.html
离线
用的哪个RGB屏
离线
用的哪个RGB屏
通用的40PIN 可以看原理图 对比PIN脚
离线
板子接口稍微有点少,我画的板子,基本接口都接出来了。
https://whycan.com/files/members/739/D133CBS.png
这个芯片不支持电阻屏吧?没看到你板子上放电容触控接口。
-------------------------------------------------------------------------------------------------
下载手册看了下,集成rtp的,PA8-11。
最近编辑记录 Gentlepig (2023-12-21 15:17:19)
离线
用的哪个RGB屏
离线
d133cbs + w25q128.
忘了第一次烧录需要多久时间了,现在每次烧录是2s,显示成功了,但是我修改源码,在application/os/helloword/main.c,加入了while(1)循环,里面加了些rt_kprintf()语句,然后调用rt_thread_delay(1000),觉得应该是每秒打印信息,结果烧录后却没有。
int main(void)
{
#ifdef AIC_AB_SYSTEM_INTERFACE
char target[32] = { 0 };
aic_ota_status_update();
aic_get_rodata_to_mount(target);
printf("Mount APP in blk %s\n", target);
if (dfs_mount(target, "/rodata", "elm", 0, 0) < 0)
printf("Failed to mount elm\n");
#endif
while(1)
{
// rt_kprintf("-------------------");
// rt_kprintf("app started.");
// rt_kprintf("-------------------");
printf("-------------------");
printf("app started.");
printf("-------------------");
rt_thread_delay(1000);
rt_thread_delay(1000);
}
return 0;
}
ps显示线程列表,看到有gt911和alarmsvc线程,找到这两个的启动相关注释掉:
// INIT_DEVICE_EXPORT(rt_hw_gt911_port);
// INIT_PREV_EXPORT(rt_alarm_system_init);
结果烧录后,ps里还能看到这两个.
启动信息如下:
tinySPL [Built on Jan 22 2024 08:57:26]
[W] usbh_get_connect_id()107 usb 0 port change wait failed.
[E] main()137 Not find udisk.
Reboot action: Warm-Reset, reason: External-Reset
Firmware Component:
name: image.info
partition:
attr: required
Media: RAM(0)
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
qspi0 freq ( bus ): 100000000Hz
Firmware Component:
name: image.target.spl
partition: spl
attr: mtd;required
Media: SPI_NOR(3)
Firmware Component:
name: image.target.os
partition: os
attr: mtd;required
Media: SPI_NOR(3)
Firmware Component:
name: image.target.rodata
partition: rodata
attr: mtd;optional
Media: SPI_NOR(3)
Going to reboot ...
Pre-Boot Program ... (2023-11-14 13:46:14)
SPINOR
tinySPL [Built on Jan 20 2024 14:53:02]
[W] usbh_get_connect_id()107 usb 0 port change wait failed.
[E] main()137 Not find udisk.
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
qspi0 freq ( bus ): 100000000Hz
Selecting default config 'Luban-lite firmware'
spl read: 691324 byte, 32423 us -> 20822 KB/s
153713 : Run APP
_ _ ___ ___ _ _
/ \ _ __| |_|_ _|_ __ / __| |__ (_)_ __
/ _ \ | '__| __|| || '_ \| | | '_ \| | '_ \
/ ___ \| | | |_ | || | | | |__| | | | | |_) |
/_/ \_\_| \__|___|_| |_|\___|_| |_|_| .__/
|_|
Welcome to ArtInChip Luban-Lite 1.0 [Built on Jan 20 2024 14:53:25]
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 50000000Hz
01-01 09:03:50 I/SFUD: Flash ID: 0xef4018
01-01 09:03:50 I/SFUD: Find a Winbond flash chip. Size is 16777216 bytes.
qspi0 freq (input): 100000000Hz
qspi0 freq ( bus ): 100000000Hz
01-01 09:03:50 I/SFUD: norflash0 flash device is initialize success.
01-01 09:03:50 I/SFUD: Probe SPI flash norflash0 by SPI device qspi01 success.
01-01 09:03:50 I/touch: rt_touch init success
01-01 09:03:50 I/gt911: touch device gt911 init success
[I] aic_find_panel()56 find panel driver : panel-lvds
[I] aicfb_probe()809 fb0 allocated at 0x40010360
[I] hal_ge_init()320 cmd queue hal, cmdq buffer size = 2048
[I] hal_ge_init()377 dither line phys :0X040268c00
[I] hal_ge_init()385 hal_ge_init() end
[I] aic_sdmc_clk_init()543 SDMC1 sclk: 49500 KHz, parent clk 792000 KHz
01-01 09:03:50 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62
[I] aic_sdmc_probe()636 SDMC1 driver loaded
01-01 09:03:50 I/WDT: ArtInChip WDT loaded
packages/third-party/littlefs/lfs.c:1210:error: Corrupted dir pair at {0x0, 0x1}
01-01 09:03:50 E/DFS: mount fs[lfs] on /data failed.
01-01 09:03:50 E/DFS: mount fs[elm] on /sdcard failed.
01-01 09:03:50 E/DFS: mount fs[elm] on /sdcard failed.
Reboot action: Watchdog-Reset, reason: Command-Reboot
Startup time: 0.442 sec
info: cmd ring buf size:1920
info: cmd ring buf size:1920
01-01 09:03:50 E/gt911: read id failed
id = GT526753
01-01 09:03:50 E/gt911: read info failed
range_x = 0
range_y = 0
point_num = 101
aic /> 01-01 09:03:50 I/SDMC: SDMC1 BW 1, sclk 49500 KHz, clk 400 KHz(399 KHz), div 2-62
01-01 09:03:51 E/gt911: read info failed
aic /> ps
thread pri status sp stack size max used left tick error
---------------- --- ------- ---------- ---------- ------ ---------- ---
gt911 25 suspend 0x000001d8 0x00001000 17% 0x00000004 OK
LVGL 20 ready 0x000003a8 0x00008000 09% 0xfffff88f OK
tshell 20 running 0x000003b8 0x00001000 23% 0x00000009 OK
mmcsd_detect 22 suspend 0x00000218 0x00002000 10% 0x0000000d OK
alarmsvc 10 suspend 0x000001d8 0x00000800 23% 0x00000005 OK
tidle0 31 ready 0x000001b8 0x00000400 46% 0x00000002 OK
timer 4 suspend 0x00000198 0x00000200 79% 0x00000008 OK
aic />
RT-Thread shell commands:
list_fd - list file descriptor
ulog_filter - Show ulog filter settings
ulog_kw - Set ulog global filter keyword
ulog_tag - Set ulog global filter tag
ulog_lvl - Set ulog global filter level.
ulog_tag_lvl - Set ulog filter level by different tag.
ulog_be_lvl - Set ulog filter level by different backend.
sensor - sensor test function
sensor_polling - Sensor polling mode test function
sensor_int - Sensor interrupt mode test function
sensor_fifo - Sensor fifo mode test function
fal - FAL (Flash Abstraction Layer) operate.
tail - print the last N - lines data of the given file
echo - echo string to file
df - disk free
umount - Unmount device from file system
mount - mount <device> <mountpoint> <fstype>
mkfs - format disk with file system
mkdir - Create the DIRECTORY.
pwd - Print the name of the current working directory.
cd - Change the shell working directory.
rm - Remove(unlink) the FILE(s).
cat - Concatenate FILE(s)
mv - Rename SOURCE to DEST.
cp - Copy SOURCE to DEST.
ls - List information about the FILEs.
free - Show the memory usage in the system.
ps - List threads in the system.
help - RT-Thread shell help.
list - list objects
list_device - list device in system
list_timer - list timer in system
list_mempool - list memory pool in system
list_memheap - list memory heap in system
list_msgqueue - list message queue in system
list_mailbox - list mail box in system
list_mutex - list mutex in system
list_event - list event in system
list_sem - list semaphore in system
list_thread - list thread
version - show RT-Thread version information
clear - clear the terminal screen
mem_test - memory test: mem_test address_hex size_hex
reboot - Reboot the system
f - run a function
m - modify memory
p - print memory
arecord - record voice to a wav file
aplay - play wav file
top - cpu usage
dma_dump - Dump DMA register. Argument: channel_num
efuse - efuse command
wdt_status - Show the status of Watchdog
aicupg - Reboot to the upgrade mode
list_irq - list system irq
adc - adc [option]
pin - pin [option]
pwm - pwm [option]
lptimer_dump - soft lptimer dump
pm_dump - dump power management status
pm_run - switch power management run mode
pm_module_delay - module request delay sleep
pm_module_reques - request power management mode
pm_module_releas - release power management mode count
pm_module_releas - release module power mode
pm_request - request power management mode
pm_release_all - release power management mode count
pm_release - release power management mode
list_alarm - list alarm info
date - get date and time or set (local timezone) [year month day hour min sec]
sf - SPI Flash operate
ge_format - ge format test
ge_fill - ge fill test
ge_bitblt - ge bitblit test
ge_rotate - ge rotate test
pic_test - picture decode test
ge_dither - ge dithe test
ge_scan_order - ge scan test
ge_alpha_blendin - ge alpha test
ge_scale - ge scale test
pic_crop_test - pic crop test
aic />
烧录信息如下:
[debug] Software Version: "1.3.6"
[debug] Machine Name: "DESKTOP-HQF1R40"
[debug] System Name: "Windows 10 (10.0)"
[debug] CPU Architecture: "x86_64"
[debug] Parse the image header from "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img"
[debug] Soc type: "d13x"
[debug] Board type: "demo88-nor"
[debug] Image version: "1.0.0"
[debug] Storage type: "spi-nor"
[debug] Storage ID: ""
[debug] Meta count: "5"
[debug] Refresh the partition tree ...
[debug] Part name: image.target.spl , size: 130320
[debug] Part name: image.target.os , size: 698716
[debug] Part name: image.target.rodata , size: 2093056
[debug] Current connect type: 0
[debug] No device available
[debug] WinEvent: Some devnode changed
[debug] No device available
[debug] WinEvent: Some devnode changed
[debug] No device available
[debug] WinEvent: Some devnode changed
[debug] No device available
[debug] WinEvent: Some devnode changed
[debug] No device available
[debug] WinEvent: Some devnode changed
[debug] There are "1" device available
[debug] Try to connect the ArtInChip device "1:3-1" ...
[debug] WinEvent: Some devnode changed
[debug] There are "1" device available
[debug] Try to get Usb device hd info...
[debug] Get Usb device hd info success
[debug] The status of ArtInChip device: true
[debug] Start burn online ...
[debug] Progress range: 0 ~ 3055616
[debug] Burn Image file "F:/MCU/ArtinChip/luban-lite/output/d13x_demo88-nor_rt-thread_helloworld/images/d13x_demo88-nor_v1.0.0.img" ...
[debug] Meta 0 image.updater.spl , size 130320 ...
[debug] Blocksize 4 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 4608 Size: 130320
[debug] Dev "1:3-1" Send the rest data 130320
[error] aicupg_trans_recv_pkt()208: CSW size 0, Pipe error(-9)
[error] aicupg_cmd_send_fwc_data_final()777: Recv resp failed, expect 16, got 0
[debug] Don't check the result of image.updater.spl
[debug] Meta 1 image.info , size 2048 ...
[error] aicupg_trans_send_pkt()80: CBW tag 0x51, size 0, Pipe error(-9)
[error] aicupg_cmd_get_hwinfo()106: Send command failed. ret = 0, siz = 16
[debug] Wait to reconnect dev "1:3-1"
[debug] QTime("02:21:30.613") Wait for Dev "1:3-1" ready
[debug] WinEvent: Some devnode changed
[debug] WinEvent: Some devnode changed
[debug] WinEvent: Some devnode changed
[warn ] Set upg work mode: 0
[debug] Blocksize 1 , chunk 1048576 * 0 , rest 2048
[debug] Offset: 0 Size: 2048
[debug] Dev "1:3-1" Send the rest data 2048
[debug] Meta 2 image.target.spl , size 130320 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 130320
[debug] Offset: 135680 Size: 130320
[debug] Dev "1:3-1" Send the rest data 130320
[debug] Meta 3 image.target.os , size 698716 ...
[debug] Blocksize 2048 , chunk 1048576 * 0 , rest 698716
[debug] Offset: 266752 Size: 698716
[debug] Dev "1:3-1" Send the rest data 698716
[debug] Meta 4 image.target.rodata , size 2093056 ...
[debug] Blocksize 2048 , chunk 1048576 * 1 , rest 1044480
[debug] Offset: 967168 Size: 2093056
[debug] Dev "1:3-1" Send chunk 0 ...
[debug] Dev "1:3-1" Send the rest data 1044480
[debug] Burn online successfully!
[debug] Insert statistic of "2024-01-23"
[debug] Reboot the device ...
[error] aicupg_trans_send_pkt()104: CSW tag 0xbe, size 0, Pipe error(-9)
[debug] WinEvent: Some devnode changed
[debug] No device available
------------------------------------
找到第一次烧写的截图了,39s。现在每次烧录都是2s,我怀疑我是不是只有第一次烧录成功了...
后来烧写显示成功了,但是仍执行的第一次烧写的程序...
最近编辑记录 Gentlepig (2024-01-23 11:53:04)
离线
@Gentlepig
我前面也遇到同样问题,换了一篇SPI FLSHA就正常了。后来使用新的下载软件,没有再出现。
离线
@Gentlepig
我前面也遇到同样问题,换了一篇SPI FLSHA就正常了。后来使用新的下载软件,没有再出现。
软件我用的gitee上最新的1.36。
既然你遇到了,我也遇到了,说明问题还是容易出现的,换flash不是解决办法啊。
spi flash电路有问题?
-----------------------------------------------
想问下,你更换新的flash后,烧录一次需要多久时间?
最近编辑记录 Gentlepig (2024-01-23 15:14:05)
离线